From 2e9518e03f1c3a96ba317164c0d1eae4b1e2a931 Mon Sep 17 00:00:00 2001 From: Turgay Akbas Date: Fri, 7 Jun 2024 09:25:24 +0200 Subject: [PATCH] Use parameter files for Azure deployment --- .github/workflows/deploy_infra.yml | 2 +- infra/main.parameters.json | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 infra/main.parameters.json diff --git a/.github/workflows/deploy_infra.yml b/.github/workflows/deploy_infra.yml index 9279693..84b394b 100644 --- a/.github/workflows/deploy_infra.yml +++ b/.github/workflows/deploy_infra.yml @@ -19,4 +19,4 @@ jobs: - name: Deploy Bicep files run: | - az deployment group create --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} --template-file ./infra/main.bicep --parameters appServiceName=${{ secrets.APP_SERVICE_NAME }} storageAccountName=${{ secrets.STORAGE_ACCOUNT_NAME }} + az deployment group create --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} --template-file ./infra/main.bicep --parameters @infra/main.parameters.json diff --git a/infra/main.parameters.json b/infra/main.parameters.json new file mode 100644 index 0000000..707b2d1 --- /dev/null +++ b/infra/main.parameters.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "appServiceName": { + "value": "your-app-service-name" + }, + "storageAccountName": { + "value": "your-storage-account-name" + }, + "location": { + "value": "your-location" + } + } +}