Get-​Azure​RM​Offer

Gets an offer as an administrator or as a tenant user.

Syntax

Get-AzureRMOffer
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-Managed]
   [-Name <String>]
   [-PipelineVariable <String>]
   -ResourceGroup <String>
   [<CommonParameters>]
Get-AzureRMOffer
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -OfferId <String>
   [-PipelineVariable <String>]
   [<CommonParameters>]
Get-AzureRMOffer
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-PipelineVariable <String>]
   [-Provider <String>]
   [<CommonParameters>]

Description

The Get-AzureRMOffer cmdlet gets an offer. 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 specified offer

Get-AzureRMOffer -Name "ComputeOffer" -ResourceGroup "OfferGroup" -Managed

This example gets the offer named "ComputeOffer" and created in the "OfferGroup" resource group. The presence of the Managed parameter runs the cmdlet as a service administrator.

Example 2: Run the cmdlet as a tenant user to get a list of offers

Get-AzureRMOffer -Provider "default" | Where-Object name -eq "ComputeOffer"

This example gets a list of public offers and then pipes the list to the Where-Object cmdlet to filter out all offers except the ones named "ComputeOffer".

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

Specifies the ID 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 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
-Name

Specifies the name of the offer.

Type:String
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
-Provider

Specifies the Provider. For the first party tenant scenarios this value should be "default".

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

Inputs

None

Outputs

Microsoft.AzureStack.Management.Models.OfferDefinition

Outputs

Microsoft.AzureStack.Management.Models.AdminOfferModel