New-AzureRmSubscriptionDefinition

Creates a subscription definition.

Important

Because Az PowerShell modules now have all the capabilities of AzureRM PowerShell modules and more, we'll retire AzureRM PowerShell modules on 29 February 2024.

To avoid service interruptions, update your scripts that use AzureRM PowerShell modules to use Az PowerShell modules by 29 February 2024. To automatically update your scripts, follow the quickstart guide.

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.

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
-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