Deploying resources using create-resources script
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 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 - Windows CMD
Just type create-resources [pathfile-to-arm-template] resourcegroup from command-prompt. Called this way the script will:
- Search for
path-to-arm-template.jsonandpath-to-arm-template.parameters.jsonfiles - If they exist, will deploy them in the
resourcegroupspecified (that resource group in Azure has to exist).
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:
- Search for
path-to-arm-template.jsonandpath-to-arm-template.parameters.jsonfiles - If they exist, will create the
resourcegroupspecified in thelocationspecified. - Finally will deploy
path-to-arm-template.jsonandpath-to-arm-template.parameters.jsonfiles in theresourcegroup
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:
- Search for
path-to-arm-template.jsonandpath-to-arm-template.parameters.jsonfiles - If they exist, will deploy them in the
resourcegroupspecified (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:
- Search for
path-to-arm-template.jsonandpath-to-arm-template.parameters.jsonfiles - If they exist, will create the
resourcegroupspecified in thelocationspecified. - Finally will deploy
path-to-arm-template.jsonandpath-to-arm-template.parameters.jsonfiles in theresourcegroup