Update-AzAutoscaleSetting

Hiermee wordt een bestaande automatische schaalaanpassing bijgewerkt Instellingen Resource. Als u andere velden wilt bijwerken, gebruikt u de methode CreateOrUpdate.

Syntax

Update-AzAutoscaleSetting
      -Name <String>
      -ResourceGroupName <String>
      [-SubscriptionId <String>]
      [-Enabled <Boolean>]
      [-Notification <IAutoscaleNotification[]>]
      [-PredictiveAutoscalePolicyScaleLookAheadTime <TimeSpan>]
      [-PredictiveAutoscalePolicyScaleMode <PredictiveAutoscalePolicyScaleMode>]
      [-Profile <IAutoscaleProfile[]>]
      [-Tag <Hashtable>]
      [-TargetResourceLocation <String>]
      [-TargetResourceUri <String>]
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzAutoscaleSetting
      -InputObject <IAutoscaleIdentity>
      [-Enabled <Boolean>]
      [-Notification <IAutoscaleNotification[]>]
      [-PredictiveAutoscalePolicyScaleLookAheadTime <TimeSpan>]
      [-PredictiveAutoscalePolicyScaleMode <PredictiveAutoscalePolicyScaleMode>]
      [-Profile <IAutoscaleProfile[]>]
      [-Tag <Hashtable>]
      [-TargetResourceLocation <String>]
      [-TargetResourceUri <String>]
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Hiermee wordt een bestaande automatische schaalaanpassing bijgewerkt Instellingen Resource. Als u andere velden wilt bijwerken, gebruikt u de methode CreateOrUpdate.

Voorbeelden

Voorbeeld 1: Tag bijwerken en bestaande instelling voor automatisch schalen inschakelen

Update-AzAutoscaleSetting -ResourceGroupName test-group -Name test-autoscalesetting -Tag @{'key'='val'} -Enabled $true

Tag bijwerken en bestaande instelling voor automatisch schalen inschakelen

Parameters

-Confirm

Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.

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

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Enabled

de vlag ingeschakeld. Hiermee geeft u op of automatisch schalen is ingeschakeld voor de resource. De standaardwaarde is 'false'.

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

-InputObject

Identity Parameter To construct, zie DE SECTIE NOTES voor INPUTOBJECT-eigenschappen en maak een hash-tabel.

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

-Name

De naam van de instelling voor automatische schaalaanpassing.

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

-Notification

de verzameling meldingen. Zie de sectie NOTES voor NOTIFICATION-eigenschappen en maak een hash-tabel om deze samen te stellen.

Type:IAutoscaleNotification[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PredictiveAutoscalePolicyScaleLookAheadTime

de hoeveelheid tijd die moet worden opgegeven door welke instanties vooraf worden gestart. Het moet tussen 1 minuut en 60 minuten in ISO 8601-indeling zijn.

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

-PredictiveAutoscalePolicyScaleMode

de voorspellende modus voor automatisch schalen

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

-Profile

de verzameling automatische schaalprofielen waarmee verschillende schaalparameters voor verschillende perioden worden opgegeven. Er kunnen maximaal 20 profielen worden opgegeven. Zie de sectie NOTES voor PROFIEL-eigenschappen en maak een hash-tabel om deze samen te stellen.

Type:IAutoscaleProfile[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

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

-SubscriptionId

De id van het doelabonnement.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Tag

Resourcetags

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

-TargetResourceLocation

de locatie van de resource waaraan de instelling voor automatische schaalaanpassing moet worden toegevoegd.

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

-TargetResourceUri

de resource-id van de resource waaraan de instelling voor automatische schaalaanpassing moet worden toegevoegd.

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

-WhatIf

Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.

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

Invoerwaarden

IAutoscaleIdentity

Uitvoerwaarden

IAutoscaleSettingResource