Azure notes

From Federal Burro of Information
Revision as of 16:04, 9 January 2017 by David (talk | contribs)
Jump to navigationJump to search

modern login process:

https://docs.microsoft.com/en-us/powershell/azureps-cmdlets-docs/

sample deployment bash:

#!/bin/sh

# how I was doing it:
# azure group deployment create --mode Complete -f website_template.json -e website_parameters.json -g websiteRG2 -n deployment1

deploymentName="deployment1"
resourceGroupName="websiteRG2"
templateFilePath="website_template.json"
parametersFilePath="website_parameters.json"

# how the supplied deploy.sh does it:
echo azure group deployment create --name $deploymentName --resource-group $resourceGroupName --template-file $templateFilePath --parameters-file $parametersFilePath
azure group deployment create --name $deploymentName --resource-group $resourceGroupName --template-file $templateFilePath --parameters-file $parametersFilePath