New-​Azure​RM​Managed​Subscription

Creates a subscription as an administrator for a tenant user.

Syntax

New-AzureRMManagedSubscription
   [-DisplayName <String>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -OfferId <String>
   -Owner <String>
   [-PipelineVariable <String>]
   [<CommonParameters>]

Description

The New-AzureRmManagedSubscriiption cmdlet creates a subscription as an administrator for a tenant user.

Examples

Example 1: Create a subscription for the specified tenant user

New-AzureRmManagedSubscription -Owner "tenanuser@contoso.com" -OfferId $OfferId -DisplayName "Displayname"

This example creates a subscription for the tenant user "tenanuser@contoso.com".

Required Parameters

-OfferId

Specifies the ID of the offer to which the tenant user is subscribed.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Owner

Specifies the tenant user who is the owner of the subscription.

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

Optional Parameters

-DisplayName

Specifies the display name of the managed subscription.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationAction

Specifies how this cmdlet responds to an information event.

Type:ActionPreference
Aliases:infa
Parameter Sets:SilentlyContinue, Stop, Continue, Inquire
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies a variable that is used for storing an informational message.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PipelineVariable

Specifies a variable that stores the value of the current pipeline element.

Type:String
Aliases:pv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.AzureStack.Management.Models.SubscriptionDefinition