共用方式為


Set-AzsUserSubscription

Updates the specified user subscription

Syntax

Set-AzsUserSubscription
   -SubscriptionId <Guid>
   [-DisplayName <String>]
   [-DelegatedProviderSubscriptionId <String>]
   [-Owner <String>]
   [-TenantId <String>]
   [-RoutingResourceManagerType <String>]
   [-ExternalReferenceId <String>]
   [-State <String>]
   [-Location <String>]
   [-OfferId <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzsUserSubscription
   -ResourceId <String>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzsUserSubscription
   -InputObject <Subscription>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Updates the specified user subscription

Examples

-------------------------- EXAMPLE 1 --------------------------

Set-AzsUserSubscription -SubscriptionId 8e425478-c7f0-49ca-bb92-b42889ec3642 -DisplayName "NewName"

Updates a subscription

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DelegatedProviderSubscriptionId

Parent DelegatedProvider subscription identifier.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

Subscription name.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ExternalReferenceId

External reference identifier.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

The input object of type Microsoft.AzureStack.Management.Network.Admin.Models.Quota.

Type:Subscription
Aliases:Subscription
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Location

Location of the resource.

Type:String
Aliases:ArmLocation
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-OfferId

Identifier of the offer under the scope of a delegated provider.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Owner

Subscription owner.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

The resource ID.

Type:String
Aliases:id
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-RoutingResourceManagerType

Routing resource manager type.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-State

Subscription state.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

Subscription identifier.

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-TenantId

Directory tenant identifier.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
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:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.AzureStack.Management.Subscriptions.Admin.Models.Subscription