Add-MgmtSvcPlan

Adds a service plan to Windows Azure Pack.

Syntax

Add-MgmtSvcPlan
   [-DisplayName] <String>
   [[-State] <PlanState>]
   [[-MaxSubscriptionsPerAccount] <Int32>]
   [[-InvitationCode] <String>]
   [[-Price] <String>]
   [[-SecurityGroup] <String[]>]
   [-AdminUri] <Uri>
   [-Token] <String>
   [-DisableCertificateValidation]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Add-MgmtSvcPlan
   [[-Plan] <Plan>]
   [-AdminUri] <Uri>
   [-Token] <String>
   [-DisableCertificateValidation]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Add-MgmtSvcPlan adds a service plan to Windows Azure Pack for Windows Server. A service plan defines the resources, capabilities, and limitations of the hosting services that are offered to a tenant according to a scope that is determined by the hosting service provider.

Examples

Example 1: Add a service plan

PS C:\> Add-MgmtSvcPlan -AdminURI "https://Computer01:30004" -Token $Token -DisplayName "Service Plan 01" -State Public -MaxSubscriptionsPerAccount 15 -InvitationCode "Welcome01" -Price "300"

NOTE: This example assumes that you have created a token by using Get-MgmtSvcToken and have stored it in a variable named $Token.

This command creates a service plan named Service Plan 01.

Required Parameters

-AdminUri

Specifies the URI of the Windows Azure Pack administrator API. Use the following format: https://<computer>:<port>, where <computer> is the computer on which the administrator API is installed.

Type:Uri
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DisplayName

Specifies the display name of the plan.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Token

Specifies an identity token. To create a token, use the Get-MgmtSvcToken cmdlet.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableCertificateValidation

Disables certificate validation for the Windows Azure Pack installation.

If you specify this parameter, you can use self-signed certificates.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InvitationCode

Specifies the invitation code for the plan. This code allows tenants to subscribe to the plan.

Type:String
Position:5
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-MaxSubscriptionsPerAccount

Specifies the maximum subscriptions that are allowed per account for the plan.

Type:Int32
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Plan

Specifies a plan object. To get a plan object, use the Get-MgmtSvcPlan cmdlet.

Type:Plan
Position:2
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Price

Specifies the price for subscribing to the plan.

Type:String
Position:6
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SecurityGroup

Specifies an array of security groups that can be associated with a plan. The plan is only visible for subscription by members of these security groups.

Type:String[]
Position:7
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-State

Specifies the state of the plan. Valid values are:

  • Public. Tenants can subscribe to a plan only when it is public.
  • Private. This is the initial state of a plan after it is created.
  • Decomissioned. The plan is active, but will not accept any new subscriptions.
Type:PlanState
Parameter Sets:Private, Public, Decommissioned
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False