0

Are there any azure powershell command to get connection string for redis cache like 'Get-AzRedisCacheKey'?

I want to create secrets in my ps1. But if I get key for redis and concat connection string like:

$secretValue = $RedisName + '.' + $RedisEndpoint + ':xxxx,password=' + $keysFromRC.$KeyName + ',ssl=True,abortConnect=False'

git push will fail: 'The push was rejected because it might contain one or more secrets.' Or are there any way to push my file?

jenny
  • 3
  • 2
  • Does this answer your question? [How enable/disable secret scanning in Azure/VSO](https://stackoverflow.com/questions/54325800/how-enable-disable-secret-scanning-in-azure-vso) – DeepDave-MT May 25 '22 at 04:15
  • [Manage Azure Cache for Redis with Azure PowerShell](https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-manage-redis-cache-powershell) and [I am not able to push the changes in the azure Devops from my Visual studio](https://developercommunity.visualstudio.com/t/i-am-not-able-to-push-the-changes-in-the-azure-dev/1072117) – DeepDave-MT May 25 '22 at 04:16

0 Answers0