New-WebSitesApplication

Creates a website web app.

Syntax

New-WebSitesApplication [-SiteName] <String> [-ApplicationName] <String> [-Confirm] [-PhysicalPath <String>]
 [-RemoteSettings <RemoteSettings>] [-SubscriptionId <String>] [-SuppressRequestIdLine]
 [-WebSpaceName <String>] [-WhatIf] [<CommonParameters>]

Description

The New-WebSitesApplication cmdlet creates a website web app.

Examples

Example 1: Create a web app

PS C:\> New-WebSitesApplication -SiteName "Site01" -ApplicationName "Application01"
This command creates a web app named Application01. This app is associated with site Site01.

Parameters

-ApplicationName

Specifies the name of the web app.
For example:

-ApplicationName "ContosoCalendar"

Type:String
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-PhysicalPath

Specifies the path to the web app in the website's content folder.
For example:

-PhysicalPath "App/Azure/Contoso/Internal"

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-RemoteSettings

{{Fill RemoteSettings Description}}

Type:RemoteSettings
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SiteName

Specifies the name of the site that hosts the web app.
For example:

-SiteName "ContosoInternal"

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-SubscriptionId

{{Fill SubscriptionId Description}}

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-SuppressRequestIdLine

{{Fill SuppressRequestIdLine Description}}

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WebSpaceName

{{Fill WebSpaceName Description}}

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False