Lab 5: Clean up your subscription
Task 1: Open Azure Cloud Shell
In the Azure portal, select the Cloud Shell icon to open a new PowerShell session. If Cloud Shell defaults to a PowerShell session, select PowerShell, and in the drop-down menu, select Bash.
Note: If this is the first time you're starting Cloud Shell, when prompted to select either Bash or PowerShell, select Bash. When you're presented with the You have no storage mounted message, select the subscription you're using in this lab, and select Create storage.
Task 2: Delete resource groups
On the Cloud Shell pane, run the following command to delete the MonitoredAssets resource group:
az group delete --name MonitoredAssets --no-wait --yes
Note: The command executes asynchronously (as determined by the --no-wait parameter), so while you'll be able to run another Azure CLI command immediately afterwards within the same Bash session, it'll take a few minutes before the resource groups are actually removed.
Close the Cloud Shell pane in the portal.
Task 3: Close the active applications
Close the currently running Microsoft Edge application.
Close the currently running Visual Studio Code application.
Review
In this exercise, you cleaned up your subscription by removing the resource groups used in this lab.