File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6363if [[ -z " $resourceGroupName " ]]; then
6464 echo " This script will look for an existing resource group, otherwise a new one will be created "
6565 echo " You can create new resource groups with the CLI using: az group create "
66- echo " Enter a resource group name"
66+ echo " Enter a resource group name: "
6767 read resourceGroupName
6868 [[ " ${resourceGroupName:? } " ]]
6969fi
@@ -113,13 +113,13 @@ set +e
113113az group show --name $resourceGroupName 1> /dev/null
114114
115115if [ $? != 0 ]; then
116- echo " Resource group with name" $resourceGroupName " could not be found. Creating new resource group.."
116+ echo " Resource group with name" $resourceGroupName " could not be found. Creating new resource group... "
117117 set -e
118118 (
119119 set -x
120120 az group create --name $resourceGroupName --location $resourceGroupLocation 1> /dev/null
121121 )
122- else
122+ else
123123 echo " Using existing resource group..."
124124fi
125125resourceGroupLocation=$( az group show --name $resourceGroupName | jq -r ' .location' )
You can’t perform that action at this time.
0 commit comments