Azure Resource Manager - micklpl/avanade-azure-workshop GitHub Wiki

Available tags

rm-template

Deployment

git checkout rm-template

If you are subscribed to more than one subscription, you can choose which one to use during deployment. Go to https://portal.azure.com, expand menu on the left and click on "Cost Management + Billing".

View my bill

Copy subscription id.

Subscription name

Open Deploy-AzureResourceGroup.ps1 file and edit line 29. Paste your subscription id into quotes.

$subscriptionId = ""
Select-AzureRmSubscription -SubscriptionId $subscriptionId

Open azuredeploy.parameters.json file and edit line 6. Set some custom value of the parameter avanadeAppEnvironment. The value should be unique among learners.

Code

Open PowerShell window from the following directory:

\avanade-azure-workshop\src\Avanade.AzureWorkshop\Avanade.AzureWorkshop.ResourceGroup.

Type:

Login-AzureRmAccount

Provide your credentials and continue. Now, allow untrusted script to be run:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

Run template deployment:

.\Deploy-AzureResourceGroup.ps1 -ResourceGroupLocation "northeurope" -ResourceGroupName "AvanadeWorkshop" -TemplateFile ".\azuredeploy.json" -TemplateParametersFile ".\azuredeploy.parameters.json" -UploadArtifacts