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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Subscriptions.Admin/delegatedProviders/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/offers/ro1" -ResourceId "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Subscriptions.Admin/subscriptions/cccc2c2c-dd3d-ee4e-ff5f-aaaaaa6a6a6a","/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Subscriptions.Admin/subscriptions/dddd3d3d-ee4e-ff5f-aa6a-bbbbbb7b7b7b"
-------------------------- 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 |