echo "Enter a project name that is used to generate resource group name:" &&
read projectName &&
echo "Enter the location (i.e. centralus):" &&
read location &&
resourceGroupName="${projectName}rg" &&
az group create --name$resourceGroupName--location"$location" &&
az deployment group create --resource-group$resourceGroupName--template-file"$HOME/azuredeploy.json"
Azure PowerShell
$projectName = Read-Host -Prompt"Enter a project name that is used to generate resource group name"$location = Read-Host -Prompt"Enter the location (i.e. centralus)"$resourceGroupName = "${projectName}rg"New-AzResourceGroup -Name$resourceGroupName -Location"$location"New-AzResourceGroupDeployment -ResourceGroupName$resourceGroupName -TemplateFile"$HOME/azuredeploy.json"
echo "Enter a project name that is used to generate resource group name:" &&
read projectName &&
resourceGroupName="${projectName}rg" &&
az storage account list --resource-group$resourceGroupName &&
echo "Press [ENTER] to continue ..."
Azure PowerShell
$projectName = Read-Host -Prompt"Enter a project name that is used to generate resource group name"$resourceGroupName = "${projectName}rg"Get-AzStorageAccount -ResourceGroupName$resourceGroupNameWrite-Host"Press [ENTER] to continue ..."