共用方式為


Set-AzsOfferDelegation

Updates the offer delegation.

Syntax

Set-AzsOfferDelegation
   -Name <String>
   -OfferName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   [-Location <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzsOfferDelegation
   [-SubscriptionId <String>]
   [-Location <String>]
   -InputObject <OfferDelegation>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzsOfferDelegation
   [-SubscriptionId <String>]
   -ResourceId <String>
   [-Location <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Updates the offer delegation.

Examples

-------------------------- EXAMPLE 1 --------------------------

Set-AzsOfferDelegation -Offer offer1 -ResourceGroupName rg1 -Name delegate1 -SubscriptionId "c90173b1-de7a-4b1d-8600-b832b0e65946" -Location "local"

Updates the offer delegation.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

The input object of type Microsoft.AzureStack.Management.Subscriptions.Admin.Models.OfferDelegation.

Type:OfferDelegation
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Location

Location of the resource.

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

-Name

Name of a offer delegation.

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

-OfferName

Name of an offer.

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

-ResourceGroupName

The resource group the resource is located under.

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

-ResourceId

The resource id.

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

-SubscriptionId

Identifier of the subscription receiving the delegated offer.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
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:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.AzureStack.Management.Subscriptions.Admin.Models.OfferDelegation