{
   "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
   "contentVersion": "1.0.0.0",
   "parameters": {
      "storageName": {
         "type": "string"
      },
      "location": {
         "type": "string"
      }
   },
   "resources": [
      {
         "type": "Microsoft.Storage/storageAccounts",
         "apiVersion": "2017-10-01",
         "name": "[parameters('storageName')]",
         "location": "[parameters('location')]",
         "sku": {
            "name": "Standard_LRS"
         },
         "kind": "BlobStorage",
         "tags": {
            "createdBy": "Azure Policy - Deploy Auditing on SQL servers"
         },
         "properties": {
            "accessTier": "Hot",
            "supportsHttpsTrafficOnly": true
         }
      }
   ],
   "outputs": {
      "storageAccountEndPoint": {
         "type": "string",
         "value": "[reference(parameters('storageName')).primaryEndpoints.blob]"
      },
      "storageAccountKey": {
         "type": "string",
         "value": "[listKeys(parameters('storageName'), '2017-06-01').keys[0].value]"
      }
   }
}
