New-WebSitesSubscription

New-WebSitesSubscription

Creates a tenant subscription.

Syntax

Parameter Set: Default
New-WebSitesSubscription [-AdminId] <String> [-SubscriptionId] <String> [-Enabled] [-PipelineVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The New-WebSitesSubscription cmdlet creates a tenant subscription.

Parameters

-AdminId<String>

Specifies the owner of the subscription.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Enabled

Indicates that the subscription is enabled.

 

Aliases

none

Required?

false

Position?

named

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

 

-SubscriptionId<String>

Specifies an ID for the subscription.

 

Aliases

none

Required?

true

Position?

2

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 subscription

This command creates an enabled tenant subscription with the ID of Subscription01 that is owned by User01.

PS C:\> New-WebSitesSubscription -AdminId "User01" -SubscriptionId "Subscription01" -Enabled

 

Related topics

Get-WebSitesSubscription

Remove-WebSitesSubscription