Set-WebSitesSubscription

Sets property values for a website subscription.

Syntax

Set-WebSitesSubscription [-SubscriptionId] <String> [-Active <Boolean>] [-Confirm]
 [-DedicatedAppServicePlansAllowed <Int32>] [-DesignatedSKUs <String[]>] [-Name <String>] [-Quota <String>]
 [-RemoteSettings <RemoteSettings>] [-SharedAppServicePlansAllowed <Int32>] [-SuppressRequestIdLine]
 [-TotalAppServicePlansAllowed <Int32>] [-WhatIf] [<CommonParameters>]

Description

The Set-WebSitesSubscription cmdlet set web site subscription property values.

Examples

Example 1: Suspend a subscription

PS C:\> Set-WebSitesSubscription -SubscriptionId "eede207d-d263-4212-ad32-fd29b5a1a6ce" -Active $False
This command suspends the subscription Subscription01. This is done by setting the Active property to False ($False).

Parameters

-Active

Indicates whether the subscription is active.
Set this value to True ($True) to make this an active subscription, or set the value to False ($False) to make the subscription inactive.

Type:Boolean
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

-DedicatedAppServicePlansAllowed

{{Fill DedicatedAppServicePlansAllowed Description}}

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

-DesignatedSKUs

{{Fill DesignatedSKUs Description}}

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

-Name

Specifies a name for the subscription.
For example:

-Name "ContosoInternalSubscription"

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

-Quota

Specifies a quota for the subscription.
Valid values are:

- CpuTime
- Memory
- BytesReceived
- BytesSent
- NumberOfInstances
- NumberOfSites
- WebsiteStorageSize
- CustomDomainSupport
- WebSockets
- ConcurrentAccessLimit
- Worker64BitsSupport
- SslSupport
- SiteCpuLimit
- SiteMemory
- SiteMemoryWorkingSet
- SiteIdleTimeout

For example:

-Quota "BytesSent"

Type:String
Required:False
Position:Named
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

-SharedAppServicePlansAllowed

{{Fill SharedAppServicePlansAllowed Description}}

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

-SubscriptionId

Specifies the ID of the subscription being modified.
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

-TotalAppServicePlansAllowed

{{Fill TotalAppServicePlansAllowed Description}}

Type:Int32
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