First deploy scripts

This commit is contained in:
Eduard Tomas 2017-04-24 13:15:54 +02:00
parent 952bd41e39
commit 9661b2c047
3 changed files with 27 additions and 0 deletions

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
deploy/az/mvparams.json Normal file
View File

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

16
deploy/readme.md Normal file
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