azure-arm builder: Create keyvaults with SoftDelete enabled

This commit is contained in:
Sumit Kalra 2020-11-02 20:42:55 -08:00
parent 9ec55d3cd7
commit 2b69a5f496
3 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,7 @@
"tenantId": "[parameters('tenantId')]" "tenantId": "[parameters('tenantId')]"
} }
], ],
"enableSoftDelete": "true",
"enabledForDeployment": "true", "enabledForDeployment": "true",
"enabledForTemplateDeployment": "true", "enabledForTemplateDeployment": "true",
"sku": { "sku": {

View File

@ -85,6 +85,7 @@ type Properties struct {
DNSSettings *network.PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"` DNSSettings *network.PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"`
EnabledForDeployment *string `json:"enabledForDeployment,omitempty"` EnabledForDeployment *string `json:"enabledForDeployment,omitempty"`
EnabledForTemplateDeployment *string `json:"enabledForTemplateDeployment,omitempty"` EnabledForTemplateDeployment *string `json:"enabledForTemplateDeployment,omitempty"`
EnableSoftDelete *string `json:"enableSoftDelete,omitempty"`
HardwareProfile *compute.HardwareProfile `json:"hardwareProfile,omitempty"` HardwareProfile *compute.HardwareProfile `json:"hardwareProfile,omitempty"`
IPConfigurations *[]network.IPConfiguration `json:"ipConfigurations,omitempty"` IPConfigurations *[]network.IPConfiguration `json:"ipConfigurations,omitempty"`
NetworkProfile *compute.NetworkProfile `json:"networkProfile,omitempty"` NetworkProfile *compute.NetworkProfile `json:"networkProfile,omitempty"`

View File

@ -554,6 +554,7 @@ const KeyVault = `{
"properties": { "properties": {
"enabledForDeployment": "true", "enabledForDeployment": "true",
"enabledForTemplateDeployment": "true", "enabledForTemplateDeployment": "true",
"enableSoftDelete": "true",
"tenantId": "[parameters('tenantId')]", "tenantId": "[parameters('tenantId')]",
"accessPolicies": [ "accessPolicies": [
{ {