Azure / Azure/azure-cli

Issue with ) when publishing app settings to Function App

Open
#18,186 7 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Functions Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

I published an app using Azure CLI with command

`func azure functionapp publish [my-app-name] --nozip`

Now I want to update the configuration of the app to connect to the Azure Key Vault and get secrets from the Vault. So, I am running this command

`az functionapp config appsettings set --name [my-app-name] --resource-group [my-app-res-group] --settings "PublicKey=@Microsoft.KeyVault(VaultName=[vault-name];SecretName=[secret-name])"`

this returns an error like this

`request failed: Error occurred in request., RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/[my-sub-guid]/resourceGroups/[my-app-res-group]/providers/Microsoft.Web/sites/[my-app-name]/config/appsettings?api-version=2019-08-01 (Caused by ResponseError('too many 500 error responses',))`

But the command work fine and publish the setting to the Azure except it publish not

`PublicKey=@Microsoft.KeyVault(VaultName=[vault-name];SecretName=[secret-name])`

But

`PublicKey=@Microsoft.KeyVault(VaultName=[vault-name];SecretName=[secret-name]`

In debugging mode PowerShell shows that last ) is sliced before running the command using python.

Whats the problem with closing ) and what can I do to overcome this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.