question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Add support for China East 3 and China North 3

See original GitHub issue

Library name and version

Azure.Core 1.29.0

Describe the bug

Please support China East 3 and China North 3 in the AzureLocation.cs file. An error is thrown when we attempt to get list of accounts in China 3.

Expected behavior

Error should not be thrown. A list of accounts should be returned.

Actual behavior

The following error is thrown:

System.ArgumentNullException: Value cannot be null. Parameter name: location

Reproduction Steps

A subscription with storage accounts in China East 3 and China North 3.

var tokenCredentials = "<token Credentials object>";
var subscriptionId = "<subscription id string>";
var cancellationToken = "<cancellation token object>";

var client = new ArmClient(
                tokenCredentials,
                string.Empty,
                new ArmClientOptions()
                {
                    Environment = ArmEnvironment.AzureChina
                });

var sub = client.GetSubscriptionResource(SubscriptionResource.CreateResourceIdentifier(subscriptionId));
var accountEnumerator = sub.GetStorageAccountsAsync(cancellationToken).GetAsyncEnumerator(cancellationToken);
while (await accountEnumerator.MoveNextAsync().ConfigureAwait(false))
{
           var account = accountEnumerator.Current;
           var displayName = account.Data.Location.DisplayName;
           var location = account.Data.Location.Name;
}

Environment

No response

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
christothescommented, Apr 3, 2023

@christothes It’s not possible to reproduce locally because China is a sovereign geo. Storage account in China North 3 or China East 3 cannot be created. We also don’t have a test subscription in China.

I have the same dilemma 😄

1reaction
nimitpatel-mscommented, Apr 3, 2023

That is the name of our service. ARMProvider is the class in our service that runs the code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Azure China] Cannot find 'chinaeast3' region in PowerShell
However, it cannot find 'China East 3' region in P... ... PSGallery Microsoft Azure PowerShell - Api Management service cmdlets for Azure ...
Read more >
General availability: Application Insights in China North 3 ...
Application Insights, a part of Azure Monitor, is now generally available in China North 3 and China East 3 regions for you to...
Read more >
Azure China: Regions and Availability Zones - Rahi Systems
The China North 3 region, released in 2022, is located in Hebei and is Azure's fifth region in the country which will enable...
Read more >
Microsoft: China-based hackers found bug to target US firms
China -based government hackers have exploited a bug in Microsoft's email server software to target U.S. organizations, the company said ...
Read more >
Azure status history | Microsoft Azure
Azure status history. This page contains root cause analyses (RCAs) of previous service issues, each retained for 5 years. From November 20, 2019, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found