New-WebSitesSite

New-WebSitesSite

Creates a tenant web site.

Syntax

Parameter Set: Default
New-WebSitesSite [-SubscriptionId] <String> [-Name] <String> [-ComputeMode {Shared | Dedicated} ] [-HostNames <String[]> ] [-PipelineVariable <String> ] [-ServerFarm <String> ] [-SiteMode <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The New-WebSitesSite creates a tenant web site for the specified subscription.

Parameters

-ComputeMode<ComputeModeOptions>

Specifies the compute mode. Valid values are:

-- Shared

-- Dedicated

The acceptable values for this parameter are:

 

Shared

 

Dedicated

 

 

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-HostNames<String[]>

Specifies an array of host names for the site.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Name<String>

Specifies a name for the site.

 

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-PipelineVariable<String>

Specifies a variable to be used with the pipeline operator.

 

Aliases

pv

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-ServerFarm<String>

Specifies the server farm that the site is placed in when switching to reserved instances. As a default, specify "DefaultServerFarm".

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-SiteMode<String>

Specifies the site mode. Valid values are:

-- Basic

-- Limited

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-SubscriptionId<String>

Specifies the ID of a subscription under which to create the site.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Confirm

Prompts you for confirmation before executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Create a tenant web site

This command creates a web site named Site01 with the hostnane Site01.Contoso.com on the basic plan with shared hosting.

PS C:\> New-WebSitesSite -Name "Site01" -SubscriptionId "Subscription01" -HostNames "Site01.Contoso.com" -SiteMode Basic -ComputeMode Shared

 

Related topics

Get-WebSitesSite

Set-WebSitesSite

Restart-WebSitesSite

Remove-WebSitesSite