Reputation: 135
I am using Azure dev ops release pipeline for deploying a static web app to Azure.The problem I am encountering is that I am not able to pass the variable to the Azure Static Web Apps api token, but rather hardcode the value in the form field as shown below.
1) Below solution is what I am trying to achieve, but doesn't work:
Error:
2) Below solution is working fine, but I don't want to follow this approach:
Any help is greatly appreciated.Thanks!
Upvotes: 1
Views: 3848
Reputation: 1021
Save the value of $(deployment_token)
in a Variable Group and link that variable group to the pipeline. Since this is a sensitive token, you can also click the lock icon to mark it as secret.
Another option is to add it as a Pipeline Variable directly on the pipeline.
Upvotes: 3