AZ-104-MicrosoftAzureAdmini.../Allfiles/Labs/03/az104-03b-md-template.json
2020-09-09 15:11:39 +12:00

61 lines
1.6 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"diskName": {
"type": "String"
},
"location": {
"type": "String"
},
"sku": {
"type": "String"
},
"diskSizeGb": {
"type": "Int"
},
"sourceResourceId": {
"type": "String"
},
"sourceUri": {
"type": "String"
},
"osType": {
"type": "String"
},
"createOption": {
"type": "String"
},
"hyperVGeneration": {
"defaultValue": "V1",
"type": "String"
},
"diskEncryptionSetType": {
"type": "String"
},
"networkAccessPolicy": {
"type": "String",
"defaultValue" : "AllowAll"
},
"resources": [
{
"type": "Microsoft.Compute/disks",
"apiVersion": "2019-07-01",
"name": "[parameters('diskName')]",
"location": "[parameters('location')]",
"tags": {},
"sku": {
"name": "[parameters('sku')]"
},
"properties": {
"creationData": {
"createOption": "[parameters('createOption')]"
},
"diskSizeGB": "[parameters('diskSizeGb')]",
"osType": "[parameters('osType')]",
"networkAccessPolicy": "[parameters('networkAccessPolicy')]"
}
}
]
}