Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't update StaticWebApp traffic splitting from AZ CLI #28646

Open
ThibaultNocchi opened this issue Mar 27, 2024 · 1 comment
Open

Can't update StaticWebApp traffic splitting from AZ CLI #28646

ThibaultNocchi opened this issue Mar 27, 2024 · 1 comment
Assignees
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@ThibaultNocchi
Copy link

ThibaultNocchi commented Mar 27, 2024

Describe the bug

I'm trying to update my traffic splitting distribution with az resource update, in vain.

Related command

az resource update -n XXX -g YYY --resource-type Microsoft.Web/staticSites --set 'properties.trafficSplitting={"environmentDistribution": {"env":100}}'

Errors

No error, only the JSON of the resource, without properties.trafficSplitting.environmentDistribution.

Issue script & Debug output

Nothing out of the ordinary.

Expected behavior

The traffic splitting of environments should be applied.

Environment Summary

az --version
azure-cli                         2.58.0

core                              2.58.0
telemetry                          1.1.0

Extensions:
account                            0.2.5

Dependencies:
msal                              1.26.0
azure-mgmt-resource             23.1.0b2

Python location '/opt/azure-cli/bin/python'
Extensions directory '/home/XXX/.azure/cliextensions'

Python (Linux) 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

Additional context

I'm wondering if it's not due to this property not existing in the latest API version, even though the resource does have it when querying it from the portal or the CLI.

I also reported it in the SWA repo: Azure/static-web-apps#1432

@ThibaultNocchi ThibaultNocchi added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 27, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group labels Mar 27, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 27, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 27, 2024
@yonzhan yonzhan added this to the Backlog milestone Mar 27, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants