Skip to content

Instantly share code, notes, and snippets.

@mrik23
Created July 2, 2017 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrik23/a29fc20a94bfe7694d036ee23dcbf4a5 to your computer and use it in GitHub Desktop.
Save mrik23/a29fc20a94bfe7694d036ee23dcbf4a5 to your computer and use it in GitHub Desktop.
Deploy ARM template with PowerShell
#Connect to Azure
Login-AzureRmAccount
#Create a new resource group is necessary
New-AzureRmResourceGroup -Name MyResourceGroup -Location "East US"
#Deploy the template in the defined Resource Group
New-AzureRmResourceGroupDeployment -Name ExampleDeployment -ResourceGroupName MyResourceGroup `
-TemplateFile c:\projects\templates\azuredeploy.json `
-Verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment