Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

New-AzureWebApp

New-AzureWebApp

microsoft.azure.commands.websites.dll

Synopsis

Create an Azure Web app

Syntax

New-AzureWebApp [-SlotName] [-Location] [-AppServicePlan] [-ResourceGroupName] [-Name] [-Profile] [<CommonParameters>]

Detailed Description

Create an Azure web app in a given a resource group using the specified app service plan and the data center.

Parameters

-SlotName <String>

Slot name of the web app to be created.

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Location <String>

Data center location

Aliases

None

Required?

true

Position

3

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-AppServicePlan <String>

App service plan to use for the web app

Aliases

None

Required?

true

Position

4

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ResourceGroupName <String>

Resource group to be associated with.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Name <String>

Name of the web app

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Profile <AzureProfile>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

Creates a new Azure web app named MyFirstSite in the existing resourcegroup named Default-Web-WestUS in data center "West US" using existing app service plan MyAppServicePlan

New-AzureWebApp -ResourceGroupName Default-Web-WestUS -Name MyFirstSite -Location "West US" -AppServicePlan MyAppServicePlan