New-WebSitesSite

Creates a website site.

Syntax

New-WebSitesSite [-SubscriptionId] <String> [-Name] <String> [-ComputeMode <ComputeModeOptions>] [-Confirm]
 [-HostNames <String[]>] [-RemoteSettings <RemoteSettings>] [-ServerFarm <String>] [-SiteMode <String>]
 [-SuppressRequestIdLine] [-Tags <Hashtable>] [-WebSpaceName <String>] [-WhatIf] [<CommonParameters>]

Description

The New-WebSitesSite cmdlet creates a website site.

Examples

Example 1: Create a website site

PS C:\> New-WebSitesSite -Name "Site01" -SubscriptionId "eede207d-d263-4212-ad32-fd29b5a1a6ce" -HostNames "Site01.Contoso.com" -SiteMode "Basic "-ComputeMode "Shared"
This command creates a website site named Site01.

Parameters

-ComputeMode

Specifies the type of hosting environment that the web site runs in.
Valid values are:

- Shared. The web site runs in a shared/multi-tenant hosting environment.
- Dedicated. The web site runs in its own dedicated hosting environment.

For example:

-ComputeMode "Dedicated"

Type:ComputeModeOptions
Parameter Sets:Shared, Dedicated
Required:False
Position:Named
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

-HostNames

Specifies one or more host names associated with the site.
For example:

-HostName "contoso-internal.contoso.com"

To specify multiple host names, separate the names by using commas:

-HostName "contoso-internal.contoso.com", "employees.contos.com"

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

-Name

Specifies the name for the site.
For example:

-Name "ContosoInternal"

Type:String
Required:True
Position:1
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

-ServerFarm

Specifies the server farm where the site is placed when switching to a reserved instance.
For example:

-ServerFarm "DefaultServerFarm"

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

-SiteMode

Specifies the site mode of the policy.
Valid values are:

- Basic. Used with the Shared, Basic, and Standard plans.
- Limited. Used with the Free plan.

For example:

-SiteMode "Basic"

Type:String
Parameter Sets:Basic, Limited, Dedicated
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-SubscriptionId

Specifies the ID of the subscription to be associated with the site.
For example:

-SubscriptionId "eede207d-d263-4212-ad32-fd29b5a1a6ce"

Type:String
Required:True
Position:0
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

-Tags

{{Fill Tags Description}}

Type:Hashtable
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
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