Skip to content

Passing only one specific json key-value as parameters for az cli #7418

Answered by brwilkinson
jessicalavoie asked this question in Q&A
Discussion options

You must be logged in to vote

I think it will be best to use a different parameter to pass in the token. you could make it a secure string parameter.

Then you could use either union() or replacement strings to update the value.

Here is a sample of using replacement strings in Azure Container Groups.

https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/ACI-ACI.bicep#L49

You can use something similar to this in the actual parameter file.

"AZP_TOKEN" : "{replace}"

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@brwilkinson
Comment options

@jessicalavoie
Comment options

@brwilkinson
Comment options

@jessicalavoie
Comment options

@brwilkinson
Comment options

Answer selected by jessicalavoie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants