Set-​Azure​RM​Offer

Updates an existing offer.

Syntax

Set-AzureRMOffer
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Offer <AdminOfferModel>
   [-PipelineVariable <String>]
   -ResourceGroup <String>
   [-SubscriptionId <Guid>]
   [<CommonParameters>]

Description

The Set-AzureRmOffer cmdlet updates an existing offer.

Examples

Example 1: Change a property of an existing offer

$offerToUpdate = Get-AzureRMOffer -Name "ComputeOffer" -ResourceGroup "OfferGroup" -Managed
$offerToUpdate.DisplayName = "New Compute Offer"
Set-AzureRMOffer -Offer $offerToUpdate -ResourceGroup "OfferGroup"

This example modifies the DisplayName property of the offer named "ComputeOffer" in the "OfferGroup" resource group. The first statement gets the offer and stores the object in the $offerToUpdate variable. After the DisplayName property of the offer is changed, the updated object is passed in the Offer parameter of the Set-AzureRMOffer cmdlet.

Required Parameters

-Offer

Specifies an updated AdminOfferModel object to be used for updating the existing offer data.

Type:AdminOfferModel
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ResourceGroup

Specifies the name of the resource group that contains the offer.

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

Specifies the subscription ID of the service administrator. This parameter is not needed when you use the cmdlet in the Azure stack environment configured against Azure Active Directory.

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

Inputs

None

Outputs

Microsoft.AzureStack.Management.Models.AdminOfferModel