Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (43 sloc) 1.98 KB
title description ms.date ms.topic ms.service
Azure App Service libraries for .NET
Reference for Azure App Service libraries for .NET
10/19/2017
reference
app-service

Azure App Service libraries for .NET

Overview

Azure App Service allows you to deploy and scale websites, web applications, services, and REST APIs.

Management API

Deploy, manage, and scale elements hosted in Azure App Service with the management API.

Install the NuGet package directly from the Visual Studio Package Manager console or with the .NET Core CLI.

Visual Studio package manager

Install-Package Microsoft.Azure.Management.AppService.Fluent

.NET Core CLI

dotnet add package Microsoft.Azure.Management.AppService.Fluent

Code Example

Create a new web app.

/* Include these "using" directives...
using Microsoft.Azure.Management.ResourceManager.Fluent.Core;
using Microsoft.Azure.Management.AppService.Fluent;
*/

IWebApp app1 = azure.WebApps
    .Define("MyUniqueWebAddress")
    .WithRegion(Region.USWest)
    .WithNewResourceGroup("MyResourceGroup")
    .WithNewWindowsPlan(PricingTier.StandardS1)
    .Create();

[!div class="nextstepaction"] Explore the Management APIs

Samples

View the complete list of Azure App Service samples.