중요합니다
대기 풀에서 리소스를 성공적으로 생성하고 관리하려면 구독과 연결된 리소스에 대한 액세스가 필요합니다. 대기 풀이 제대로 작동하려면 대기 풀 리소스 공급자에 올바른 권한이 할당되었는지 확인합니다. 자세한 지침은 대기 풀에 대한 역할 권한 구성을 참조하세요.
언제든지 인스턴스 상태와 대기 풀의 최대 준비 용량을 업데이트할 수 있습니다. 대기 풀 이름은 대기 풀을 만드는 동안에만 설정할 수 있습니다. 프로비전 상태를 최대 절전 모드로 업데이트하는 경우 확장 집합이 최대 절전 모드 VM을 사용하도록 올바르게 구성되었는지 확인합니다. 자세한 정보는 최대 절전 모드 개요를 확인하세요.
대기 풀의 프로비전 상태를 변경하는 경우 아래 상태 간 전환이 지원됩니다. 중지됨(할당 취소됨) 상태와 최대 절전 모드 상태 간 전환은 지원되지 않습니다. 중지(할당 취소됨) 풀을 사용하는 대신 최대 절전 모드 풀을 사용하려는 경우 먼저 실행 중인 풀로 전환한 다음 프로비전 상태를 최대 절전 모드로 업데이트합니다.
초기 상태 |
업데이트된 상태 |
실행 중 |
중지됨(할당 취소됨) |
실행 중 |
최대 절전 모드 |
중단됨(할당 해지됨) |
실행 중 |
최대 절전 모드 |
실행 중 |
최대 절전 모드 |
중지됨 (할당 해제됨) |
대기 풀 업데이트
비고
대기 풀 VM 상태를 최대 절전 모드로 설정하는 것은 Azure Portal에서 아직 사용할 수 없습니다. 최대 절전 모드 VM 상태로 대기 풀을 구성하려면 CLI 또는 PowerShell과 같은 대체 SDK를 사용합니다.
- 대기 풀이 연결된 Virtual Machine Scale Sets로 이동합니다.
-
가용성 + 규모에서 대기 풀을 선택합니다.
-
풀 관리를 선택합니다.
- 구성을 업데이트하고 변경 내용을 저장합니다.
az Standby-vm-pool update를 사용하여 기존 대기 풀을 업데이트합니다.
az standby-vm-pool update \
--resource-group myResourceGroup \
--name myStandbyPool \
--max-ready-capacity 20 \
--min-ready-capacity 5 \
--vm-state "Deallocated"
Update-AzStandbyVMPool을 사용하여 기존 대기 풀을 업데이트합니다.
Update-AzStandbyVMPool `
-ResourceGroup myResourceGroup `
-Name myStandbyPool `
-MaxReadyCapacity 20 `
-MinReadyCapacity 5 `
-VMState "Deallocated"
기존 대기 풀 배포를 업데이트합니다.
az distribution group create 또는 New-AzResourceGroupDeployment를 사용하여 업데이트된 템플릿을 배포합니다.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"defaultValue": "east us"
},
"name": {
"type": "string",
"defaultValue": "myStandbyPool"
},
"maxReadyCapacity" : {
"type": "int",
"defaultValue": 10
},
"minReadyCapacity" : {
"type": "int",
"defaultValue": 5
},
"virtualMachineState" : {
"type": "string",
"defaultValue": "Deallocated"
},
"attachedVirtualMachineScaleSetId" : {
"type": "string",
"defaultValue": "/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myScaleSet"
}
},
"resources": [
{
"type": "Microsoft.StandbyPool/standbyVirtualMachinePools",
"apiVersion": "2025-03-01",
"name": "[parameters('name')]",
"location": "[parameters('location')]",
"properties": {
"elasticityProfile": {
"maxReadyCapacity": "[parameters('maxReadyCapacity')]",
"minReadyCapacity": "[parameters('minReadyCapacity')]"
},
"virtualMachineState": "[parameters('virtualMachineState')]",
"attachedVirtualMachineScaleSetId": "[parameters('attachedVirtualMachineScaleSetId')]"
}
}
]
}
기존 대기 풀 배포를 업데이트합니다.
az distribution group create 또는 New-AzResourceGroupDeployment를 사용하여 업데이트된 템플릿을 배포합니다.
param location string = resourceGroup().location
param standbyPoolName string = 'myStandbyPool'
param maxReadyCapacity int = 10
param minReadyCapacity int = 5
@allowed([
'Running'
'Deallocated'
'Hibernated'
])
param vmState string = 'Deallocated'
param virtualMachineScaleSetId string = '/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myScaleSet'
resource standbyPool 'Microsoft.standbypool/standbyvirtualmachinepools@2025-03-01' = {
name: standbyPoolName
location: location
properties: {
elasticityProfile: {
maxReadyCapacity: maxReadyCapacity
minReadyCapacity: minReadyCapacity
}
virtualMachineState: vmState
attachedVirtualMachineScaleSetId: virtualMachineScaleSetId
}
}
만들기 또는 업데이트를 사용하여 기존 대기 풀을 업데이트합니다.
PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/myStandbyPool?api-version=2025-03-01
{
"type": "Microsoft.StandbyPool/standbyVirtualMachinePools",
"name": "myStandbyPool",
"location": "east us",
"properties": {
"elasticityProfile": {
"maxReadyCapacity": 20
"minReadyCapacity": 5
},
"virtualMachineState":"Deallocated",
"attachedVirtualMachineScaleSetId": "/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myScaleSet"
}
}
대기 풀 삭제
- 대기 풀이 연결된 Virtual Machine Scale Sets로 이동합니다.
-
가용성 + 규모에서 대기 풀을 선택합니다.
-
풀 삭제를 선택합니다.
-
삭제를 선택합니다.
az Standbypool delete를 사용하여 기존 대기 풀을 삭제합니다.
az standby-vm-pool delete \
--resource-group myResourceGroup \
--name myStandbyPool
Remove-AzStandbyVMPool을 사용하여 기존 대기 풀을 삭제합니다.
Remove-AzStandbyVMPool `
-ResourceGroup myResourceGroup `
-Name myStandbyPool `
-Nowait
삭제를 사용하여 기존 대기 풀을 삭제합니다.
DELETE https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/myStandbyPool?api-version=2025-03-01
다음 단계
Virtual Machine Scale Sets의 대기 풀에 관해 가장 FAQ(질문과 대답)을 검토합니다.