Browse Source

First deploy scripts

pull/235/head
Eduard Tomas 7 years ago
parent
commit
9661b2c047
3 changed files with 27 additions and 0 deletions
  1. +5
    -0
      deploy/az/create-resources.cmd
  2. +6
    -0
      deploy/az/mvparams.json
  3. +16
    -0
      deploy/readme.md

+ 5
- 0
deploy/az/create-resources.cmd View File

@ -0,0 +1,5 @@
REM az group create --name eShopOnAzureDev --location westus
az group deployment create --resource-group eShopOnAzureDev --parameters @mvparams.json ^
--template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/docker-simple-on-ubuntu/azuredeploy.json

+ 6
- 0
deploy/az/mvparams.json View File

@ -0,0 +1,6 @@
{
"newStorageAccountName": { "value": "eshopsrvmvstorage" },
"adminUsername": { "value": "eshop" },
"adminPassword": { "value": "Pass@word" },
"dnsNameForPublicIP": { "value": "eshop-srv" }
}

+ 16
- 0
deploy/readme.md View File

@ -0,0 +1,16 @@
# Deploying Resources On Azure
## Pre-requisites
1. [Azure CLI 2.0 Installed](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
2. Azure subscription created
## Deploying using CLI
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)
2. Edit the file `mvparams.json` with your desired values
3. Run the file `create-resources.cmd` from command-line to create the Linux-based VM with Docker installed

Loading…
Cancel
Save