Forum Discussion
Need help on how to get Client Secret from Azure KeyVault to create service connections
Hi there,
I have a requirement where I need to get values from Azure Keyvault in my Azure Devops pipelines and then use these passwords to create a connection to powerapps environments.
I am using Powerapps build tools in pipelines to import solutions etc in target environment and I currently using simple Service Connections. But now, I want to know how to update this PowerApps Build tasks with connections details I bring from Azure Keyvault to connect to target environments dynmically during the execution of pipeline. I need to update these powerapps build tool tasks with service connections.
Any help will be greatly appreciated.
I
1 Reply
- LeonPavesicSilver Contributor
Hi Nemath86,
follow these steps:
Retrieve Client Secret from Azure KeyVault:
- Use the Azure Key Vault secret client library for .NET.
- If you need to obtain the client secret from an existing Azure service principal, reset it to reveal the new value.
- To view the secret value as plain text, employ the Azure CLI az keyvault secret show command.
Incorporate Azure KeyVault Values in Azure DevOps Pipelines:
- Securely store and manage secrets like API keys or credentials in Azure Key Vault for use in your Azure Pipelines.
- Query for these secrets within your Azure Pipeline.
Update PowerApps Build Tasks with Azure KeyVault Connection Details:
- Leverage Microsoft Power Platform Build Tools for automating common build and deployment tasks related to Power Platform apps.
- Set up service connections in Azure DevOps.
- Employ environment variables with Azure Key Vault secrets in your CI/CD pipeline when deploying applications.
Quickstart - Azure Key Vault secrets client library for .NET | Microsoft Learn
Quickstart - Set and retrieve a secret from Azure Key Vault | Microsoft Learn
Use Azure Key Vault secrets in Azure Pipelines - Azure Pipelines | Microsoft Learn
Query and use Azure Key Vault secrets in your Pipeline - Azure Pipelines | Microsoft Learn
How to use Environment Variables with AKV Secrets in the CI/CD Pipeline when deploying applications | Microsoft Power Apps
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)