Skip to content

Commit 9bac217

Browse files
adds reference command to run a deployment using the Azure CLI
1 parent 39ba536 commit 9bac217

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

infrastructure/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,17 @@ parameters files for TEST and PROD to know which settings impact on pricing.
100100

101101
* [Deploy ARM templates by using GitHub Actions](https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-github-actions)
102102
* [Python web app on Azure](https://github.com/Azure/actions-workflow-samples/blob/master/AppService/python-webapp-on-azure.yml)
103+
104+
105+
## To deploy from the local environment:
106+
107+
```bash
108+
az login
109+
az account set --subscription "<YOUR_SUB_NAME>"
110+
111+
ENV="dev"
112+
PROJECT_NAME="asyouwish"
113+
RG="dev-$PROJECT_NAME-rg"
114+
115+
az deployment group create --resource-group $RG --parameters @parameters.$ENV.json --parameters projectName=$PROJECT_NAME dbAdministratorLoginPassword=$DB_PASS dbAppUserPassword=$DB_APP_PASS --template-file template.bicep
116+
```

0 commit comments

Comments
 (0)