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
Improve deployment and remediation README sections with variable setup
Restructure both Deploy Policy and Start Remediation usage
instructions to guide users through setting variables before
running scripts. Clearly separates required vs optional parameters
with inline comments, shows progressively detailed invocations
(minimal, with subscription, with all options), and streamlines
scenario examples with descriptive comments.
Note:`scripts/deployment.ps1` automatically grants required roles to the policy assignment managed identity at assignment scope, preventing common `PolicyAuthorizationFailed` errors during DeployIfNotExists deployments.
108
+
> **Note:**`deployment.ps1` automatically grants required roles to the policy assignment managed identity at assignment scope, preventing common `PolicyAuthorizationFailed` errors during DeployIfNotExists deployments.
90
109
91
110
## Start Remediation
92
111
@@ -100,17 +119,38 @@ Parameter reference:
100
119
|`TargetLicenseType`| Yes | N/A |`Paid`, `PAYG`| Must match the assignment target license type. |
101
120
|`GrantMissingPermissions`| No |`false`| Switch (`present`/`not present`) | If set, checks and assigns missing required roles before remediation. |
102
121
122
+
1. Set your variables. `TargetLicenseType` is required and must match the value used during deployment — all others are optional.
123
+
103
124
```powershell
104
-
# Example: remediate both platforms (default), using tenant root management group
> **Note:** Use `-GrantMissingPermissions` to automatically check and assign any missing required roles before remediation starts.
153
+
114
154
## Managed Identity And Roles
115
155
116
156
The policy assignment is created with `-IdentityType SystemAssigned`. Azure creates a managed identity on the assignment and uses it to apply DeployIfNotExists changes during enforcement and remediation.
0 commit comments