Updating to release 2024-03-01
Complete the activities documented in the Steps to update to the latest release page.
Updating to release 2024-03-01 will require running a post update script to remove the old Service Health action group(s) no longer in use.
To run the script, follow the following instructions:
Open PowerShell
Make sure the following modules are installed:
- Az.Accounts: if not installed, use the
Install-Module Az.Accountsto install it - Az.Resources: if not installed, use the
Install-Module Az.Resourcesto install it
- Az.Accounts: if not installed, use the
Change directory to the location of the Start-AMBA-ALZ-Maintenance.ps1 script
Configure the $pseudoRootManagementGroup variable using the following command:
$pseudoRootManagementGroup = "The pseudo root management group id parenting the Platform and Landing Zones management groups"Sign in to Azure with the
Connect-AzAccountcommand. The account you sign in with needs to have permissions to all the aforementioned resources (Policy Assignments, Policy Definitions, and other resources) at the desired Management Group scope.Execute the script using one of the following options:
Since PowerShell scripts released as part of the ALZ pattern are not digitally signed they might require you to temporarily change the execution policy if not already set to Unrestricted. Before running the script, check the execution policy settings using this command:
Get-ExecutionPolicyIf the result is everything but Unrestricted, run the following command to change it to Unrestricted
Set-ExecutionPolicy -ExecutionPolicy UnrestrictedAt this point, you should be able to run your scripts with no issues. After you finished, you can set the execution policy back to what it was if you like to do so.
Get full help on script usage help:
Get-help ./Start-AMBA-ALZ-Maintenance.ps1Show output of what would happen if deletes executed:
./Start-AMBA-ALZ-Maintenance.ps1 -pseudoRootManagementGroup $pseudoRootManagementGroup -cleanItems NotificationAssets -WhatIfExecute the script asking for confirmation before deleting the resources deployed by AMBA-ALZ:
./Start-AMBA-ALZ-Maintenance.ps1 -pseudoRootManagementGroup $pseudoRootManagementGroup -cleanItems NotificationAssetsExecute the script without asking for confirmation before deleting the resources deployed by AMBA-ALZ.
./Start-AMBA-ALZ-Maintenance.ps1 -pseudoRootManagementGroup $pseudoRootManagementGroup -cleanItems NotificationAssets -Confirm:$false