New-​Azure​RM​Tenant​Subscription

The cmdlet New-AzureRMTenantSubscription creates a subscription as a tenant for the specified offer

Syntax

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

Examples

Example 1:

New-AzureRmTenantSubscription  -OfferId $offer.Id -DisplayName "Compute Subscription"

Description

-----------

The example creates a subscription for the logged in tenant user

$Offer = Get-AzureRMOffer -Provider "default" | Where-Object name -eq "ComputeOffer" New-AzureRmTenantSubscription -OfferId $offer.Id -DisplayName "Compute Subscription"

Required Parameters

-OfferId

Specifies the Id of the offer to which the tenant subscribes to create a new subscription

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

Optional Parameters

-DisplayName

@{Text=}

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

Not SpecifiedThe following values are permitted for this object type.

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

Not Specified

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

Not Specified

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

Outputs

Microsoft.AzureStack.Management.Models.SubscriptionDefinition