Skip to content

Commit 8130f87

Browse files
committed
Add reasons
1 parent c013bdf commit 8130f87

File tree

1 file changed

+35
-6
lines changed
  • docs/reference/resources/Microsoft/Windows/RebootPending

1 file changed

+35
-6
lines changed

docs/reference/resources/Microsoft/Windows/RebootPending/index.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,48 @@ IsWriteOnly : false
9898
A boolean value that indicates whether the system has a pending reboot. This property is `true` if
9999
a reboot is pending and otherwise `false`.
100100

101+
### Reason
102+
103+
<details><summary>Expand for <code>reason</code> property metadata</summary>
104+
105+
```yaml
106+
Type : array, null
107+
IsRequired : false
108+
IsKey : false
109+
IsReadOnly : true
110+
IsWriteOnly : false
111+
```
112+
113+
</details>
114+
115+
An array of strings that provides detailed information about why a reboot is pending, or `null` if no reboot is pending. When a reboot is required, this property contains specific reasons such as:
116+
117+
- Windows Updates requiring restart
118+
- Component-Based Servicing operations
119+
- Pending file rename operations
120+
- Computer rename pending
121+
- Domain join operations pending
122+
101123
## Instance validating schema
102124

103125
The following snippet contains the JSON Schema that validates an instance of the resource.
104126

105127
```json
106128
{
107-
"type": "null",
108-
"properties": {
109-
"rebootPending": {
110-
"type": "boolean",
111-
"readOnly": true
129+
"type": "object",
130+
"properties": {
131+
"rebootPending": {
132+
"type": "boolean",
133+
"readOnly": true
134+
},
135+
"reasons": {
136+
"type": [
137+
"array",
138+
"null"
139+
],
140+
"readOnly": true
141+
}
112142
}
113-
}
114143
}
115144
```
116145

0 commit comments

Comments
 (0)