-
Notifications
You must be signed in to change notification settings - Fork 456
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
Token Replacement: Using naming prefixes to support forking and instantiating the repo for CARML consumers #909
Comments
Updated all parameter files for the dependency pipeline to use the new Storage Account Upload# Get storage account name
$parameterFilePath = Join-Path '$(Build.SourcesDirectory)' '$(dependencyPath)' '$(resourceType)' 'parameters' 'parameters.json'
$storageAccountParameters = (ConvertFrom-Json (Get-Content -path $parameterFilePath -Raw)).parameters Key Vault Secrets# Get key vault name
$parameterFilePath = Join-Path '$(Build.SourcesDirectory)' '$(dependencyPath)' '$(resourceType)' 'parameters' 'parameters.json'
$keyVaultParameters = (ConvertFrom-Json (Get-Content -Path $parameterFilePath -Raw)).parameters
$keyVaultName = $keyVaultParameters.name.value They're using the parameter files for the source of the name. Which can't be used before tokens are replaced. @eriqua .. lets sync up to discuss this soon. |
Hey @ahmadabdalla, makes sense. I'm using the same method for retrieving the image template name in a new addition to the dependency pipeline. That would fail too.
What do you think? |
@ahmadabdalla that's the object Id for the tenant Backup Management Service. It's tenant specific unfortunately so we cannot retrieve it automatically unless we add AAD rights to the SPN I guess. It's not generated by a module so we cannot leverage the output as done with the msiPrincipalId approach. |
Yes @ahmadabdalla, for the topic at hand we can apply the same solution to the updated dependency pipeline as well. So if it works already for storage and keyvault it should be a quick addition |
Description
Currently a lot of the resources in the CARML repo use static names for resources (i.e. dependency pipeline resources and resources that must have unique name across Azure like Storage and key vault). We need to brainstorm how we can leverage the existing token replacement service to create name prefixes (i.e. using local tokens in the settings file or another method). And then implement it.
The text was updated successfully, but these errors were encountered: