|
| 1 | + |
1 | 2 | # Deploying resources using create-resources script |
2 | 3 |
|
3 | | -The `create-resources` 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. |
| 4 | +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. |
| 5 | + |
| 6 | +**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 |
| 7 | + |
| 8 | +## Deploying to a existing resource group - Windows CMD |
| 9 | + |
| 10 | +Just type `create-resources [pathfile-to-arm-template] resourcegroup` from command-prompt. Called this way the script will: |
| 11 | + |
| 12 | +1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files |
| 13 | +2. If they exist, will deploy them in the `resourcegroup` specified (that resource group in Azure has to exist). |
| 14 | + |
| 15 | +## Deploying to a new resource group - Windows CMD |
| 16 | + |
| 17 | +Just type `create-resources [pathfile-to-arm-template] resourcegroup -c location`. Called this way the script will: |
| 18 | + |
| 19 | +1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files |
| 20 | +2. If they exist, will create the `resourcegroup` specified in the `location` specified. |
| 21 | +3. Finally will deploy `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files in the `resourcegroup` |
| 22 | + |
| 23 | + |
4 | 24 |
|
5 | | -## Deploying to a existing resource group |
| 25 | +## Deploying to a existing resource group - Bash shell |
6 | 26 |
|
7 | | -Just type `create-resources path-to-arm-template resourcegroup`. Called this way the script will: |
| 27 | +Just type `createresources.sh [pathfile-to-arm-template] resourcegroup` from command-prompt. Called this way the script will: |
8 | 28 |
|
9 | 29 | 1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files |
10 | | -2. If they exist, will deploy them in the `resourcegroup` specified (that has to exist). |
| 30 | +2. If they exist, will deploy them in the `resourcegroup` specified (that resource group in Azure has to exist). |
11 | 31 |
|
12 | | -## Deploying to a new resource group |
| 32 | +## Deploying to a new resource group - Bash shell |
13 | 33 |
|
14 | | -Just type `create-resources path-to-arm-template resourcegroup -c location`. Called this way the script will: |
| 34 | +Just type `createresources.sh [pathfile-to-arm-template] resourcegroup -c location`. Called this way the script will: |
15 | 35 |
|
16 | 36 | 1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files |
17 | 37 | 2. If they exist, will create the `resourcegroup` specified in the `location` specified. |
|
0 commit comments