24 lines
1.3 KiB
Markdown
Raw Normal View History

2017-12-07 08:59:39 -08:00
2017-05-19 14:38:16 +02:00
# Deploying resources using create-resources script
2017-12-07 09:02:08 -08:00
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.
2017-05-19 14:38:16 +02:00
2017-12-07 09:07:11 -08:00
**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.
2017-12-07 08:59:39 -08:00
2017-05-19 14:38:16 +02:00
## Deploying to a existing resource group
2017-12-07 09:02:08 -08:00
Just type `create-resources [pathfile-to-arm-template] resourcegroup` from command-prompt. Called this way the script will:
2017-05-19 14:38:16 +02:00
1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files
2017-12-07 09:02:08 -08:00
2. If they exist, will deploy them in the `resourcegroup` specified (that resource group in Azure has to exist).
2017-05-19 14:38:16 +02:00
## Deploying to a new resource group
2017-12-07 09:02:08 -08:00
Just type `create-resources [pathfile-to-arm-template] resourcegroup -c location`. Called this way the script will:
2017-05-19 14:38:16 +02:00
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`