Skip to content

Commit 5599268

Browse files
authored
Merge pull request #175696 from mgreenegit/patch-22
redirect to null
2 parents 350572e + 6e3607c commit 5599268

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/governance/policy/concepts/guest-configuration-custom.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ Configuration.
116116
- The Reasons property must be an array.
117117
- Each item in the array should be a hashtable with keys named **Code** and
118118
**Phrase**.
119+
- No other values other than the hashtable should be returned.
119120

120121
The Reasons property is used by the service to standardize how compliance
121122
information is presented. You can think of each item in Reasons as a "reason"
@@ -149,6 +150,12 @@ return @{
149150
}
150151
```
151152

153+
When using commandline tools to get information that will return in Get, you
154+
might find the tool returns output you didn't expect. Even though you capture
155+
the output in PowerShell, output might also been written to
156+
standard error. To avoid this issue, consider redirecting
157+
output to null.
158+
152159
### The Reasons property embedded class
153160

154161
In script-based resources (Windows only), the Reasons class is included in the

0 commit comments

Comments
 (0)