Azure / Azure/static-web-apps

Can't update traffic splitting from AZ CLI

Open
#1,432 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

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

**To Reproduce**
Steps to reproduce the behavior:
1. Try to update traffic splitting with a command such as `az resource update -n XXX -g YYY --resource-type Microsoft.Web/staticSites --set 'properties.trafficSplitting={"environmentDistribution": {"env":100}}'`
2. No update or error

**Expected behavior**
It should at least errors out I guess, but I'd prefer if it'd work.

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.