@muditbahedia Apology for the delay. I do see you have posted your query here and AnatoliB has provided the recommendation. Feel free to reach out to us or Anatoli if you are still facing the issue.
Exception Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException : Result: ERROR: ERROR: invalid literal for int() with base 10 while trying to use Az CLI
Hi,
I know CLI isn't supported within function.
However I followed workaround mentioned in https://github.com/Azure/azure-functions-powershell-worker/issues/221
It's working, I am able to run most CLI commands. I want to create a reference of keyvault secret in app configuration. Hence, I am using following CLI cmd: az appconfig kv set-keyvault -n SecretReferences --key SQLPass --label labtest --secret-identifier "https://keyvault.vault.azure.net/secrets/secretname/a59eb6f74d944e6cb2c4e48b6aea1330" --y
which is throwing error as mentioned in attached pic:
Any ideas on what can be done to fix this is greatly appreciated.
Azure Functions
Windows for business | Windows Server | User experience | PowerShell
1 answer
Sort by: Most helpful
-
MayankBargali-MSFT 70,941 Reputation points Moderator
2021-04-08T12:54:08.24+00:00