<commit_before>﻿{
  "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "keyVaultName": {
      "type": "string",
      "metadata": {
        "description": "Name of the Key Vault"
      }
    },
    "vaultSku": {
      "type": "string",
      "defaultValue": "Standard",
      "allowedValues": [
        "Standard",
        "Premium"
      ],
      "metadata": {
        "description": "SKU for the vault"
      }
    },
    "enabledForDeployment": {
      "type": "bool",
      "defaultValue": true,
      "metadata": {
        "description": "Specifies if the vault is enabled for VM or Service Fabric deployment"
      }
    },
    "enabledForTemplateDeployment": {
      "type": "bool",
      "defaultValue": true,
      "metadata": {
        "description": "Specifies if the vault is enabled for ARM template deployment"
      }
    },
    "enabledForDiskEncryption": {
      "type": "bool",
      "defaultValue": true,
      "metadata": {
        "description": "Specifies if the vault is enabled for volume encryption"
      }
    },
    "enableSoftDelete": {
      "type": "bool",
      "defaultValue": true,
      "metadata": {
        "description": "Specifies if the vault is enabled for soft delete"
      }
    },    
    "storageAccountName": {
      "type": "string"
    },
    "omsWorkspaceName": {
      "type": "string",
      "metadata": {
        "description": "Provide the OMS Workspace name."
      }
    },
    "tagValues": {
      "type": "object"
    },
    "applicationObjectId": {
      "type": "string"
    },
    "applicationClientId": {
      "type": "string"
    },    
    "retentionPolicy": {
      "type": "int",
      "defaultValue": 2,
      "metadata": {
        "description": "Number of days of Retention Policy"
      }
    }
  },
  "variables": {
    "apiVersion": "2016-01-01"
  },
  "resources": [
    {
      "comments": "----DIAGNOSTICS STORAGE ACCOUNT-----",
      "type": "Microsoft.Storage/storageAccounts",
      "apiVersion": "[variables('apiVersion')]",
      "name": "[parameters('storageAccountName')]",
      "location": "[resourceGroup().location]",
      "kind": "Storage",
      "sku": {
        "name": "Standard_LRS"
      },
      "tags": {
        "layer": "management",
        "environment": "[parameters('tagValues').environment]",
        "projectname": "[parameters('tagValues').projectname]",
        "dataprofile": "[parameters('tagValues').dataprofile]",
        "department": "[parameters('tagValues').department]",
        "businessUnit": "[parameters('tagValues').businessUnit]"
      },
      "properties": {
        "mode": "Incremental",
        "encryption": {
          "keySource": "Microsoft.Storage",
          "services": {
            "blob": {
              "enabled": true
            }
          }
        }
      }
    },
    {
      "name": "[parameters('keyVaultName')]",
      "type": "Microsoft.KeyVault/vaults",
      "apiVersion": "2016-10-01",
      "location": "[resourceGroup().location]",
      "tags": {
          "layer": "management",
          "environment": "[parameters('tagValues').environment]",
          "projectname": "[parameters('tagValues').projectname]",
          "dataprofile": "[parameters('tagValues').dataprofile]",
          "department": "[parameters('tagValues').department]",
          "businessUnit": "[parameters('tagValues').businessUnit]"
      },
      "properties": {
        "tenantId": "[subscription().TenantId]",
        "sku": {
          "family": "A",
          "name": "[parameters('vaultSku')]"
        },
        "accessPolicies": [
          {
            "tenantId": "[subscription().TenantId]",
            "objectId": "[parameters('applicationObjectId')]",
            "applicationId": "[parameters('applicationClientId')]",
            "permissions": {
              "keys": [
                "encrypt",
                "decrypt",
                "wrapKey",
                "unwrapKey",
                "sign",
                "verify",
                "get",
                "list",
                "create",
                "update",
                "import",
                "delete",
                "backup",
                "restore"
              ],
              "secrets": [
                "get",
                "list",
                "set",
                "delete"
              ],
              "certificates": [
                "get",
                "list",
                "delete",
                "create",
                "import",
                "update",
                "managecontacts",
                "getissuers",
                "listissuers",
                "setissuers",
                "deleteissuers",
                "manageissuers",
                "recover",
                "purge"
              ]
            }
          }
        ],
        "enabledForDeployment": "[parameters('enabledForDeployment')]",
        "enabledForDiskEncryption": "[parameters('enabledForDiskEncryption')]",
        "enabledForTemplateDeployment": "[parameters('enabledForTemplateDeployment')]",
        "enableSoftDelete": "[parameters('enableSoftDelete')]",
        "createMode": "Incremental"
      },
      "resources": [
        {
          "type": "providers/diagnosticSettings",
          "name": "Microsoft.Insights/service",
          "dependsOn": [
            "[resourceId('Microsoft.KeyVault/vaults', parameters('keyVaultName'))]"
          ],
          "apiVersion": "2016-09-01",
          "properties": {
            "workspaceId": "[resourceId('Microsoft.OperationalInsights/workspaces', parameters('omsWorkspaceName'))]",
            "storageAccountId": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]",
            "logs": [
              {
                "category": "AuditEvent",
                "enabled": true,
                "retentionPolicy": {
                  "days": "[parameters('retentionPolicy')]",
                  "enabled": true
                }
              }
            ]
          }
        }
      ]  
    }
  ],
  "outputs": {
    "diagnosticsStorageAccountKey": {<commit_msg>changed create mode to "default"<commit_after>﻿{
  "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "keyVaultName": {
      "type": "string",
      "metadata": {
        "description": "Name of the Key Vault"
      }
    },
    "vaultSku": {
      "type": "string",
      "defaultValue": "Standard",
      "allowedValues": [
        "Standard",
        "Premium"
      ],
      "metadata": {
        "description": "SKU for the vault"
      }
    },
    "enabledForDeployment": {
      "type": "bool",
      "defaultValue": true,
      "metadata": {
        "description": "Specifies if the vault is enabled for VM or Service Fabric deployment"
      }
    },
    "enabledForTemplateDeployment": {
      "type": "bool",
      "defaultValue": true,
      "metadata": {
        "description": "Specifies if the vault is enabled for ARM template deployment"
      }
    },
    "enabledForDiskEncryption": {
      "type": "bool",
      "defaultValue": true,
      "metadata": {
        "description": "Specifies if the vault is enabled for volume encryption"
      }
    },
    "enableSoftDelete": {
      "type": "bool",
      "defaultValue": true,
      "metadata": {
        "description": "Specifies if the vault is enabled for soft delete"
      }
    },    
    "storageAccountName": {
      "type": "string"
    },
    "omsWorkspaceName": {
      "type": "string",
      "metadata": {
        "description": "Provide the OMS Workspace name."
      }
    },
    "tagValues": {
      "type": "object"
    },
    "applicationObjectId": {
      "type": "string"
    },
    "applicationClientId": {
      "type": "string"
    },    
    "retentionPolicy": {
      "type": "int",
      "defaultValue": 2,
      "metadata": {
        "description": "Number of days of Retention Policy"
      }
    }
  },
  "variables": {
    "apiVersion": "2016-01-01"
  },
  "resources": [
    {
      "comments": "----DIAGNOSTICS STORAGE ACCOUNT-----",
      "type": "Microsoft.Storage/storageAccounts",
      "apiVersion": "[variables('apiVersion')]",
      "name": "[parameters('storageAccountName')]",
      "location": "[resourceGroup().location]",
      "kind": "Storage",
      "sku": {
        "name": "Standard_LRS"
      },
      "tags": {
        "layer": "management",
        "environment": "[parameters('tagValues').environment]",
        "projectname": "[parameters('tagValues').projectname]",
        "dataprofile": "[parameters('tagValues').dataprofile]",
        "department": "[parameters('tagValues').department]",
        "businessUnit": "[parameters('tagValues').businessUnit]"
      },
      "properties": {
        "mode": "Incremental",
        "encryption": {
          "keySource": "Microsoft.Storage",
          "services": {
            "blob": {
              "enabled": true
            }
          }
        }
      }
    },
    {
      "name": "[parameters('keyVaultName')]",
      "type": "Microsoft.KeyVault/vaults",
      "apiVersion": "2016-10-01",
      "location": "[resourceGroup().location]",
      "tags": {
          "layer": "management",
          "environment": "[parameters('tagValues').environment]",
          "projectname": "[parameters('tagValues').projectname]",
          "dataprofile": "[parameters('tagValues').dataprofile]",
          "department": "[parameters('tagValues').department]",
          "businessUnit": "[parameters('tagValues').businessUnit]"
      },
      "properties": {
        "tenantId": "[subscription().TenantId]",
        "sku": {
          "family": "A",
          "name": "[parameters('vaultSku')]"
        },
        "accessPolicies": [
          {
            "tenantId": "[subscription().TenantId]",
            "objectId": "[parameters('applicationObjectId')]",
            "applicationId": "[parameters('applicationClientId')]",
            "permissions": {
              "keys": [
                "encrypt",
                "decrypt",
                "wrapKey",
                "unwrapKey",
                "sign",
                "verify",
                "get",
                "list",
                "create",
                "update",
                "import",
                "delete",
                "backup",
                "restore"
              ],
              "secrets": [
                "get",
                "list",
                "set",
                "delete"
              ],
              "certificates": [
                "get",
                "list",
                "delete",
                "create",
                "import",
                "update",
                "managecontacts",
                "getissuers",
                "listissuers",
                "setissuers",
                "deleteissuers",
                "manageissuers",
                "recover",
                "purge"
              ]
            }
          }
        ],
        "enabledForDeployment": "[parameters('enabledForDeployment')]",
        "enabledForDiskEncryption": "[parameters('enabledForDiskEncryption')]",
        "enabledForTemplateDeployment": "[parameters('enabledForTemplateDeployment')]",
        "enableSoftDelete": "[parameters('enableSoftDelete')]",
        "createMode": "default"
      },
      "resources": [
        {
          "type": "providers/diagnosticSettings",
          "name": "Microsoft.Insights/service",
          "dependsOn": [
            "[resourceId('Microsoft.KeyVault/vaults', parameters('keyVaultName'))]"
          ],
          "apiVersion": "2016-09-01",
          "properties": {
            "workspaceId": "[resourceId('Microsoft.OperationalInsights/workspaces', parameters('omsWorkspaceName'))]",
            "storageAccountId": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]",
            "logs": [
              {
                "category": "AuditEvent",
                "enabled": true,
                "retentionPolicy": {
                  "days": "[parameters('retentionPolicy')]",
                  "enabled": true
                }
              }
            ]
          }
        }
      ]  
    }
  ],
  "outputs": {
    "diagnosticsStorageAccountKey": {
{'fraction_non_alphanumeric': 0.16300940438871472, 'fraction_numerical': 0.005948074913592155, 'mean_word_length': 1.7291072603641149, 'pattern_counts': {'":': 240, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2312493', 'n_tokens_mistral': 3479, 'n_tokens_neox': 3347, 'n_words': 580}