Test-AzsMoveSubscription
Validate that user subscriptions can be moved between delegated provider offers.
Syntax
Test-AzsMoveSubscription
[[-DestinationDelegatedProviderOffer] <String>]
[-ResourceId] <String[]>
[-AsJob]
[<CommonParameters>]
Description
Validate that user subscriptions can be moved between delegated provider offers.
Examples
-------------------------- EXAMPLE 1 --------------------------
Test that user subscriptions can be moved to a delegated provider offer.
Test-MoveSubscription ` -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 --------------------------
Test that user subscriptions can be moved from a delegated provider to the Default Provider.
$resourceIds = Get-AzsUserSubscription -Filter "offerName eq 'o1'" | Select -ExpandProperty Id Test-MoveSubscription -ResoruceId $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 |