question

mdautomation avatar image
0 Votes"
mdautomation asked MayankBargali-MSFT answered

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:

81880-error.jpg



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

windows-server-powershellazure-functions
error.jpg (157.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.