Azure Network Management client library for .NET
This package follows the new Azure SDK guidelines which provide a number of core capabilities that are shared amongst all Azure SDKs, including:
- The intuitive Azure Identity library.
- An HTTP pipeline with custom policies.
- Error handling.
- Distributed tracing.
Install the package
Install the Azure Network management library for .NET with NuGet:
Install-Package Azure.ResourceManager.Network -Version 1.0.0-beta.6
Set up a way to authenticate to Azure with Azure Identity.
Some options are:
More information and different authentication approaches using Azure Identity can be found in this document.
Authenticate the Client
The default option to create an authenticated client is to use
DefaultAzureCredential. Since all management APIs go through the same endpoint, in order to interact with resources, only one top-level
ArmClient has to be created.
To authenticate to Azure and create an
ArmClient, do the following:
using Azure.Identity; // Code omitted for brevity ArmClient armClient = new ArmClient(new DefaultAzureCredential());
Additional documentation for the
Azure.Identity.DefaultAzureCredential class can be found in this document.
Key concepts of the Azure .NET SDK can be found here
Documentation is available to help you learn how to use this package
Code samples for using the management library for .NET can be found in the following locations
- If you find a bug or have a suggestion, file an issue via GitHub issues and make sure you add the "Preview" label to the issue.
- If you need help, check previous questions or ask new ones on StackOverflow using azure and .NET tags.
- If having trouble with authentication, go to DefaultAzureCredential documentation
For more information on Azure SDK, please refer to this website
For details on contributing to this repository, see the contributing guide.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.