New-WebSitesApplication
Creates a website web app.
Syntax
New-WebSitesApplication
[-SiteName] <String>
[-ApplicationName] <String>
[-PhysicalPath <String>]
[-WebSpaceName <String>]
[-SubscriptionId <String>]
[-RemoteSettings <RemoteSettings>]
[-SuppressRequestIdLine]
[-WhatIf]
[-Confirm]
[<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 |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | 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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RemoteSettings
{{Fill RemoteSettings Description}}
Type: | RemoteSettings |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SubscriptionId
{{Fill SubscriptionId Description}}
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SuppressRequestIdLine
{{Fill SuppressRequestIdLine Description}}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WebSpaceName
{{Fill WebSpaceName Description}}
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |