Set-WebSitesSubscription

Sets property values for a website subscription.

Syntax

Set-WebSitesSubscription
   [-SubscriptionId] <String>
   [-Name <String>]
   [-Active <Boolean>]
   [-Quota <String>]
   [-DesignatedSKUs <String[]>]
   [-TotalAppServicePlansAllowed <Int32>]
   [-DedicatedAppServicePlansAllowed <Int32>]
   [-SharedAppServicePlansAllowed <Int32>]
   [-RemoteSettings <RemoteSettings>]
   [-SuppressRequestIdLine]
   [-WhatIf]
   [-Confirm]
   [<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).

Required Parameters

-SubscriptionId

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

-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
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
-DedicatedAppServicePlansAllowed

{{Fill DedicatedAppServicePlansAllowed Description}}

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

{{Fill DesignatedSKUs Description}}

Type:String[]
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
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
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
-SharedAppServicePlansAllowed

{{Fill SharedAppServicePlansAllowed Description}}

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

{{Fill TotalAppServicePlansAllowed Description}}

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