Skip to content

webapp:"az staticwebapp appsettings set": values with equal sign (=) are truncated #17792

@gastonmuijtjens

Description

@gastonmuijtjens

Describe the bug

Setting App Settings that contain an equal sign (=) for an Azure Static Web App using the CLI truncates the setting after the first equal sign.

Command Name
az staticwebapp appsettings set

Errors:
The setting value is truncated. Only the part before the first equal sign (=) is set.

To Reproduce:

  • az staticwebapp appsettings set --name {name} --setting-names StorageAccount="DefaultEndpointsProtocol=https;AccountName={account_name};EndpointSuffix=core.windows.net;AccountKey={account_key}"

Expected Behavior

  • az staticwebapp appsettings list --name {name} outputs the following:
{
  "id": "{id}",
  "kind": null,
  "location": "West Europe",
  "name": "appsettings",
  "properties": {
    "StorageAccount": "DefaultEndpointsProtocol=https;AccountName={account_name};EndpointSuffix=core.windows.net;AccountKey={account_key}"
  },
  "resourceGroup": "{resource_group}",
  "type": "Microsoft.Web/staticSites/config/functionappsettings"
}

Actual Behavior

  • az staticwebapp appsettings list --name {name} outputs the following:
{
  "id": "{id}",
  "kind": null,
  "location": "West Europe",
  "name": "appsettings",
  "properties": {
    "StorageAccount": "DefaultEndpointsProtocol="
  },
  "resourceGroup": "{resource_group}",
  "type": "Microsoft.Web/staticSites/config/functionappsettings"
}

The StorageAccount property is missing the part after the first equal sign (=).

Environment Summary

macOS-11.2.3-x86_64-i386-64bit
Python 3.8.9
Installer: HOMEBREW

azure-cli 2.22.1

Additional Context

Metadata

Metadata

Assignees

Labels

Service AttentionThis issue is responsible by Azure service team.Web Appsaz webappquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions