Freigeben über


Standby Virtual Machine Pools - Create Or Update

Erstellen einer StandbyVirtualMachinePoolResource

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}?api-version=2025-10-01

URI-Parameter

Name In Erforderlich Typ Beschreibung
resourceGroupName
path True

string

minLength: 1
maxLength: 90

Der Name der Ressourcengruppe. Bei dem Namen wird die Groß-/Kleinschreibung nicht beachtet.

standbyVirtualMachinePoolName
path True

string

pattern: ^[a-zA-Z0-9-]{3,24}$

Name des virtuellen Standbycomputerpools

subscriptionId
path True

string (uuid)

Die ID des Zielabonnements. Der Wert muss eine UUID sein.

api-version
query True

string

minLength: 1

Hierbei handelt es sich um die für diesen Vorgang zu verwendende API-Version.

Anforderungstext

Name Erforderlich Typ Beschreibung
location True

string

Der geografische Standort, an dem sich die Ressource befindet

properties.virtualMachineState True

VirtualMachineState

Gibt den gewünschten Zustand virtueller Computer im Pool an.

properties.attachedVirtualMachineScaleSetId

string (arm-id)

Gibt die vollqualifizierte Ressourcen-ID eines VM-Skalierungssatzes an, dem der Pool angefügt ist.

properties.elasticityProfile

StandbyVirtualMachinePoolElasticityProfile

Gibt dasLastizitätsprofil der Virtuellen Standby-Computerpools an.

tags

object

Ressourcentags.

Antworten

Name Typ Beschreibung
200 OK

StandbyVirtualMachinePoolResource

Der Aktualisierungsvorgang für die Ressource "StandbyVirtualMachinePoolResource" war erfolgreich

201 Created

StandbyVirtualMachinePoolResource

Der Erstellungsvorgang der Ressource 'StandbyVirtualMachinePoolResource' war erfolgreich

Header

Retry-After: integer

Other Status Codes

ErrorResponse

Unerwartete Fehlerantwort.

Sicherheit

azure_auth

Azure Active Directory OAuth2-Fluss.

Typ: oauth2
Ablauf: implicit
Autorisierungs-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiche

Name Beschreibung
user_impersonation Identitätswechsel ihres Benutzerkontos

Beispiele

StandbyVirtualMachinePools_CreateOrUpdate

Beispielanforderung

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/pool?api-version=2025-10-01

{
  "properties": {
    "elasticityProfile": {
      "maxReadyCapacity": 304,
      "minReadyCapacity": 300,
      "postProvisioningDelay": "PT2S",
      "dynamicSizing": {
        "enabled": true
      }
    },
    "virtualMachineState": "Running",
    "attachedVirtualMachineScaleSetId": "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss"
  },
  "tags": {},
  "location": "West US"
}

Beispiel für eine Antwort

{
  "properties": {
    "elasticityProfile": {
      "maxReadyCapacity": 304,
      "minReadyCapacity": 300,
      "postProvisioningDelay": "PT2S",
      "dynamicSizing": {
        "enabled": true
      }
    },
    "virtualMachineState": "Running",
    "attachedVirtualMachineScaleSetId": "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss",
    "provisioningState": "Succeeded"
  },
  "tags": {},
  "location": "West US",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/pool",
  "name": "pool",
  "type": "Microsoft.StandbyPool/standbyVirtualMachinePools",
  "systemData": {
    "createdBy": "pooluser@microsoft.com",
    "createdByType": "User",
    "createdAt": "2023-09-07T16:33:22.210Z",
    "lastModifiedBy": "pooluser@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2023-09-07T16:33:22.210Z"
  }
}
Azure-AsyncOperation: https://contoso.com/operationstatus
{
  "properties": {
    "elasticityProfile": {
      "maxReadyCapacity": 304,
      "minReadyCapacity": 300,
      "postProvisioningDelay": "PT2S",
      "dynamicSizing": {
        "enabled": true
      }
    },
    "virtualMachineState": "Running",
    "attachedVirtualMachineScaleSetId": "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss",
    "provisioningState": "Succeeded"
  },
  "tags": {},
  "location": "West US",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/pool",
  "name": "pool",
  "type": "Microsoft.StandbyPool/standbyVirtualMachinePools",
  "systemData": {
    "createdBy": "pooluser@microsoft.com",
    "createdByType": "User",
    "createdAt": "2023-09-07T16:33:22.210Z",
    "lastModifiedBy": "pooluser@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2023-09-07T16:33:22.210Z"
  }
}

Definitionen

Name Beschreibung
createdByType

Der Identitätstyp, der die Ressource erstellt hat.

DynamicSizing

Gibt die Konfiguration der dynamischen Größenanpassung an.

ErrorAdditionalInfo

Der Ressourcenverwaltungsfehler zusätzliche Informationen.

ErrorDetail

Das Fehlerdetails.

ErrorResponse

Fehlerantwort

ProvisioningState

Bereitstellungsstatus

StandbyVirtualMachinePoolElasticityProfile

Details zum Elastizitätsprofil.

StandbyVirtualMachinePoolResource

Eine StandbyVirtualMachinePoolResource.

systemData

Metadaten zur Erstellung und letzten Änderung der Ressource.

VirtualMachineState

Status der Standby-VMs

createdByType

Der Identitätstyp, der die Ressource erstellt hat.

Wert Beschreibung
User
Application
ManagedIdentity
Key

DynamicSizing

Gibt die Konfiguration der dynamischen Größenanpassung an.

Name Typ Beschreibung
enabled

boolean

Gibt an, ob die dynamische Größenanpassung für den Standby-Pool aktiviert ist.

ErrorAdditionalInfo

Der Ressourcenverwaltungsfehler zusätzliche Informationen.

Name Typ Beschreibung
info

object

Die zusätzlichen Informationen.

type

string

Der zusätzliche Informationstyp.

ErrorDetail

Das Fehlerdetails.

Name Typ Beschreibung
additionalInfo

ErrorAdditionalInfo[]

Die zusätzlichen Informationen des Fehlers.

code

string

Der Fehlercode.

details

ErrorDetail[]

Die Fehlerdetails.

message

string

Die Fehlermeldung.

target

string

Das Fehlerziel.

ErrorResponse

Fehlerantwort

Name Typ Beschreibung
error

ErrorDetail

Das Fehlerobjekt.

ProvisioningState

Bereitstellungsstatus

Wert Beschreibung
Succeeded

Ressource wurde erstellt.

Failed

Fehler bei der Ressourcenerstellung.

Canceled

Die Ressourcenerstellung wurde abgebrochen.

Deleting

Die Ressource wird gelöscht.

StandbyVirtualMachinePoolElasticityProfile

Details zum Elastizitätsprofil.

Name Typ Beschreibung
dynamicSizing

DynamicSizing

Gibt die Konfiguration der dynamischen Größenanpassung an.

maxReadyCapacity

integer (int64)

minimum: 0

Gibt die maximale Anzahl virtueller Computer im Pool des virtuellen Standbycomputers an.

minReadyCapacity

integer (int64)

minimum: 0

Gibt die gewünschte Mindestanzahl virtueller Computer im Pool des virtuellen Standbycomputers an. MinReadyCapacity darf MaxReadyCapacity nicht überschreiten.

postProvisioningDelay

string

Gibt die Dauer an, die nach der Bereitstellung virtueller Maschinen gewartet werden soll, bevor die virtuelle Maschine zur Verwendung verfügbar ist. Die Dauer sollte im ISO 8601-Format angegeben werden (z. B. PT2S für 2 Sekunden).

StandbyVirtualMachinePoolResource

Eine StandbyVirtualMachinePoolResource.

Name Typ Beschreibung
id

string (arm-id)

Vollqualifizierte Ressourcen-ID für die Ressource. Z. B. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

location

string

Der geografische Standort, an dem sich die Ressource befindet

name

string

Der Name der Ressource

properties.attachedVirtualMachineScaleSetId

string (arm-id)

Gibt die vollqualifizierte Ressourcen-ID eines VM-Skalierungssatzes an, dem der Pool angefügt ist.

properties.elasticityProfile

StandbyVirtualMachinePoolElasticityProfile

Gibt dasLastizitätsprofil der Virtuellen Standby-Computerpools an.

properties.provisioningState

ProvisioningState

Der Status des letzten Vorgangs.

properties.virtualMachineState

VirtualMachineState

Gibt den gewünschten Zustand virtueller Computer im Pool an.

systemData

systemData

Azure Resource Manager-Metadaten, die createdBy- und modifiedBy-Informationen enthalten.

tags

object

Ressourcentags.

type

string

Der Typ der Ressource. Z. B. "Microsoft.Compute/virtualMachines" oder "Microsoft.Storage/storageAccounts"

systemData

Metadaten zur Erstellung und letzten Änderung der Ressource.

Name Typ Beschreibung
createdAt

string (date-time)

Der Zeitstempel der Ressourcenerstellung (UTC).

createdBy

string

Die Identität, die die Ressource erstellt hat.

createdByType

createdByType

Der Identitätstyp, der die Ressource erstellt hat.

lastModifiedAt

string (date-time)

Der Zeitstempel der letzten Änderung der Ressource (UTC)

lastModifiedBy

string

Die Identität, die die Ressource zuletzt geändert hat.

lastModifiedByType

createdByType

Der Identitätstyp, der die Ressource zuletzt geändert hat.

VirtualMachineState

Status der Standby-VMs

Wert Beschreibung
Running

Der virtuelle Computer ist betriebsbereit.

Deallocated

Der virtuelle Computer hat die Lease für die zugrunde liegende Hardware freigegeben und ist ausgeschaltet.

Hibernated

Der virtuelle Computer hat die Lease für die zugrunde liegende Hardware freigegeben und ist ausgeschaltet. Der Arbeitsspeicherinhalt des virtuellen Computers wird auf dem Betriebssystemdatenträger gespeichert. Beim erneuten Start werden Anwendungen und Prozesse, die zuvor auf Ihrer VM ausgeführt wurden, aus dem Zustand vor dem Ruhezustand fortgesetzt.