Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"subscriptionId": "mySubscriptionId",
"resourceGroupName": "myResourceGroupName",
"vmName": "myVMName",
"softwareUpdateId": "35428702-5784-4ba4-a6e0-5222258b5411",
"api-version": "2018-06-30-preview"
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing parameter softwareUpdateId.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.GuestConfiguration/softwareUpdates/35428702-5784-4ba4-a6e0-5222258b5411",
"name": "35428702-5784-4ba4-a6e0-5222258b5411",
"type": "Microsoft.GuestConfiguration/softwareUpdates",
"properties": {
"updateState": "Needed",
"availableOnComputerSince": "2018-11-07T00:02:21Z",
"approved": "true",
"packageRepository": "",
"supercededUpdateIds": "",
"isSupercededUpdate": "",
"deploymentAction": "",
"kbid": "2267602",
"kbRevisionNumber": "200",
"publishedDate": "2018-11-07T00:00:00Z",
"productName": "Windows Defender",
"productVersion": "",
"productArch": "",
"title": "Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.279.1373.0)",
"classification": "Definition Updates",
"packageClassification": "",
"packageSeverity": "",
"msrcSeverity": "",
"externalURL": "https://support.microsoft.com/en-us/help/2267602",
"msrcBulletinId": "",
"cveNumbers": "",
"rebootBehavior": "NeverReboots",
"optional": "false",
"autoSelectOnWebsites": "",
"browseOnly": "",
"lastRefreshDate": "2018-11-11T00:00:00Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"subscriptionId": "mySubscriptionId",
"resourceGroupName": "myResourceGroupName",
"vmName": "myVMName",
"profileName": "default",
"api-version": "2018-06-30-preview"
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing parameter profileName

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.GuestConfiguration/softwareUpdateProfile/default",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SoftwareUpdateProfile defined here: https://github.com/Azure/azure-rest-api-specs/pull/4950/files#diff-e53a4ef9e8ceed16b91a1997e37815e6R1017 does not have properties "id", "name", "type". Did you forget to inherit it from Resource?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inherited from Proxy resource now

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inherited from proxy now

"name": "default",
"type": "Microsoft.GuestConfiguration/softwareUpdateProfile",
"properties": {
"computerName": "myVMName",
"computerIP": "40.85.217.32",
"computerEnvironment": "Azure",
"osType": "Windows",
"osName": "Microsoft Windows 10 Enterprise",
"osVersion": "10.0.17763 N/A Build 17763",
"osMajorVersion": "",
"osMinorVersion": "",
"osFullName": "",
"osArch": "x64",
"computerStartTime": "2018-10-30T17:31:02Z",
"restartPending": "True",
"guestConfigAgentVersion": "8.0.11081.0",
"guestConfigAgentStartTime": "2018-10-30T17:31:02Z",
"netRuntimeVersion": ".NET Framework 4.6.1",
"windowsUpdateSetting": "Notify before installation",
"windowsUpdateAgentVersion": "10.0.14393.2368",
"windowsUpdateIncludeRecommendedUpdates": "",
"wsusServer": "http://rd2-sup-hlb.redmond.corp.microsoft.com:80",
"linuxPackageManager": "",
"criticalCount": "2",
"securityCount": "0",
"otherCount": "0",
"assessmentRuntime": "2018-10-30T17:31:02Z",
"oldestMissingSecurityUpdateInDays": "35",
"oldestMissingSecurityUpdateBucket": "30 days ago",
"lastUpdateApplied": "",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"" is not a valid value for a date-time property

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed date-time format for this property because this can actually not be a valid date-time in the when updates have never been applied to VM.

"updateAssessmentErrors": "The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. (Exception from HRESULT: 0x80070422)",
"updateAssessmentErrorStackTrace": "System.Runtime.InteropServices.COMException (0x80070422): ... at Microsoft.EnterpriseManagement.Mom.Modules.ChangeTracking.WUA.UpdateInstallerClass.get_IsBusy() at .....acknowledgeImmediately)",
"lastRefreshDate": "2018-11-07T00:00:00Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"parameters": {
"subscriptionId": "mySubscriptionId",
"resourceGroupName": "myResourceGroupName",
"vmName": "myVMName",
"api-version": "2018-06-30-preview"
},
"responses": {
"200": {
"headers": {},
"body": [
{
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.GuestConfiguration/softwareUpdates/35428702-5784-4ba4-a6e0-5222258b5411",
"name": "35428702-5784-4ba4-a6e0-5222258b5411",
"type": "Microsoft.GuestConfiguration/softwareUpdates",
"properties": {
"updateState": "Needed",
"availableOnComputerSince": "2018-11-07T00:02:21Z",
"approved": "true",
"packageRepository": "",
"supercededUpdateIds": "",
"isSupercededUpdate": "",
"deploymentAction": "",
"kbid": "2267602",
"kbRevisionNumber": "200",
"publishedDate": "2018-11-07T00:00:00Z",
"productName": "Windows Defender",
"productVersion": "",
"productArch": "",
"title": "Definition Update for Windows Defender Antivirus - KB2267602 (Definition 1.279.1373.0)",
"classification": "Definition Updates",
"packageClassification": "",
"packageSeverity": "",
"msrcSeverity": "",
"externalURL": "https://support.microsoft.com/en-us/help/2267602",
"msrcBulletinId": "",
"cveNumbers": "",
"rebootBehavior": "NeverReboots",
"optional": "false",
"autoSelectOnWebsites": "",
"browseOnly": "",
"lastRefreshDate": "2018-11-11T00:00:00Z"
}
},
{
"id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.GuestConfiguration/softwareUpdates/39f9cdd1-795c-4d0e-8c0a-73ab3f31746d",
"name": "39f9cdd1-795c-4d0e-8c0a-73ab3f31746d",
"type": "Microsoft.GuestConfiguration/softwareUpdates",
"properties": {
"updateState": "Needed",
"availableOnComputerSince": "2018-10-10T07:00:00Z",
"approved": "true",
"packageRepository": "",
"supercededUpdateIds": "",
"isSupercededUpdate": "",
"deploymentAction": "",
"kbid": "890830",
"kbRevisionNumber": "200",
"publishedDate": "2018-11-07T00:00:00Z",
"productName": "Windows Server 2012 R2",
"productVersion": "",
"productArch": "",
"title": "Windows Malicious Software Removal Tool x64 - October 2018 (KB890830)",
"classification": "Update Rollups",
"packageClassification": "",
"packageSeverity": "",
"msrcSeverity": "",
"externalURL": "https://support.microsoft.com/en-us/help/890830",
"msrcBulletinId": "",
"cveNumbers": "",
"rebootBehavior": "CanRequestReboot",
"optional": "false",
"autoSelectOnWebsites": "",
"browseOnly": "",
"lastRefreshDate": "2018-11-11T00:00:00Z"
}
}
]
}
}
}
Loading