Exception Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException : Result: ERROR: ERROR: invalid literal for int() with base 10 while trying to use Az CLI

Mudit 101 Reputation points
2021-03-26T14:44:50.937+00:00

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:

81880-error.jpg

Any ideas on what can be done to fix this is greatly appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,929 questions
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2021-04-08T12:54:08.24+00:00

    @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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.