Azure / azure-cli

Azure Command-Line Interface
MIT License
4.02k stars 2.99k forks source link

Wrong api version used for enabling atp with the azure-cli on a storage account in China tenant #18828

Open codyseavey opened 3 years ago

codyseavey commented 3 years ago

This is autogenerated. Please review and update as needed.

Describe the bug

Wrong api version used for enabling atp with the azure-cli on a storage account in China tenant.

Command Name az security atp storage update

Errors:

No registered resource provider found for location 'chinaeast2' and API version '2019-01-01' for type 'storageAccounts'. The supported api-versions are '2021-06-01, 2021-05-01, 2021-04-01, 2021-02-01, 2021-01-01, 2020-08-01-preview, 2019-06-01, 2019-04-01, 2018-11-01, 2018-07-01, 2018-03-01-preview, 2018-02-01, 2017-10-01, 2017-06-01, 2016-12-01, 2016-07-01, 2016-05-01, 2016-01-01, 2015-06-15, 2015-05-01-preview'. The supported locations are 'chinanorth, chinaeast, chinanorth2, chinaeast2'.

To Reproduce:

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

Expected Behavior

Advanced threat protection is enabled on the specified storage account.

Environment Summary

macOS-10.15.7-x86_64-i386-64bit
Python 3.8.11
Installer: HOMEBREW

azure-cli 2.26.0

Extensions:
azure-devops 0.18.0
support 1.0.2
account 0.2.1

Additional Context

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @chlahav.

Issue Details
### **This is autogenerated. Please review and update as needed.** ## Describe the bug Wrong api version used for enabling atp with the azure-cli on a storage account in China tenant. **Command Name** `az security atp storage update` **Errors:** ``` No registered resource provider found for location 'chinaeast2' and API version '2019-01-01' for type 'storageAccounts'. The supported api-versions are '2021-06-01, 2021-05-01, 2021-04-01, 2021-02-01, 2021-01-01, 2020-08-01-preview, 2019-06-01, 2019-04-01, 2018-11-01, 2018-07-01, 2018-03-01-preview, 2018-02-01, 2017-10-01, 2017-06-01, 2016-12-01, 2016-07-01, 2016-05-01, 2016-01-01, 2015-06-15, 2015-05-01-preview'. The supported locations are 'chinanorth, chinaeast, chinanorth2, chinaeast2'. ``` ## To Reproduce: Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information. - Login to a subscription in a china tenant - `az security atp storage update --is-enabled {} --resource-group {} --storage-account {}` ## Expected Behavior Advanced threat protection is enabled on the specified storage account. ## Environment Summary ``` macOS-10.15.7-x86_64-i386-64bit Python 3.8.11 Installer: HOMEBREW azure-cli 2.26.0 Extensions: azure-devops 0.18.0 support 1.0.2 account 0.2.1 ``` ## Additional Context
Author: codyseavey
Assignees: -
Labels: `Security`, `Service Attention`
Milestone: -
yonzhan commented 3 years ago

route to service team