Skip to content

Commit 09b0e3e

Browse files
committed
Doc updated
1 parent fb72a0e commit 09b0e3e

17 files changed

Lines changed: 87 additions & 344 deletions

deploy/arm/eShopOnAzure.Deploy.sln

Lines changed: 0 additions & 22 deletions
This file was deleted.

deploy/arm/eShopOnAzure.Deploy/Deploy-AzureResourceGroup.ps1

Lines changed: 0 additions & 120 deletions
This file was deleted.

deploy/arm/eShopOnAzure.Deploy/Deployment.targets

Lines changed: 0 additions & 123 deletions
This file was deleted.

deploy/arm/eShopOnAzure.Deploy/eShopOnAzure.Deploy.deployproj

Lines changed: 0 additions & 38 deletions
This file was deleted.

deploy/az/create-resources.cmd

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@echo off
2+
if %1.==. GOTO error
3+
if %2.==. GOTO error
4+
if NOT %3.==-c. GOTO deployresources
5+
if %4.==. GOTO error
6+
echo Creating resource group %2 in '%4'
7+
call az group create --name %2 --location %4
8+
:deployresources
9+
echo Deploying ARM template '%1.json' in resource group %2
10+
call az group deployment create --resource-group %2 --parameters @%1.parameters.json --template-file %1.json
11+
GOTO end
12+
:error
13+
echo.
14+
echo Usage:
15+
echo create-resources arm-file resource-group-name [-c location]
16+
echo arm-file: Path to ARM template WITHOUT .json extension. An parameter file with same name plus '.parameters' MUST exist in same folde
17+
echo resource-grop-name: Name of the resource group to use or create
18+
echo -c: If appears means that resource group must be created. If -c is specified, must use enter location
19+
echo.
20+
echo Examples:
21+
echo create-resources path_and_filename testgroup (Deploys path_and_filename.json with parameters specified in path_and_filename.parameters.json file).
22+
echo create-resources path_and_filename newgroup -c westus (Deploys path_and_filename.json (with parameters specified in path_and_filename.parameters.json file) in a NEW resource group named newgroup in the westus location)
23+
:end

deploy/az/readme.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Deploying resources using create-resources script
2+
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+
5+
## Deploying to a existing resource group
6+
7+
Just type `create-resources path-to-arm-template resourcegroup`. Called this way the script will:
8+
9+
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).
11+
12+
## Deploying to a new resource group
13+
14+
Just type `create-resources path-to-arm-template resourcegroup -c location`. Called this way the script will:
15+
16+
1. Search for `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files
17+
2. If they exist, will create the `resourcegroup` specified in the `location` specified.
18+
3. Finally will deploy `path-to-arm-template.json` and `path-to-arm-template.parameters.json` files in the `resourcegroup`
19+
20+

deploy/az/sql/readme.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Deploying SQL Server & SQL Databases
2+
3+
The ARM template `sqldeploy.json` and its parameter file (`sqldeploy.parameters.json`) are used to deploy following resources:
4+
5+
1. One SQL Server
6+
2. Three SQL databases (for ordering, catalog and identity) services.
7+
3. Firewall rules to **allow access from any IP to SQL Server**. This allows easy management, but is not desired in production environments.
8+
9+
## Editing sqldeploy.parameters.json file
10+
11+
You have to edit the `sqldeploy.parameters.json` file to set your values. There are two parameters:
12+
13+
1. `sql_server` is a object parameter that contains the sql server name, the admin login and password, and the database names.
14+
2. `suffix` is a suffix that will be added to thee sql_server name to ensure uniqueness.
15+
16+
## Deploy the template
17+
18+
Once parameter file is edited you can deploy it using [create-resources script](../readme.md).
19+
20+
i. e. if you are in windows, to deploy sql databases in a new resourcegroup located in westus, go to `deploy\az` folder and type:
21+
22+
```
23+
create-resources.cmd sql\sqldeploy newResourceGroup -c westus
24+
```
25+
26+
27+
28+
29+
30+
31+
32+
33+
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)