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

az storage endpoint not available for AzureCLI 2.20.0 in Azure Goverment #17189

Closed
Quintinon opened this issue Mar 3, 2021 · 8 comments
Closed
Assignees
Labels
Service Attention This issue is responsible by Azure service team. Storage az storage
Milestone

Comments

@Quintinon
Copy link

Quintinon commented Mar 3, 2021

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
Attempting to use the az storage command with location usgovvirginia fails with the following error:
ERROR: (NoRegisteredProviderFound) No registered resource provider found for location 'usgovvirginia' and API version '2021-01-01' for type 'storageAccounts'. The supported api-versions are '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 'usgoviowa, usgovvirginia, usgovtexas, usgovarizona, usdodeast, usdodcentral'.

To Reproduce
Install AzureCLI 2.20.0 (currently the latest)
Run command az storage account create -g <Resource> -n <Name> -l usgovvirginia --sku Standard_LRS

Expected behavior
The azure storage account to be created and no error produced.

Environment summary
AzureCLI was installed manually through MSI file downloaded from https://aka.ms/installazurecliwindows
az storage command was run through Azure DevOps Release using Azure CLI task version 2.1.0

Additional context
Uninstalling AzureCLI 2.20.0 and installing 2.19.1 allows my command to function with no changes.

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 3, 2021
@yonzhan yonzhan added the Storage az storage label Mar 4, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Mar 4, 2021
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Mar 4, 2021
@yonzhan yonzhan added this to the S184 milestone Mar 4, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 4, 2021

storage

@ps23
Copy link

ps23 commented Mar 4, 2021

Confirmed, have the same issue in all our Azure Devops pipelines using the public agents, ADO have just updated to 2.20.0. Workaround in the pipeline:


pool:
  vmImage: ubuntu-18.04
  
- script: |
     sudo apt install -y --allow-downgrades azure-cli=2.19.1-1~bionic

...

@Juliehzl
Copy link
Contributor

Juliehzl commented Mar 5, 2021

There is an issue in service side with api 2021-01-01. The same as Azure/azure-powershell#14395.
Currently please downgrade to previous version as a workaround.

@sachinjoseph
Copy link

We ran into the same issue last day. We had to pin our Az CLI to 2.19.1 to get it working again:

pool:
  vmImage: ubuntu-20.04
strategy:
  runOnce:
    deploy:
      steps:
        - bash: |
            sudo apt install -y --allow-downgrades azure-cli=2.19.1-1~focal

cc @D4N14L

@Juliehzl Juliehzl added the Service Attention This issue is responsible by Azure service team. label Mar 8, 2021
@ghost
Copy link

ghost commented Mar 8, 2021

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

Issue Details

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
Attempting to use the az storage command with location usgovvirginia fails with the following error:
ERROR: (NoRegisteredProviderFound) No registered resource provider found for location 'usgovvirginia' and API version '2021-01-01' for type 'storageAccounts'. The supported api-versions are '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 'usgoviowa, usgovvirginia, usgovtexas, usgovarizona, usdodeast, usdodcentral'.

To Reproduce
Install AzureCLI 2.20.0 (currently the latest)
Run command az storage account create -g <Resource> -n <Name> -l usgovvirginia --sku Standard_LRS

Expected behavior
The azure storage account to be created and no error produced.

Environment summary
AzureCLI was installed manually through MSI file downloaded from https://aka.ms/installazurecliwindows
az storage command was run through Azure DevOps Release using Azure CLI task version 2.1.0

Additional context
Uninstalling AzureCLI 2.20.0 and installing 2.19.1 allows my command to function with no changes.

Author: Quintinon
Assignees: Juliehzl
Labels:

Service Attention, Storage

Milestone: S184

@RKSelvi
Copy link

RKSelvi commented Mar 8, 2021

Same here, we had to downgrade Cli to make it work in GitHub actions,

uses: azure/CLI@v1
with:
azcliversion: 2.19.1
inlineScript: |

@johnnyyuelee008
Copy link

we have the same issue in Azure china cloud.

@Juliehzl
Copy link
Contributor

As mentioned in Azure/azure-powershell#14395 (comment), the issue is resolved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Service Attention This issue is responsible by Azure service team. Storage az storage
Projects
None yet
Development

No branches or pull requests

7 participants