New-​Azure​RM​Offer

Creates an offer comprising the specified base plans and add-on plans.

Syntax

New-AzureRMOffer
   [-AddOnPlans <AddonPlanDefinition[]>]
   -ArmLocation <String>
   [-BasePlanIds <String[]>]
   [-DisplayName <String>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   [-PipelineVariable <String>]
   -ResourceGroup <String>
   [-State <AccessibilityState>]
   [<CommonParameters>]

Description

The New-AzureRmOffer cmdlet creates an offer comprising the specified base plans and add-on plans.

Examples

Example 1: Create an offer

New-AzureRMOffer -Name "ComputePlan" -DisplayName "ComputePlan" -State Private -BasePlanIds $BasePlanIds -ArmLocation "local" -ResourceGroup "OfferGroup"

This example creates an offer with the base plans specified by $BasePlanIds.

Required Parameters

-ArmLocation

Specifies the location of the Azure stack resource manager in the Azure stack installation.

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

Specifies the name of the offer.

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

Specifies the name of the resource group where the offer resource is created.

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

Optional Parameters

-AddOnPlans

Specifies an array of add-on plan IDs. The offer will support the extra quotas that are provided by the add-on plans.

Type:AddonPlanDefinition[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-BasePlanIds

Specifies an array of base plan IDs. The offer comprises all the base plans and associated quotas.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-DisplayName

Specifies the display name of the offer.

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

Specifies the state of the offer plan. The acceptable values for this parameter are:

  • Private
  • Public
  • Decommissioned
Type:AccessibilityState
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.AzureStack.Management.Models.AdminOfferModel