Megosztás a következőn keresztül:


Move-AzsSubscription

Move subscriptions between delegated provider offers.

Syntax

Move-AzsSubscription
    [[-DestinationDelegatedProviderOffer] <String>]
    [-ResourceId] <String[]>
    [-AsJob]
    [<CommonParameters>]

Description

Move subscriptions between delegated provider offers. This process will only perform a rebranding, the underlying offer, plans, quotas for the subscriptions will not be altered.

Examples

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

Move user subscriptions to a delegated provider offer.

Move-AzsSubscription ` -DestinationDelegatedProviderOffer "/subscriptions/45ec4d39-8dea-4d26-a373-c176ec53717a/providers/Microsoft.Subscriptions.Admin/delegatedProviders/798568b7-c6f1-4bf7-bb8f-2c8bebc7c777/offers/ro1" -ResourceId "/subscriptions/45ec4d39-8dea-4d26-a373-c176ec53717a/providers/Microsoft.Subscriptions.Admin/subscriptions/ce4c7fdb-5a38-46f5-8bbc-b8b328a87ab6","/subscriptions/45ec4d39-8dea-4d26-a373-c176ec53717a/providers/Microsoft.Subscriptions.Admin/subscriptions/a0d1a71c-0b27-4e73-abfc-169512576f7d"

-------------------------- EXAMPLE 2 --------------------------

Move user subscriptions from a delegated provider to the Default Provider.

$resourceIds = Get-AzsUserSubscription -Filter "offerName eq 'o1'" | where {$_.DelegatedProviderSubscriptionId -eq "798568b7-c6f1-4bf7-bb8f-2c8bebc7c777"} | Select -ExpandProperty Id Move-AzsSubscription -ResourceId $resourceIds

Parameters

-AsJob

Specifies whether the move operation is to be executed as a job.

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

-DestinationDelegatedProviderOffer

Specifies the fully qualified delegated provider offer into which this cmdlet moves subscriptions. NULL if the subscriptions are to be moved back to the Default Provider.

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

-ResourceId

Specifies an array of fully qualified subscription resource identifiers that this cmdlet moves.

Type:String[]
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False