Test-AzsMoveSubscription
Validate that user subscriptions can be moved between delegated provider offers.
Syntax
Default (Default)
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.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ResourceId
Specifies an array of fully qualified subscription resource identifiers that this cmdlet moves.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.