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). |
Answered by
brwilkinson
May 22, 2023
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 |
6 replies
|
Moved this to an issue, so going to close here. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
new issue: