可以添加到发布管道以从密钥库中获取变量的 Powershell 脚本
Powershell script that can be added to a release pipeline for fetching variables from key vault
我想在 azure devops release 中使用 azure key vault secrets pipeline.could 有人帮助我使用 powershell 脚本,我可以在其中定义这些变量并将其传递到管道中。
Powershell script that can be added to a release pipeline for fetching variables from key vault
您可以配置变量组以连接到 Azure Key Vault:
- 转到“
Pipelines
”,然后转到“Library
”和“Add variable group
”。
- Link 来自 Azure 密钥保管库的秘密
- 配置管道以使用新的变量组
然后,您的变量组中的任何变量都可以作为 $(VariableNameHere)
从构建管道访问,包括密钥库。
您可以查看 the great document 了解更多详情。
希望对您有所帮助。
我想在 azure devops release 中使用 azure key vault secrets pipeline.could 有人帮助我使用 powershell 脚本,我可以在其中定义这些变量并将其传递到管道中。
Powershell script that can be added to a release pipeline for fetching variables from key vault
您可以配置变量组以连接到 Azure Key Vault:
- 转到“
Pipelines
”,然后转到“Library
”和“Add variable group
”。 - Link 来自 Azure 密钥保管库的秘密
- 配置管道以使用新的变量组
然后,您的变量组中的任何变量都可以作为 $(VariableNameHere)
从构建管道访问,包括密钥库。
您可以查看 the great document 了解更多详情。
希望对您有所帮助。