Partial Bicep file to flip a property on an existing resource #9034
-
Scenario: flip a property on all existing resources of a given type across RGs or regions. Can below syntax (and semantics) be possible to just modify a property on an existing resource (see also #9033): param accountName string
param location string
resource sa 'Microsoft.Storage/storageAccounts' existing = {
name: accountName
location: location
properties: {
supportsHttpsTrafficOnly: true
}
} This could help turn Bicep to be declarative language to run some operator actions instead of a full deployment of all resources (the idea for the snippet was taken from #8725). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I would use Azure Policy and remediation tasks to solve this. https://learn.microsoft.com/en-us/azure/governance/policy/how-to/remediate-resources?tabs=azure-portal |
Beta Was this translation helpful? Give feedback.
-
Moved this to an issue, so going to close here. |
Beta Was this translation helpful? Give feedback.
new issue: