Merge pull request #423 from vnextcoder/patch-1
Thanks for the updated PR. 👍
This commit is contained in:
commit
3475d5e2a9
@ -4,7 +4,7 @@ CreateGroup()
|
|||||||
{
|
{
|
||||||
echo Creating resource group $resource_group in '$location'
|
echo Creating resource group $resource_group in '$location'
|
||||||
az group create --name $resource_group --location $location
|
az group create --name $resource_group --location $location
|
||||||
} # end of system_info
|
} # end of CreateGroup()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ deployresources()
|
|||||||
{
|
{
|
||||||
echo Deploying ARM template '$path_and_filename.json' in resource group $resource_group
|
echo Deploying ARM template '$path_and_filename.json' in resource group $resource_group
|
||||||
az group deployment create --resource-group $resource_group --parameters @$path_and_filename.parameters.json --template-file $path_and_filename.json
|
az group deployment create --resource-group $resource_group --parameters @$path_and_filename.parameters.json --template-file $path_and_filename.json
|
||||||
}
|
} # end of deployresources
|
||||||
|
|
||||||
Error_Usage()
|
Error_Usage()
|
||||||
{
|
{
|
||||||
@ -75,4 +75,4 @@ if [ "$3" == "-c" ]; then
|
|||||||
fi
|
fi
|
||||||
deployresources
|
deployresources
|
||||||
|
|
||||||
echo "all finished successfully"
|
echo "all resources finished successfully"
|
||||||
|
@ -3,16 +3,16 @@
|
|||||||
|
|
||||||
The `create-resources.cmd ` script is a basic script to allow easy deployment of one ARM template in one resource group. You can deploy to an existing resource group or to create one.
|
The `create-resources.cmd ` script is a basic script to allow easy deployment of one ARM template in one resource group. You can deploy to an existing resource group or to create one.
|
||||||
|
|
||||||
**NOTE**: Alternatively, you can also use the `createresources.sh` bash script which was created as a second option, convenient if you are using the Azure Cloud Bash Shell, a Mac or Linux machine, or simply, bash on Windows, instead of CMD/CommandPrompt in a local Windows.
|
**NOTE**: Alternatively, you can also use the `createresources.sh` bash script which can be used as a second option, convenient if you are using the Azure Cloud Bash Shell, a Mac or Linux machine, or simply, bash on Windows, instead of CMD/CommandPrompt in a local Windows
|
||||||
|
|
||||||
## Deploying to a existing resource group
|
## Deploying to a existing resource group - Windows CMD
|
||||||
|
|
||||||
Just type `create-resources [pathfile-to-arm-template] resourcegroup` from command-prompt. Called this way the script will:
|
Just type `create-resources [pathfile-to-arm-template] resourcegroup` from command-prompt. Called this way the script will:
|
||||||
|
|
||||||
1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files
|
1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files
|
||||||
2. If they exist, will deploy them in the `resourcegroup` specified (that resource group in Azure has to exist).
|
2. If they exist, will deploy them in the `resourcegroup` specified (that resource group in Azure has to exist).
|
||||||
|
|
||||||
## Deploying to a new resource group
|
## Deploying to a new resource group - Windows CMD
|
||||||
|
|
||||||
Just type `create-resources [pathfile-to-arm-template] resourcegroup -c location`. Called this way the script will:
|
Just type `create-resources [pathfile-to-arm-template] resourcegroup -c location`. Called this way the script will:
|
||||||
|
|
||||||
@ -21,3 +21,20 @@ Just type `create-resources [pathfile-to-arm-template] resourcegroup -c location
|
|||||||
3. Finally will deploy `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files in the `resourcegroup`
|
3. Finally will deploy `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files in the `resourcegroup`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Deploying to a existing resource group - Bash shell
|
||||||
|
|
||||||
|
Just type `createresources.sh [pathfile-to-arm-template] resourcegroup` from command-prompt. Called this way the script will:
|
||||||
|
|
||||||
|
1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files
|
||||||
|
2. If they exist, will deploy them in the `resourcegroup` specified (that resource group in Azure has to exist).
|
||||||
|
|
||||||
|
## Deploying to a new resource group - Bash shell
|
||||||
|
|
||||||
|
Just type `createresources.sh [pathfile-to-arm-template] resourcegroup -c location`. Called this way the script will:
|
||||||
|
|
||||||
|
1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files
|
||||||
|
2. If they exist, will create the `resourcegroup` specified in the `location` specified.
|
||||||
|
3. Finally will deploy `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files in the `resourcegroup`
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user