forked from Azure/azure-docs-sdk-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
160 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
title: Azure libraries for .NET | ||
description: Overview of the Azure SDK for .NET | ||
keywords: Azure, .NET, SDK, API, NuGet | ||
author: camsoper | ||
ms.author: casoper | ||
manager: douge | ||
ms.date: 06/20/2017 | ||
ms.topic: article | ||
ms.prod: azure | ||
ms.technology: azure | ||
ms.devlang: dotnet | ||
ms.service: multiple | ||
--- | ||
|
||
# Azure libraries for .NET | ||
|
||
The Azure libraries for .NET let you use Azure services and manage Azure resources from your application code. The libraries are available as [NuGet packages](dotnet-sdk-azure-install.md) for use in your .NET projects. | ||
|
||
## Manage Azure resources | ||
|
||
The Azure libraries for .NET let you create and manage Azure resources from your .NET applications. | ||
|
||
Many of the packages for managing Azure resources have a [fluent](dotnet-sdk-azure-concepts.md) interface to configure resources exactly to your specifications. For example, to create a Windows VM you would write the following code: | ||
|
||
```csharp | ||
var windowsVM = azure.VirtualMachines.Define(windowsVmName) | ||
.WithRegion(Region.USEast) | ||
.WithNewResourceGroup(rgName) | ||
.WithNewPrimaryNetwork("10.0.0.0/28") | ||
.WithPrimaryPrivateIPAddressDynamic() | ||
.WithNewPrimaryPublicIPAddress(publicIpDnsLabel) | ||
.WithPopularWindowsImage(KnownWindowsVirtualMachineImage.WindowsServer2012R2Datacenter) | ||
.WithAdminUsername(username) | ||
.WithAdminPassword(password) | ||
.WithSize(VirtualMachineSizeTypes.StandardD3V2) | ||
.Create(); | ||
``` | ||
|
||
Review the [install instructions](dotnet-sdk-azure-install.md) to start using the libraries immediately with your projects. Then read the [get started article](dotnet-sdk-azure-get-started.md) to set up authentication and run sample code against your own Azure subscription. The [concepts article](dotnet-sdk-azure-concepts.md) goes into the conventions the SDK uses and how to leverage them to simplify your application code. New features, breaking changes, and migration instructions are available in the [release notes](dotnet-sdk-azure-release-notes.md). | ||
|
||
## Consume Azure services | ||
|
||
In addition to using .NET APIs to create and programmatically manage resources within Azure, you can also then use .NET APIs to connect your applications to these resources and use them at runtime. For example, you might connect to a SQL Database or store data within Azure Storage. You can identify which NuGet package to use for a particular Azure service by browsing our [full list of NuGet packages](dotnet-sdk-azure-install.md#data). | ||
|
||
## Samples | ||
|
||
The following samples cover common automation tasks with the Azure libraries for .NET: | ||
|
||
- [Virtual machines](dotnet-sdk-azure-virtual-machine-samples.md) | ||
- [Web apps](dotnet-sdk-azure-web-apps-samples.md) | ||
- [SQL Database](dotnet-sdk-azure-sql-database-samples.md) | ||
|
||
A unified [reference](/dotnet/api/overview/azure/?view=azure-dotnet) is available for all packages in both the service and management libraries. New features, breaking changes, and migration instructions are available in the [release notes](dotnet-sdk-azure-release-notes.md). | ||
|
||
[!include[Contribute and community](includes/contribute.md)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters