diff --git a/deploy/az/create-resources.cmd b/deploy/az/create-resources.cmd new file mode 100644 index 000000000..c8e317b2d --- /dev/null +++ b/deploy/az/create-resources.cmd @@ -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 + diff --git a/deploy/az/mvparams.json b/deploy/az/mvparams.json new file mode 100644 index 000000000..c80c82e6c --- /dev/null +++ b/deploy/az/mvparams.json @@ -0,0 +1,6 @@ +{ + "newStorageAccountName": { "value": "eshopsrvmvstorage" }, + "adminUsername": { "value": "eshop" }, + "adminPassword": { "value": "Pass@word" }, + "dnsNameForPublicIP": { "value": "eshop-srv" } +} diff --git a/deploy/readme.md b/deploy/readme.md new file mode 100644 index 000000000..4fd772049 --- /dev/null +++ b/deploy/readme.md @@ -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 + + + + +