Get-​Azure​RM​Offer

The cmdlet gets the 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>]

Examples

Example 1:

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

Description

-----------

The example gets an offer as a service administrator

Example 2:

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

Description

-----------

The example gets the list of public offers as a tenant

Required Parameters

-Managed

Managed switch specified that the operation is being executed as 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

The resource group name where the offer was created

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

Optional Parameters

-InformationAction

Not SpecifiedThe following values are permitted for this object type.

Type:ActionPreference
Aliases:infa
Parameter Sets:SilentlyContinue, Stop, Continue, Inquire
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Not Specified

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

Name of the offer

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

Not Specified

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

Outputs

Microsoft.AzureStack.Management.Models.OfferDefinition