<commit_before>{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "location": {
      "type": "string",
      "defaultValue": "[resourceGroup().location]",
      "metadata": {
        "description": "Location for all resources."
      }
    },
    "storageNamePrefix": {
      "type": "string",
      "defaultValue": "opencgastorage"
    },
    "vnetId": {
      "type": "string"
    },
    "subnetId": {
      "type": "string"
    }
  },
  "variables": {
    "storageAccountName": "[concat(parameters('storageNamePrefix'), uniquestring(resourceGroup().id))]",
    "privateDnsZonesName": "privatelink.file.core.windows.net",
    "privateEndpointName" : "[concat(variables('storageAccountName'), 'privatelink')]"
  },
  "resources": [
    {
      "name": "[variables('storageAccountName')]",
      "type": "Microsoft.Storage/storageAccounts",
      "apiVersion": "2019-06-01",
      "location": "[parameters('location')]",
      "properties": {
        "networkAcls": {
          "bypass": "AzureServices",
          "virtualNetworkRules": [
          ],
          "ipRules": [
          ],
          "defaultAction": "Allow"
        },
        "supportsHttpsTrafficOnly": true,
        "encryption": {
          "services": {
            "file": {
              "enabled": true
            },
            "blob": {
              "enabled": true
            }
          },
          "keySource": "Microsoft.Storage"
        }
      },
      "dependsOn": [
      ],
      "sku": {
        "name": "Premium_LRS",
        "tier": "Premium"
      },
      "kind": "FileStorage",
      "tags": {
      }
    },
    {
      "name": "[concat(variables('storageAccountName'), '/default/variants')]",
      "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
      "apiVersion": "2019-04-01",
      "properties": {
        "metadata": {
        },
        "shareQuota": 100
      },
      "dependsOn": [
        "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
      ]
    },
    {
      "name": "[concat(variables('storageAccountName'), '/default/conf')]",
      "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
      "apiVersion": "2019-04-01",
      "properties": {
        "metadata": {
        },
        "shareQuota": 100
      },
      "dependsOn": [
        "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
      ]
    },
    {
      "name": "[concat(variables('storageAccountName'), '/default/ivaconf')]",
      "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
      "apiVersion": "2019-04-01",
      "properties": {
        "metadata": {
        },
        "shareQuota": 100
      },
      "dependsOn": [
        "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
      ]
    },
    {
      "name": "[concat(variables('storageAccountName'), '/default/sessions')]",
      "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
      "apiVersion": "2019-04-01",
      "properties": {
        "metadata": {
        },
        "shareQuota": 100
      },
      "dependsOn": [
        "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
      ]
    },
    {
      "location": "[parameters('location')]",
      "name": "[variables('privateEndpointName')]",
      "type": "Microsoft.Network/privateEndpoints",
      "apiVersion": "2020-03-01",
      "properties": {
        "subnet": {
          "id": "[parameters('subnetId')]"
        },
        "privateLinkServiceConnections": [
          {
            "name": "[variables('privateEndpointName')]",
            "properties": {
              "privateLinkServiceId": "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]",
              "groupIds": [ "file" ]
            }
          }
        ]
      }
    },
    {
      "type": "Microsoft.Network/privateDnsZones",
      "apiVersion": "2018-09-01",
      "name": "[variables('privateDnsZonesName')]",
      "location": "global",
      "tags": {},
      "properties": {}
    },
    {
      "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks",
      "apiVersion": "2018-09-01",
      "name": "[concat(variables('privateDnsZonesName'), '/', uniqueString(parameters('vnetId')))]",
      "location": "global",
      "properties": {
        "virtualNetwork": {
          "id": "[parameters('vnetId')]"
        },
        "registrationEnabled": false
      },
      "dependsOn": [
        "[variables('privateDnsZonesName')]"
      ]
    },
    {
      "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
      "apiVersion": "2020-03-01",
      "name": "[concat(variables('privateEndpointName'), '/', 'default')]",
      "location": "[parameters('location')]",
      "properties": {
        "privateDnsZoneConfigs": [
          {
            "name": "[replace(variables('privateDnsZonesName'), '.', '-')]",
            "properties": {
              "privateDnsZoneId": "[resourceId('Microsoft.Network/privateDnsZones', variables('privateDnsZonesName'))]"
            }
          }
        ]
      },
      "dependsOn": [
        "[variables('privateEndpointName')]"
      ]
    }
  ],
  "outputs": {
    "accountName": {
      "type": "string",
      "value": "[variables('storageAccountName')]"
    },
    "accountKey": {
      "type": "string",
      "value": "[listKeys(variables('storageAccountName'),'2017-10-01').keys[0].value]"
    }
  }
}
<commit_msg>azure: Use a standard storage account with largeFileSharesState:true.<commit_after>{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "location": {
      "type": "string",
      "defaultValue": "[resourceGroup().location]",
      "metadata": {
        "description": "Location for all resources."
      }
    },
    "storageNamePrefix": {
      "type": "string",
      "defaultValue": "opencgastorage"
    },
    "vnetId": {
      "type": "string"
    },
    "subnetId": {
      "type": "string"
    }
  },
  "variables": {
    "storageAccountName": "[concat(parameters('storageNamePrefix'), uniquestring(resourceGroup().id))]",
    "privateDnsZonesName": "privatelink.file.core.windows.net",
    "privateEndpointName" : "[concat(variables('storageAccountName'), 'privatelink')]"
  },
  "resources": [
    {
      "name": "[variables('storageAccountName')]",
      "type": "Microsoft.Storage/storageAccounts",
      "apiVersion": "2019-06-01",
      "location": "[parameters('location')]",
      "properties": {
        "networkAcls": {
          "bypass": "AzureServices",
          "virtualNetworkRules": [
          ],
          "ipRules": [
          ],
          "defaultAction": "Allow"
        },
        "supportsHttpsTrafficOnly": true,
        "encryption": {
          "services": {
            "file": {
              "enabled": true
            },
            "blob": {
              "enabled": true
            }
          },
          "keySource": "Microsoft.Storage",
          "largeFileSharesState" : true
        }
      },
      "dependsOn": [
      ],
      "sku": {
        "name": "Standard_LRS",
        "tier": "Standard "
      },
      "kind": "StorageV2",
      "tags": {
      }
    },
    {
      "name": "[concat(variables('storageAccountName'), '/default/variants')]",
      "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
      "apiVersion": "2019-06-01",
      "properties": {
        "metadata": {
        },
        "shareQuota": 5000
      },
      "dependsOn": [
        "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
      ]
    },
    {
      "name": "[concat(variables('storageAccountName'), '/default/conf')]",
      "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
      "apiVersion": "2019-06-01",
      "properties": {
        "metadata": {
        },
        "shareQuota": 100
      },
      "dependsOn": [
        "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
      ]
    },
    {
      "name": "[concat(variables('storageAccountName'), '/default/ivaconf')]",
      "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
      "apiVersion": "2019-06-01",
      "properties": {
        "metadata": {
        },
        "shareQuota": 100
      },
      "dependsOn": [
        "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
      ]
    },
    {
      "name": "[concat(variables('storageAccountName'), '/default/sessions')]",
      "type": "Microsoft.Storage/storageAccounts/fileServices/shares",
      "apiVersion": "2019-06-01",
      "properties": {
        "metadata": {
        },
        "shareQuota": 5000
      },
      "dependsOn": [
        "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
      ]
    },
    {
      "location": "[parameters('location')]",
      "name": "[variables('privateEndpointName')]",
      "type": "Microsoft.Network/privateEndpoints",
      "apiVersion": "2020-03-01",
      "properties": {
        "subnet": {
          "id": "[parameters('subnetId')]"
        },
        "privateLinkServiceConnections": [
          {
            "name": "[variables('privateEndpointName')]",
            "properties": {
              "privateLinkServiceId": "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]",
              "groupIds": [ "file" ]
            }
          }
        ]
      }
    },
    {
      "type": "Microsoft.Network/privateDnsZones",
      "apiVersion": "2018-09-01",
      "name": "[variables('privateDnsZonesName')]",
      "location": "global",
      "tags": {},
      "properties": {}
    },
    {
      "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks",
      "apiVersion": "2018-09-01",
      "name": "[concat(variables('privateDnsZonesName'), '/', uniqueString(parameters('vnetId')))]",
      "location": "global",
      "properties": {
        "virtualNetwork": {
          "id": "[parameters('vnetId')]"
        },
        "registrationEnabled": false
      },
      "dependsOn": [
        "[variables('privateDnsZonesName')]"
      ]
    },
    {
      "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
      "apiVersion": "2020-03-01",
      "name": "[concat(variables('privateEndpointName'), '/', 'default')]",
      "location": "[parameters('location')]",
      "properties": {
        "privateDnsZoneConfigs": [
          {
            "name": "[replace(variables('privateDnsZonesName'), '.', '-')]",
            "properties": {
              "privateDnsZoneId": "[resourceId('Microsoft.Network/privateDnsZones', variables('privateDnsZonesName'))]"
            }
          }
        ]
      },
      "dependsOn": [
        "[variables('privateEndpointName')]"
      ]
    }
  ],
  "outputs": {
    "accountName": {
      "type": "string",
      "value": "[variables('storageAccountName')]"
    },
    "accountKey": {
      "type": "string",
      "value": "[listKeys(variables('storageAccountName'),'2017-10-01').keys[0].value]"
    }
  }
}

{'fraction_non_alphanumeric': 0.1876991150442478, 'fraction_numerical': 0.018849557522123892, 'mean_word_length': 2.330680813439434, 'pattern_counts': {'":': 230, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4443705', 'n_tokens_mistral': 3487, 'n_tokens_neox': 3324, 'n_words': 427}