You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More information and different authentication approaches using Azure Identity can be found in [this document](/dotnet/api/overview/azure/identity-readme?view=azure-dotnet).
44
+
More information and different authentication approaches using Azure Identity can be found in [this document](https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet).
More documentation for the `Azure.Identity.DefaultAzureCredential` class can be found in [this document](/dotnet/api/azure.identity.defaultazurecredential).
64
+
Note: if you want to authenticate with the azure in China, you can use the following code:
65
+
```C# Snippet:Readme_AuthClientChina
66
+
// Please replace the following placeholders with your Azure information
67
+
stringtenantId="your-tenant-id";
68
+
stringclientId="your-client-id";
69
+
stringclientSecret="your-client-secret";
70
+
stringsubscriptionId="your-subscription-id";
71
+
//ArmClientOptions to set the Azure China environment
More documentation for the `Azure.Identity.DefaultAzureCredential` class can be found in [this document](https://learn.microsoft.com/dotnet/api/azure.identity.defaultazurecredential).
66
82
67
83
## Key concepts
68
84
@@ -438,7 +454,25 @@ var deleteResult = await resource.DeleteAsync(WaitUntil.Completed);
438
454
Console.WriteLine($"Resource deletion response status code: {deleteResult.WaitForCompletionResponse().Status}");
439
455
```
440
456
441
-
For more detailed examples, take a look at [samples](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager_1.12.0-beta.1/sdk/resourcemanager/Azure.ResourceManager/samples) we have available.
For more detailed examples, take a look at [samples](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager_1.14.0-beta.1/sdk/resourcemanager/Azure.ResourceManager/samples) we have available.
442
476
443
477
## Azure Resource Manager Tests
444
478
@@ -465,13 +499,13 @@ To run test with code coverage and auto generate an html report with just a sing
-[Creating a Virtual Network](https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager_1.12.0-beta.1/sdk/resourcemanager/Azure.ResourceManager/docs/Sample3_CreatingAVirtualNetwork.md)
-[Creating a Virtual Network](https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager_1.14.0-beta.1/sdk/resourcemanager/Azure.ResourceManager/docs/Sample3_CreatingAVirtualNetwork.md)
If you're migrating from the old SDK, check out this [Migration guide](https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager_1.12.0-beta.1/sdk/resourcemanager/Azure.ResourceManager/docs/MigrationGuide.md).
508
+
If you're migrating from the old SDK, check out this [Migration guide](https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager_1.14.0-beta.1/sdk/resourcemanager/Azure.ResourceManager/docs/MigrationGuide.md).
475
509
476
510
For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/).
477
511
@@ -496,7 +530,7 @@ more information, see the [Code of Conduct FAQ][coc_faq] or contact
496
530
<opencode@microsoft.com> with any other questions or comments.
0 commit comments