Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass github secrets to the bicep template #203

Closed
bahramr opened this issue May 1, 2024 · 1 comment
Closed

Pass github secrets to the bicep template #203

bahramr opened this issue May 1, 2024 · 1 comment

Comments

@bahramr
Copy link

bahramr commented May 1, 2024

This example in the README does not work when using bicep templates: https://github.com/Azure/arm-deploy?tab=readme-ov-file#example

For some reasons the bicep parameters specified are not overridden when using secrets, here is my code:

name: Deploy Bicep template
uses: azure/arm-deploy@v1
with:
scope: resourcegroup
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
resourceGroupName: "rg-contoso"
template: ./main.bicep
parameters: ./main.parameters.bicepparam adminUsername=${{ secrets.ADMINUSERNAME }} adminPassword=${{
secrets.ADMINPASSWORD }}
failOnStdErr: false

@anthony-c-martin
Copy link
Member

Closing as I believe this is a duplicate of #139.

There's an underlying issue with Azure CLI that'll be fixed with Azure/azure-cli#28826. Until then, please take a look at the workaround suggested under #139.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants