Forum Discussion
terruahmad
Nov 06, 2024Microsoft
Mask Azure App Insight Connection String
Hi all,
I have a customer who is looking for a way to mask the App Insight connection string. Is there a way to accomplish that?
Thanks.
Kidd_Ip
Nov 10, 2024MVP
Try below:
- Use Secret Variables in Azure DevOps: Add the connection string as a secret variable in your pipeline settings. This will mask it in logs and keep it secure.
- Store in Azure Key Vault: Store the connection string in Azure Key Vault and retrieve it in your application using the Azure Key Vault task. This ensures the connection string stays masked.
- terruahmadNov 15, 2024Microsoft
Hello Kidd_Ip,
Thanks for your response. We proposed these 2 options to the customer. However, the customer wants to mask the connection string under App Insight so only limited number of users who have access to Azure Portal and proper RBAC can view the string.
Thanks.