Created
February 8, 2022 20:19
-
-
Save isjwuk/67e9bb67bd489e424973c5836ab5595d to your computer and use it in GitHub Desktop.
Set a default location for Azure Resource Groups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Set the default location for new resource groups. | |
$PSDefaultParameterValues.Add("New-AzResourceGroup:Location","uksouth") | |
#Create a Resource Group without specifying the location parameter | |
New-AZResourceGroup -Name "test-rsg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment