Virtual Machine Scale Sets - Set Orchestration Service State

De eigenschap ServiceState voor een bepaalde service wijzigen

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState?api-version=2026-04-01

URI-parameters

Naam In Vereist Type Description
resourceGroupName
path True

string

minLength: 1
maxLength: 90

De naam van de resource group. De naam is hoofdletterongevoelig.

subscriptionId
path True

string

minLength: 1

De ID van het doelabonnement.

vmScaleSetName
path True

string

De naam van de VM-schaalset.

api-version
query True

string

minLength: 1

De API-versie die voor deze bewerking moet worden gebruikt.

Aanvraagbody

Naam Vereist Type Description
action True

OrchestrationServiceStateAction

De actie die moet worden uitgevoerd.

serviceName True

OrchestrationServiceNames

De naam van de service.

Antwoorden

Naam Type Description
200 OK

De aanvraag is voltooid.

202 Accepted

Resourcebewerking geaccepteerd.

Kopteksten

  • Location: string
  • Retry-After: integer
Other Status Codes

CloudError

Een onverwachte foutreactie.

Beveiliging

azure_auth

OAuth2-stroom voor Azure Active Directory.

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Naam Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen
VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen

VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen

Voorbeeldaanvraag

POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachineScaleSets/aaaaaaaaaaaaaaaa/setOrchestrationServiceState?api-version=2026-04-01

{
  "serviceName": "AutomaticRepairs",
  "action": "Resume"
}

Voorbeeldrespons

location: https://foo.com/operationstatus

VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen

Voorbeeldaanvraag

POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachineScaleSets/aaaaaaaaaaaaaaaaaaaaaaaa/setOrchestrationServiceState?api-version=2026-04-01

{
  "serviceName": "AutomaticRepairs",
  "action": "Resume"
}

Voorbeeldrespons

location: https://foo.com/operationstatus

Definities

Naam Description
ApiError

Api-fout.

ApiErrorBase

Api-foutbasis.

CloudError

Een foutreactie van de Compute-service.

InnerError

Interne foutdetails.

OrchestrationServiceNames

De naam van de service.

OrchestrationServiceStateAction

De actie die moet worden uitgevoerd.

OrchestrationServiceStateInput

De invoer voor OrchestrationServiceState

ApiError

Api-fout.

Naam Type Description
code

string

De foutcode.

details

ApiErrorBase[]

Details van de API-fout

innererror

InnerError

De interne API-fout

message

string

Het foutbericht.

target

string

Het doel van de specifieke fout.

ApiErrorBase

Api-foutbasis.

Naam Type Description
code

string

De foutcode.

message

string

Het foutbericht.

target

string

Het doel van de specifieke fout.

CloudError

Een foutreactie van de Compute-service.

Naam Type Description
error

ApiError

Api-fout.

InnerError

Interne foutdetails.

Naam Type Description
errordetail

string

Het interne foutbericht of de uitzonderingsdump.

exceptiontype

string

Het uitzonderingstype.

OrchestrationServiceNames

De naam van de service.

Waarde Description
AutomaticRepairs
AutomaticZoneRebalancing

AutomaticZoneRebalancing orkestratieservice.

OrchestrationServiceStateAction

De actie die moet worden uitgevoerd.

Waarde Description
Resume
Suspend

OrchestrationServiceStateInput

De invoer voor OrchestrationServiceState

Naam Type Description
action

OrchestrationServiceStateAction

De actie die moet worden uitgevoerd.

serviceName

OrchestrationServiceNames

De naam van de service.