2019-05-17 17:58:20 -04:00
|
|
|
{
|
|
|
|
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
|
|
|
|
"contentVersion": "1.0.0.0",
|
|
|
|
"parameters": {
|
|
|
|
"keyVaultName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-03-11 21:13:10 -04:00
|
|
|
"keyVaultSKU": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2019-05-17 17:58:20 -04:00
|
|
|
"keyVaultSecretValue": {
|
|
|
|
"type": "securestring"
|
|
|
|
},
|
|
|
|
"objectId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"tenantId": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"resources": [
|
|
|
|
{
|
|
|
|
"apiVersion": "[variables('apiVersion')]",
|
|
|
|
"location": "[variables('location')]",
|
|
|
|
"name": "[parameters('keyVaultName')]",
|
|
|
|
"properties": {
|
|
|
|
"accessPolicies": [
|
|
|
|
{
|
|
|
|
"objectId": "[parameters('objectId')]",
|
|
|
|
"permissions": {
|
|
|
|
"keys": [
|
|
|
|
"all"
|
|
|
|
],
|
|
|
|
"secrets": [
|
|
|
|
"all"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"tenantId": "[parameters('tenantId')]"
|
|
|
|
}
|
|
|
|
],
|
2020-11-02 23:42:55 -05:00
|
|
|
"enableSoftDelete": "true",
|
2019-05-17 17:58:20 -04:00
|
|
|
"enabledForDeployment": "true",
|
|
|
|
"enabledForTemplateDeployment": "true",
|
|
|
|
"sku": {
|
|
|
|
"family": "A",
|
2020-03-11 20:33:57 -04:00
|
|
|
"name": "[parameters('keyVaultSKU')]"
|
2019-05-17 17:58:20 -04:00
|
|
|
},
|
|
|
|
"tenantId": "[parameters('tenantId')]"
|
|
|
|
},
|
|
|
|
"resources": [
|
|
|
|
{
|
|
|
|
"apiVersion": "[variables('apiVersion')]",
|
|
|
|
"dependsOn": [
|
|
|
|
"[concat('Microsoft.KeyVault/vaults/', parameters('keyVaultName'))]"
|
|
|
|
],
|
|
|
|
"name": "[variables('keyVaultSecretName')]",
|
|
|
|
"properties": {
|
|
|
|
"value": "[parameters('keyVaultSecretValue')]"
|
|
|
|
},
|
|
|
|
"type": "secrets"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": {
|
|
|
|
"tag01": "value01",
|
|
|
|
"tag02": "value02",
|
|
|
|
"tag03": "value03"
|
|
|
|
},
|
|
|
|
"type": "Microsoft.KeyVault/vaults"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"variables": {
|
|
|
|
"apiVersion": "2015-06-01",
|
|
|
|
"keyVaultSecretName": "packerKeyVaultSecret",
|
|
|
|
"location": "[resourceGroup().location]"
|
|
|
|
}
|
2020-03-11 21:13:10 -04:00
|
|
|
}
|