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>]
The New-WebSitesSite creates a tenant web site for the specified subscription.
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 |
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 |
Specifies a name for the site.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
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 |
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 |
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 |
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 |
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
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