Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/#412 incorrect role definition & change evaluationDelay to AfterProvisioning #413

Merged
merged 3 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"displayName": "Deploy Resource Lock on RGs - tag exclusion",
"description": "Automatically deploys a resource lock to resources that are not in the dv environment to prevent accidental deletion.",
DonKoning marked this conversation as resolved.
Show resolved Hide resolved
"metadata": {
"version": "1.0.0",
"version": "1.0.1",
"category": "General"
},
"mode": "All",
Expand Down Expand Up @@ -59,6 +59,7 @@
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Authorization/locks",
"evaluationDelay": "AfterProvisioning",
"existenceCondition": {
"field": "Microsoft.Authorization/locks/level",
"equals": "CanNotDelete"
Expand All @@ -84,7 +85,7 @@
}
},
"roleDefinitionIds": [
"/providers/Microsoft.Authorization/roleDefinitions/35b50af1-b556-492f-8595-cbf5cb531055"
"/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Authorization/locks",
"evaluationDelay": "AfterProvisioning",
"existenceCondition": {
"field": "Microsoft.Authorization/locks/level",
"equals": "CanNotDelete"
Expand All @@ -42,7 +43,7 @@
}
},
"roleDefinitionIds": [
"/providers/Microsoft.Authorization/roleDefinitions/35b50af1-b556-492f-8595-cbf5cb531055"
"/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635"
]
}
}
Expand Down