Skip to content

Get-ResourceGroupReport

Azure: Gets a report of resource groups

param()

try {
	Import-Module Az.Resources -ErrorAction Stop
	$rgs = Get-AzResourceGroup -ErrorAction Stop | Select-Object ResourceGroupName, Location, ProvisioningState
	Write-Output $rgs
} catch {
	Write-Error $_
	exit 1
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.