Skip to content

Commit 885a7c5

Browse files
committed
no notes
1 parent 51499ec commit 885a7c5

File tree

2 files changed

+34
-38
lines changed

2 files changed

+34
-38
lines changed

articles/governance/policy/how-to/guest-configuration-create-linux.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,12 @@ Test-GuestConfigurationPackage `
201201
-Path ./AuditFilePathExists.zip
202202
```
203203

204-
> [!NOTE]
205-
> The cmdlet also supports input from the PowerShell pipeline. Pipe the output of
206-
> `New-GuestConfigurationPackage` cmdlet to the `Test-GuestConfigurationPackage` cmdlet.
207-
>
208-
> ```azurepowershell-interactive
209-
> New-GuestConfigurationPackage -Name AuditFilePathExists -Configuration ./Config/AuditFilePathExists.mof -ChefProfilePath './' | Test-GuestConfigurationPackage
210-
> ```
204+
The cmdlet also supports input from the PowerShell pipeline. Pipe the output of
205+
`New-GuestConfigurationPackage` cmdlet to the `Test-GuestConfigurationPackage` cmdlet.
206+
207+
```azurepowershell-interactive
208+
New-GuestConfigurationPackage -Name AuditFilePathExists -Configuration ./Config/AuditFilePathExists.mof -ChefProfilePath './' | Test-GuestConfigurationPackage
209+
```
211210

212211
The next step is to publish the file to blob storage. The script below contains a function you can use to automate this task. The commands used in the `publish` function require the `Az.Storage` module.
213212

@@ -310,18 +309,17 @@ Publish-GuestConfigurationPolicy `
310309
-Path '.\policyDefinitions'
311310
```
312311

313-
> [!NOTE]
314-
> The `Publish-GuestConfigurationPolicy` cmdlet accepts the path from the PowerShell pipeline. This
315-
> feature means you can create the policy files and publish them in a single set of piped commands.
316-
>
317-
> ```azurepowershell-interactive
318-
> New-GuestConfigurationPolicy `
319-
> -ContentUri 'https://storageaccountname.blob.core.windows.net/packages/AuditFilePathExists.zip?st=2019-07-01T00%3A00%3A00Z&se=2024-07-01T00%3A00%3A00Z&sp=rl&sv=2018-03-28&sr=b&sig=JdUf4nOCo8fvuflOoX%2FnGo4sXqVfP5BYXHzTl3%2BovJo%3D' `
320-
> -DisplayName 'Audit Linux file path.' `
321-
> -Description 'Audit that a file path exists on a Linux machine.' `
322-
> -Path './policies' `
323-
> | Publish-GuestConfigurationPolicy
324-
> ```
312+
The `Publish-GuestConfigurationPolicy` cmdlet accepts the path from the PowerShell pipeline. This
313+
feature means you can create the policy files and publish them in a single set of piped commands.
314+
315+
```azurepowershell-interactive
316+
New-GuestConfigurationPolicy `
317+
-ContentUri 'https://storageaccountname.blob.core.windows.net/packages/AuditFilePathExists.zip?st=2019-07-01T00%3A00%3A00Z&se=2024-07-01T00%3A00%3A00Z&sp=rl&sv=2018-03-28&sr=b&sig=JdUf4nOCo8fvuflOoX%2FnGo4sXqVfP5BYXHzTl3%2BovJo%3D' `
318+
-DisplayName 'Audit Linux file path.' `
319+
-Description 'Audit that a file path exists on a Linux machine.' `
320+
-Path './policies' `
321+
| Publish-GuestConfigurationPolicy
322+
```
325323

326324
With the policy created in Azure, the last step is to assign the
327325
initiative. See how to assign the initiative with [Portal](../assign-policy-portal.md), [Azure CLI](../assign-policy-azurecli.md),

articles/governance/policy/how-to/guest-configuration-create.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,12 @@ Test-GuestConfigurationPackage `
245245
-Path ./AuditBitlocker.zip
246246
```
247247

248-
> [!NOTE]
249-
> The cmdlet also supports input from the PowerShell pipeline. Pipe the output of
250-
> `New-GuestConfigurationPackage` cmdlet to the `Test-GuestConfigurationPackage` cmdlet.
251-
>
252-
> ```azurepowershell-interactive
253-
> New-GuestConfigurationPackage -Name AuditBitlocker -Configuration ./Config/AuditBitlocker.mof | Test-GuestConfigurationPackage
254-
> ```
248+
The cmdlet also supports input from the PowerShell pipeline. Pipe the output of
249+
`New-GuestConfigurationPackage` cmdlet to the `Test-GuestConfigurationPackage` cmdlet.
250+
251+
```azurepowershell-interactive
252+
New-GuestConfigurationPackage -Name AuditBitlocker -Configuration ./Config/AuditBitlocker.mof | Test-GuestConfigurationPackage
253+
```
255254

256255
The next step is to publish the file to blob storage. The script below contains a function you can use to automate this task. The commands used in the `publish` function require the `Az.Storage` module.
257256

@@ -355,18 +354,17 @@ Publish-GuestConfigurationPolicy `
355354
-Path '.\policyDefinitions'
356355
```
357356

358-
> [!NOTE]
359-
> The `Publish-GuestConfigurationPolicy` cmdlet accepts the path from the PowerShell pipeline. This
360-
> feature means you can create the policy files and publish them in a single set of piped commands.
361-
>
362-
> ```azurepowershell-interactive
363-
> New-GuestConfigurationPolicy `
364-
> -ContentUri 'https://storageaccountname.blob.core.windows.net/packages/AuditBitLocker.zip?st=2019-07-01T00%3A00%3A00Z&se=2024-07-01T00%3A00%3A00Z&sp=rl&sv=2018-03-28&sr=b&sig=JdUf4nOCo8fvuflOoX%2FnGo4sXqVfP5BYXHzTl3%2BovJo%3D' `
365-
> -DisplayName 'Audit BitLocker service.' `
366-
> -Description 'Audit if the BitLocker service is not enabled on Windows machine.' `
367-
> -Path './policies' `
368-
> | Publish-GuestConfigurationPolicy
369-
> ```
357+
The `Publish-GuestConfigurationPolicy` cmdlet accepts the path from the PowerShell pipeline. This
358+
feature means you can create the policy files and publish them in a single set of piped commands.
359+
360+
```azurepowershell-interactive
361+
New-GuestConfigurationPolicy `
362+
-ContentUri 'https://storageaccountname.blob.core.windows.net/packages/AuditBitLocker.zip?st=2019-07-01T00%3A00%3A00Z&se=2024-07-01T00%3A00%3A00Z&sp=rl&sv=2018-03-28&sr=b&sig=JdUf4nOCo8fvuflOoX%2FnGo4sXqVfP5BYXHzTl3%2BovJo%3D' `
363+
-DisplayName 'Audit BitLocker service.' `
364+
-Description 'Audit if the BitLocker service is not enabled on Windows machine.' `
365+
-Path './policies' `
366+
| Publish-GuestConfigurationPolicy
367+
```
370368

371369
With the policy created in Azure, the last step is to assign the
372370
initiative. See how to assign the initiative with [Portal](../assign-policy-portal.md), [Azure CLI](../assign-policy-azurecli.md),

0 commit comments

Comments
 (0)