You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can "like" be used against a field?
More specific like this, against an array? "if": { "allOf": [ { "field": "type", "equals": "Microsoft.Network/privateEndpoints" }, { "count": { "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", "where": { "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", "like": "sites-*" } }, "greaterOrEquals": 1 } ] }
I need to create a custom policy that is for Private DNS for App Service Slots.
There is no built in policy for this and none in Entrerprise Scale.
What makes these private endpoints so difficult is that there is no fixed GroupID, but rather follows this standard:
'sites-${slot.name}'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Can "like" be used against a field?
More specific like this, against an array?
"if": { "allOf": [ { "field": "type", "equals": "Microsoft.Network/privateEndpoints" }, { "count": { "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", "where": { "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", "like": "sites-*" } }, "greaterOrEquals": 1 } ] }Beta Was this translation helpful? Give feedback.
All reactions