github.phpd.cn/hashicorp/packer@v1.3.2/builder/azure/arm/template_factory_test.TestKeyVaultDeployment03.approved.json (about) 1 { 2 "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", 3 "contentVersion": "1.0.0.0", 4 "parameters": { 5 "keyVaultName": { 6 "type": "string" 7 }, 8 "keyVaultSecretValue": { 9 "type": "securestring" 10 }, 11 "objectId": { 12 "type": "string" 13 }, 14 "tenantId": { 15 "type": "string" 16 } 17 }, 18 "resources": [ 19 { 20 "apiVersion": "[variables('apiVersion')]", 21 "location": "[variables('location')]", 22 "name": "[parameters('keyVaultName')]", 23 "properties": { 24 "accessPolicies": [ 25 { 26 "objectId": "[parameters('objectId')]", 27 "permissions": { 28 "keys": [ 29 "all" 30 ], 31 "secrets": [ 32 "all" 33 ] 34 }, 35 "tenantId": "[parameters('tenantId')]" 36 } 37 ], 38 "enabledForDeployment": "true", 39 "enabledForTemplateDeployment": "true", 40 "sku": { 41 "family": "A", 42 "name": "standard" 43 }, 44 "tenantId": "[parameters('tenantId')]" 45 }, 46 "resources": [ 47 { 48 "apiVersion": "[variables('apiVersion')]", 49 "dependsOn": [ 50 "[concat('Microsoft.KeyVault/vaults/', parameters('keyVaultName'))]" 51 ], 52 "name": "[variables('keyVaultSecretName')]", 53 "properties": { 54 "value": "[parameters('keyVaultSecretValue')]" 55 }, 56 "type": "secrets" 57 } 58 ], 59 "tags": { 60 "tag01": "value01", 61 "tag02": "value02", 62 "tag03": "value03" 63 }, 64 "type": "Microsoft.KeyVault/vaults" 65 } 66 ], 67 "variables": { 68 "apiVersion": "2015-06-01", 69 "keyVaultSecretName": "packerKeyVaultSecret", 70 "location": "[resourceGroup().location]" 71 } 72 }