Skip to content

Commit 9661b2c

Browse files
committed
First deploy scripts
1 parent 952bd41 commit 9661b2c

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

deploy/az/create-resources.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
REM az group create --name eShopOnAzureDev --location westus
2+
3+
az group deployment create --resource-group eShopOnAzureDev --parameters @mvparams.json ^
4+
--template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/docker-simple-on-ubuntu/azuredeploy.json
5+

deploy/az/mvparams.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"newStorageAccountName": { "value": "eshopsrvmvstorage" },
3+
"adminUsername": { "value": "eshop" },
4+
"adminPassword": { "value": "Pass@word" },
5+
"dnsNameForPublicIP": { "value": "eshop-srv" }
6+
}

deploy/readme.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Deploying Resources On Azure
2+
3+
## Pre-requisites
4+
1. [Azure CLI 2.0 Installed](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
5+
2. Azure subscription created
6+
7+
## Deploying using CLI
8+
9+
1. Run `az login` to login into your Azure subscription (note that you maybe need to use `az account set` to set the subscription to use)
10+
2. Edit the file `mvparams.json` with your desired values
11+
3. Run the file `create-resources.cmd` from command-line to create the Linux-based VM with Docker installed
12+
13+
14+
15+
16+

0 commit comments

Comments
 (0)