Get-​Azure​RM​Plan

Gets the details of a plan.

Syntax

Get-AzureRMPlan
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-Managed]
   [-Name <String>]
   [-PipelineVariable <String>]
   -ResourceGroup <String>
   [<CommonParameters>]
Get-AzureRMPlan
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   [-PipelineVariable <String>]
   [<CommonParameters>]

Description

The Get-AzureRmPlan cmdlet gets the details of a plan. This cmdlet can be executed as a service administrator or as a tenant user.

Examples

Example 1: Run the cmdlet as a service administrator to get the details of the specified plan

Get-AzureRMPlan -Name "ComputePlan" -ResourceGroup "PlanGroup" -Managed

This example gets the details of the plan named "ComputePlan" and created in the resource group "PlanGroup". The presence of the Managed parameter runs the cmdlet as a service administrator.

Required Parameters

-Managed

Indicates whether the operation is being executed as a service administrator.

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

Specifies the name of the plan.

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

Specifies name of the resource group where the plan was created.

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

Optional Parameters

-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

Inputs

None

Outputs

Microsoft.AzureStack.Management.Models.AdminPlanModel