Skip to content

Instantly share code, notes, and snippets.

@stuartleeks
stuartleeks / Verify-DeploymentGuid.ps1
Last active January 19, 2021 10:13 — forked from bmoore-msft/Verify-DeploymentGuid.ps1
Fetch the resources tagged in a pid-[GUID] deployment
<#
This is an update of the original script to work with the Az PowerShell module: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-1.0.0
Use this script to retrieve the resources that were deployed with a pid-[GUID] tag
Select-AzSubscription before running the script - it must be run within the subscription context of the deployment
The GUID and resourceGroup name of the deployment are required params
#>
Param(
[GUID][Parameter(Mandatory=$true)]$guid,
[string][Parameter(Mandatory=$true)]$resourceGroupName