Azure / Azure/azure-cli

No module named 'azure.mgmt.web.v2020_12_01' - az staticwebapp functions link

Open
#25,403 12 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Auto-Assign customer-reported needs-team-attention Service Attention staticwebapp
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az staticwebapp functions link`

**Errors:**
```
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/invocation.py", line 111, in _validation
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 849, in _validate_cmd_level
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/_validators.py", line 315, in validate_staticsite_link_function
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/web/_web_site_management_client.py", line 779, in static_sites
ModuleNotFoundError: No module named 'azure.mgmt.web.v2020_12_01'

cli.azure.cli.core.azclierror: No module named 'azure.mgmt.web.v2020_12_01'
az_command_data_logger: No module named 'azure.mgmt.web.v2020_12_01'
```

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- _Put any pre-requisite steps here..._
- `az staticwebapp functions link -n {} -g {} --function-resource-id {}`

## Expected Behavior

## Environment Summary
```
Windows-10-10.0.22621-SP0
Python 3.10.8
Installer: MSI

azure-cli 2.45.0

Extensions:
application-insights 0.1.18
containerapp 0.3.21
webapp 0.4.0

Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1
```
## Additional Context

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.