New-AzsUserSubscription
Create a new subscription.
Syntax
New-AzsUserSubscription
[-Owner] <String>
[-OfferId] <String>
[[-TenantId] <String>]
[[-DisplayName] <String>]
[[-DelegatedProviderSubscriptionId] <String>]
[[-RoutingResourceManagerType] <String>]
[[-ExternalReferenceId] <String>]
[[-State] <String>]
[[-SubscriptionId] <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Create a new subscription.
Examples
-------------------------- EXAMPLE 1 --------------------------
New-AzsUserSubscription -Owner user@contoso.com -OfferId "/subscriptions/302d0fcd-5263-4f4d-82ba-383ad95a3e53/resourceGroups/rg1/providers/Microsoft.Subscriptions.Admin/offers/offer1"
Creates a new user 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: | 5 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
Subscription name.
Type: | String |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ExternalReferenceId
External reference identifier.
Type: | String |
Position: | 7 |
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: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Owner
Subscription owner.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RoutingResourceManagerType
Routing resource manager type.
Type: | String |
Position: | 6 |
Default value: | Default |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-State
Subscription state.
Type: | String |
Position: | 8 |
Default value: | Enabled |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
Subscription identifier.
Type: | String |
Position: | 9 |
Default value: | $([Guid]::NewGuid().ToString()) |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TenantId
Directory tenant identifier.
Type: | String |
Position: | 3 |
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