diff --git a/.github/workflows/ingestion_client.yaml b/.github/workflows/ingestion_client.yaml index 164a95f04..f7ad8c3c5 100644 --- a/.github/workflows/ingestion_client.yaml +++ b/.github/workflows/ingestion_client.yaml @@ -21,11 +21,12 @@ jobs: - name: Install Bicep CLI run: | - if ! command -v az bicep &> /dev/null; then - az bicep install - else - az bicep upgrade + BICEP_VERSION="v0.29.47" + + if ! command -v az bicep &> /dev/null || [ "$(az bicep version --query 'bicepVersion' -o tsv)" != "$BICEP_VERSION" ]; then + az bicep install --version "$BICEP_VERSION" fi + az bicep version - name: Convert Bicep to ARM Template diff --git a/samples/ingestion/ingestion-client/infra/generate_arm_templates.sh b/samples/ingestion/ingestion-client/infra/generate_arm_templates.sh index 62290cc5f..ed827d6d7 100755 --- a/samples/ingestion/ingestion-client/infra/generate_arm_templates.sh +++ b/samples/ingestion/ingestion-client/infra/generate_arm_templates.sh @@ -2,11 +2,11 @@ set -e +BICEP_VERSION="v0.29.47" + # if az bicep is not installed, install it else upgrade it -if ! command -v az bicep &> /dev/null; then - az bicep install -else - az bicep upgrade +if ! command -v az bicep &> /dev/null || [ "$(az bicep version --query 'bicepVersion' -o tsv)" != "$BICEP_VERSION" ]; then + az bicep install --version "$BICEP_VERSION" fi TEMPLATES=() diff --git a/samples/ingestion/ingestion-client/infra/main.json b/samples/ingestion/ingestion-client/infra/main.json index 58203e6a1..2ccf6582d 100644 --- a/samples/ingestion/ingestion-client/infra/main.json +++ b/samples/ingestion/ingestion-client/infra/main.json @@ -4,8 +4,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.30.3.12046", - "templateHash": "11589854528010395557" + "version": "0.29.47.4906", + "templateHash": "3468761430613594439" } }, "parameters": {