New-AzureRmSubscriptionDefinition

Creates a subscription definition.

Syntax

New-AzureRmSubscriptionDefinition
   -Name <String>
   -OfferType <String>
   [-SubscriptionDisplayName <String>]

Description

The New-AzureRmSubscriptionDefinition cmdlet creates a subscription definition.

Examples

Example 1

PS C:\> New-AzureRmSubscriptionDefinition -Name MySubDef -OfferType MS-AZR-0017P

Name                    : MySubDef
SubscriptionId          : 86869d42-1782-4337-98b0-c905fb937d46
SubscriptionDisplayName : MySubDef
OfferType               : MS-AZR-0017P

Creates a subscription definition with a default subscription display name.

Example 2

PS C:\> New-AzureRmSubscriptionDefinition -Name MySubDef -OfferType MS-AZR-0017P -SubscriptionDisplayName MyPaygoSub

Name                    : MySubDef
SubscriptionId          : 86869d42-1782-4337-98b0-c905fb937d46
SubscriptionDisplayName : MyPaygoSub
OfferType               : MS-AZR-0017P

Creates a subscription definition with a custom subscription display name.

Required Parameters

-Name

The name of the subscription definition to create.

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

The type of offer to use when creating the underlying subscription.

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

Optional Parameters

-SubscriptionDisplayName

The display name to use when creating the subscription definition's underlying subscription.

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

Inputs

None

Outputs

Microsoft.Azure.Commands.SubscriptionDefinition.Models.PSSubscriptionDefinition