New-WebSitesSite

Creates a website site.

Syntax

New-WebSitesSite
   [-SubscriptionId] <String>
   [-Name] <String>
   [-WebSpaceName <String>]
   [-HostNames <String[]>]
   [-SiteMode <String>]
   [-ComputeMode <ComputeModeOptions>]
   [-ServerFarm <String>]
   [-Tags <Hashtable>]
   [-RemoteSettings <RemoteSettings>]
   [-SuppressRequestIdLine]
   [-WhatIf]
   [-Confirm]
   [<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.

Required Parameters

-Name

Specifies the name for the site. For example:

-Name "ContosoInternal"

Type:String
Position:1
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
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional 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
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
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[]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-RemoteSettings

{{Fill RemoteSettings Description}}

Type:RemoteSettings
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
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
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SuppressRequestIdLine

{{Fill SuppressRequestIdLine Description}}

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

{{Fill Tags Description}}

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WebSpaceName

{{Fill WebSpaceName Description}}

Type:String
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False