Last active
December 11, 2018 13:21
-
-
Save sathishjayapal/4805c3a233d0b5c032b2cb3975c138d5 to your computer and use it in GitHub Desktop.
JSON for the Azure Deploy Testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.1", | |
"parameters": { | |
"rgName": { | |
"type": "string" | |
}, | |
"rgLocation": { | |
"type": "string" | |
}, | |
"storagePrefix": { | |
"type": "string", | |
"maxLength": 11 | |
} | |
}, | |
"variables": { | |
"storageName": "[concat(parameters('storagePrefix'), uniqueString(subscription().id, parameters('rgName')))]" | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Resources/resourceGroups", | |
"apiVersion": "2018-05-01", | |
"location": "[parameters('rgLocation')]", | |
"name": "[parameters('rgName')]", | |
"properties": {} | |
}, | |
{ | |
"type": "Microsoft.Resources/deployments", | |
"apiVersion": "2018-05-01", | |
"name": "storageDeployment", | |
"resourceGroup": "[parameters('rgName')]", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Resources/resourceGroups/', parameters('rgName'))]" | |
], | |
"properties": { | |
"mode": "Incremental", | |
"template": { | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": {}, | |
"variables": {}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Storage/storageAccounts", | |
"apiVersion": "2017-10-01", | |
"name": "[variables('storageName')]", | |
"location": "[parameters('rgLocation')]", | |
"kind": "StorageV2", | |
"sku": { | |
"name": "Standard_LRS" | |
} | |
} | |
], | |
"outputs": {} | |
} | |
} | |
} | |
], | |
"outputs": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment