Skip to content

Instantly share code, notes, and snippets.

View gdbarron's full-sized avatar

Greg Brownstein gdbarron

View GitHub Profile
@gdbarron
gdbarron / Test-AzureResourceMove.ps1
Last active March 12, 2019 01:22
Perform validation prior to moving Azure resources between resource groups or subscriptions
<#
.SYNOPSIS
Test if moving Azure resources will be successful
.DESCRIPTION
Test if moving Azure resources will be successful. Returns a boolean, but will also display an error if encountered.
.PARAMETER SourceSubscriptionId
Subscription ID where the resources are to move from
.PARAMETER SourceResourceGroup
Resource group name where the resources are to move from
.PARAMETER SourceResourceIds