-
Notifications
You must be signed in to change notification settings - Fork 268
Closed
Description
hi,
As I know, the variables defined in main.parameters.json file will be replaced by azd, and there are 2 ways to do that:
- replace by the values of
.azure/{env}/.envfile or environment variables
"param": {
"value": "${AZURE_ACCESS_TOKEN}"
}- use
secretOrRandomPasswordkeyword to get value from KeyVault to replace variables
"param": {
"value": "$(secretOrRandomPassword ${AZURE_KEY_VAULT_NAME} sqlAdminPassword)"
},Is there any ways to use access token as a bicep parameter?
If I use bicep directly, I can get access token as a parameter, not sure azd can do it or not:
az deployment sub create --location centralus --template-file test.bicep --parameters accessToken=$(az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken)
Thanks.