다음을 통해 공유


Virtual Machines - Assess Patches

VM에서 패치를 평가합니다.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches?api-version=2024-03-01

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
resourceGroupName
path True

string

리소스 그룹의 이름.

subscriptionId
path True

string

Microsoft Azure 구독을 고유하게 식별하는 구독 자격 증명 구독 ID는 모든 서비스 호출에 대한 URI의 파트를 형성합니다.

vmName
path True

string

가상 머신의 이름입니다.

api-version
query True

string

클라이언트 API 버전.

응답

Name 형식 Description
200 OK

VirtualMachineAssessPatchesResult

정상

202 Accepted

수락됨

Other Status Codes

CloudError

작업이 실패한 이유를 설명하는 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 Flow

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

예제

Assess patch state of a virtual machine.

샘플 요청

POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/assessPatches?api-version=2024-03-01

샘플 응답

{
  "status": "Succeeded",
  "assessmentActivityId": "68f8b292-dfc2-4646-9781-33cc88631968",
  "rebootPending": true,
  "criticalAndSecurityPatchCount": 1,
  "otherPatchCount": 2,
  "startDateTime": "2020-04-24T21:02:04.2556154Z",
  "availablePatches": [
    {
      "patchId": "35428702-5784-4ba4-a6e0-5222258b5411",
      "name": "Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.279.1373.0)",
      "version": "",
      "kbId": "2267602",
      "classifications": [
        "Definition Updates"
      ],
      "rebootBehavior": "NeverReboots",
      "activityId": "68f8b292-dfc2-4646-9781-33cc88631968",
      "publishedDate": "2018-11-07T00:00:00Z",
      "lastModifiedDateTime": "2020-04-24T21:18:45.2830263Z",
      "assessmentState": "Available"
    },
    {
      "patchId": "39f9cdd1-795c-4d0e-8c0a-73ab3f31746d",
      "name": "Windows Malicious Software Removal Tool x64 - October 2018 (KB890830)",
      "version": "",
      "kbId": "890830",
      "classifications": [
        "Update Rollups"
      ],
      "rebootBehavior": "CanRequestReboot",
      "activityId": "68f8b292-dfc2-4646-9781-33cc88631968",
      "publishedDate": "2018-11-07T00:00:00Z",
      "lastModifiedDateTime": "2020-04-24T21:18:45.2830263Z",
      "assessmentState": "Available"
    }
  ],
  "error": null
}
Location: https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/westus/operations/{operationId}&monitor=true&api-version=2024-03-01

정의

Name Description
ApiError

API 오류입니다.

ApiErrorBase

API 오류 기준입니다.

CloudError

Compute 서비스의 오류 응답입니다.

InnerError

내부 오류 세부 정보입니다.

PatchAssessmentState

지정된 패치의 가용성을 설명합니다.

PatchOperationStatus

작업의 전체 성공 또는 실패 상태. 작업이 완료될 때까지 "InProgress"로 유지됩니다. 이 시점에서 "알 수 없음", "실패", "성공" 또는 "CompletedWithWarnings"가 됩니다.

VirtualMachineAssessPatchesResult

AssessPatches 결과의 속성을 설명합니다.

VirtualMachineSoftwarePatchProperties

설치에 사용할 수 있는 것으로 검색된 패치 목록입니다.

VMGuestPatchRebootBehavior

패치의 재부팅 요구 사항을 설명합니다.

ApiError

API 오류입니다.

Name 형식 Description
code

string

오류 코드입니다.

details

ApiErrorBase[]

API 오류 세부 정보

innererror

InnerError

API 내부 오류

message

string

오류 메시지입니다.

target

string

특정 오류의 대상입니다.

ApiErrorBase

API 오류 기준입니다.

Name 형식 Description
code

string

오류 코드입니다.

message

string

오류 메시지입니다.

target

string

특정 오류의 대상입니다.

CloudError

Compute 서비스의 오류 응답입니다.

Name 형식 Description
error

ApiError

API 오류입니다.

InnerError

내부 오류 세부 정보입니다.

Name 형식 Description
errordetail

string

내부 오류 메시지 또는 예외 덤프입니다.

exceptiontype

string

예외 형식입니다.

PatchAssessmentState

지정된 패치의 가용성을 설명합니다.

Name 형식 Description
Available

string

Unknown

string

PatchOperationStatus

작업의 전체 성공 또는 실패 상태. 작업이 완료될 때까지 "InProgress"로 유지됩니다. 이 시점에서 "알 수 없음", "실패", "성공" 또는 "CompletedWithWarnings"가 됩니다.

Name 형식 Description
CompletedWithWarnings

string

Failed

string

InProgress

string

Succeeded

string

Unknown

string

VirtualMachineAssessPatchesResult

AssessPatches 결과의 속성을 설명합니다.

Name 형식 Description
assessmentActivityId

string

이 결과를 생성한 작업의 활동 ID입니다. CRP 및 확장 로그 간에 상관 관계를 지정하는 데 사용됩니다.

availablePatches

VirtualMachineSoftwarePatchProperties[]

설치에 사용할 수 있는 것으로 검색된 패치 목록입니다.

criticalAndSecurityPatchCount

integer

사용 가능하고 아직 설치되지 않은 것으로 검색된 중요 또는 보안 패치의 수입니다.

error

ApiError

작업을 실행하는 동안 발생한 오류입니다. 세부 정보 배열에는 해당 목록이 포함됩니다.

otherPatchCount

integer

중요 및 보안을 제외한 사용 가능한 모든 패치의 수입니다.

rebootPending

boolean

VM의 전체 재부팅 상태. 부분적으로 설치된 패치가 설치를 완료하기 위해 다시 부팅이 필요하지만 다시 부팅이 아직 발생하지 않은 경우 적용됩니다.

startDateTime

string

작업이 시작된 UTC 타임스탬프입니다.

status

PatchOperationStatus

작업의 전체 성공 또는 실패 상태. 작업이 완료될 때까지 "InProgress"로 유지됩니다. 이 시점에서 "알 수 없음", "실패", "성공" 또는 "CompletedWithWarnings"가 됩니다.

VirtualMachineSoftwarePatchProperties

설치에 사용할 수 있는 것으로 검색된 패치 목록입니다.

Name 형식 Description
activityId

string

이 결과를 생성한 작업의 활동 ID입니다. CRP 및 확장 로그 간에 상관 관계를 지정하는 데 사용됩니다.

assessmentState

PatchAssessmentState

지정된 패치의 가용성을 설명합니다.

classifications

string[]

패치 게시자가 제공한 패치의 분류입니다.

kbId

string

패치의 KBID입니다. Windows 패치에만 적용됩니다.

lastModifiedDateTime

string

이 패치 레코드에 대한 마지막 업데이트의 UTC 타임스탬프입니다.

name

string

패치의 이름입니다.

patchId

string

패치의 고유 식별자입니다.

publishedDate

string

리포지토리에서 이 패치를 게시한 UTC 타임스탬프입니다.

rebootBehavior

VMGuestPatchRebootBehavior

패치의 재부팅 요구 사항을 설명합니다.

version

string

패치의 버전 번호입니다. 이 속성은 Linux 패치에만 적용됩니다.

VMGuestPatchRebootBehavior

패치의 재부팅 요구 사항을 설명합니다.

Name 형식 Description
AlwaysRequiresReboot

string

CanRequestReboot

string

NeverReboots

string

Unknown

string