Repository for Azure Resource Policy built-in definitions and samples
1.51k
stars
1.09k
forks
source link
Connection string related policy not working | Microsoft.Web/sites/siteConfig.connectionStrings #1368
Open
Sermandurai-Azure opened 3 months ago
I tried this below steps and it not working required value are below az webapp config connection-string list --name xxxx --resource-group xxx
[ { "name": "qwedsdd", "slotSetting": false, "type": "SQLAzure", "value": "showpassword" } ]
========= { "parameters": { "effect": { "type": "String", "metadata": { "displayName": "Effect", "description": "The effect of the policy" }, "allowedValues": [ "Audit", "Disabled" ], "defaultValue": "Audit" } }, "policyRule": { "if": { "field": "type", "equals": "Microsoft.Web/sites" }, "then": { "effect": "[parameters('effect')]", "details": { "type": "Microsoft.Web/sites/config", "existenceCondition": { "allOf": [ { "field": " Microsoft.Web/sites/siteConfig.connectionStrings", "exists": "true" }, { "field": " Microsoft.Web/sites/siteConfig.connectionStrings[*].name", "equals": "qwedsdd"