[BUG] Add support for China East 3 and China North 3
See original GitHub issueLibrary 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:
- Created 6 months ago
- Comments:11 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I have the same dilemma 😄
That is the name of our service. ARMProvider is the class in our service that runs the code.