Azure / arm-deploy

ARM action to deploy an Azure Resource Manager (ARM) template to all the deployment scopes
MIT License
84 stars 39 forks source link

Getting this error when using parameters: Warning: WARNING: The configuration value of bicep.use_binary_from_path has been set to 'false'. #173

Open roldengarm opened 8 months ago

roldengarm commented 8 months ago

Initially I passed all parameters inline, all was fine. After I added a .bicepparam file & supplied that for the parameters parameter of the action, I get this warning:

Warning: WARNING: The configuration value of bicep.use_binary_from_path has been set to 'false'.

Works fine:

      - name: deploy
        uses: azure/arm-deploy@v2
        id: deploy
        with:
          subscriptionId: ${{ vars.AZURE_SUBSCRIPTION }}
          resourceGroupName: ${{ vars.AZURE_RG }}
          template: ./infrastructure/main.bicep
          scope: resourcegroup
          parameters: 'param1=PARAM1 param2=PARAM2'
          failOnStdErr: false

Warning occurs with:

      - name: deploy
        uses: azure/arm-deploy@v2
        id: deploy
        with:
          subscriptionId: ${{ vars.AZURE_SUBSCRIPTION }}
          resourceGroupName: ${{ vars.AZURE_RG }}
          template: ./infrastructure/main.bicep
          scope: resourcegroup
          parameters: './infrastructure/main.bicepparam'
          failOnStdErr: false
judyanndixon commented 3 weeks ago

I was able to get rid of the warning by adding this to my workflow before using the azure/arm-deploy@v2:

Found this here..

https://stackoverflow.com/questions/75400862/github-azure-arm-deploy-actions-fails-when-a-new-bicep-version-is-available

This solves a bigger issue than just a warning so good to know all of it.