Skip to content

Commit 6f2b89e

Browse files
authored
preparing for hybrid
1 parent b2efa4d commit 6f2b89e

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ manager: carmonm
1111
# How to create Guest Configuration policies
1212

1313
Guest Configuration uses a [Desired State Configuration](/powershell/dsc) (DSC) resource module to
14-
create the configuration for auditing of the Azure virtual machines. The DSC configuration defines
15-
the condition that the virtual machine should be in. If the evaluation of the configuration fails,
16-
the Policy effect **audit** is triggered and the virtual machine is considered **non-compliant**.
14+
create the configuration for auditing of the Azure machines. The DSC configuration defines
15+
the condition that the machine should be in. If the evaluation of the configuration fails,
16+
the Policy effect **audit** is triggered and the machine is considered **non-compliant**.
1717

1818
[Azure Policy Guest Configuration](/azure/governance/policy/concepts/guest-configuration)
19-
can only be used to audit settings inside virtual machines. Remediation
20-
of settings inside virtual machines isn't yet available.
19+
can only be used to audit settings inside machines. Remediation
20+
of settings inside machines isn't yet available.
2121

2222
Use the following actions to create your own configuration for validating the state of an Azure
23-
virtual machine.
23+
machine.
2424

2525
> [!IMPORTANT]
2626
> Custom policies with Guest Configuration is a Preview feature.
@@ -153,15 +153,15 @@ machines. Examples include GitHub repositories, an Azure Repo, or Azure storage.
153153
not make the package public, you can include a [SAS token](../../../storage/common/storage-dotnet-shared-access-signature-part-1.md)
154154
in the URL. You could also implement
155155
[service endpoint](../../../storage/common/storage-network-security.md#grant-access-from-a-virtual-network)
156-
for virtual machines in a private network, although this configuration applies only to accessing the
156+
for machines in a private network, although this configuration applies only to accessing the
157157
package and not communicating with the service.
158158

159159
### Working with secrets in Guest Configuration packages
160160

161161
In Azure Policy Guest Configuration, the optimal way to manage secrets used at run time is to store
162162
them in Azure Key Vault. This design is implemented within custom DSC resources.
163163

164-
First, create a user-assigned managed identity in Azure. The identity is used by virtual machines to
164+
First, create a user-assigned managed identity in Azure. The identity is used by machines to
165165
access secrets stored in Key Vault. For detailed steps, see
166166
[Create, list or delete a user-assigned managed identity using Azure PowerShell](../../../active-directory/managed-identities-azure-resources/how-to-manage-ua-identity-powershell.md).
167167

@@ -170,7 +170,7 @@ Assign permissions to the instance to give the user-assigned identity access to
170170
Key Vault. For detailed steps, see
171171
[Set and retrieve a secret - .NET](../../../key-vault/quick-create-net.md#give-the-service-principal-access-to-your-key-vault).
172172

173-
Then, assign the user-assigned identity to your virtual machine. For detailed steps, see
173+
Then, assign the user-assigned identity to your machine. For detailed steps, see
174174
[Configure managed identities for Azure resources on an Azure VM using PowerShell](../../../active-directory/managed-identities-azure-resources/qs-configure-powershell-windows-vm.md#user-assigned-managed-identity).
175175
At scale, assign this identity using Azure Resource Manager via Azure Policy. For detailed steps,
176176
see
@@ -203,7 +203,7 @@ $credential = New-Object System.Management.Automation.PSCredential('secret',$val
203203
After creating the Configuration package but before publishing it to Azure, you can test the
204204
functionality of the package from your workstation or CI/CD environment. The GuestConfiguration
205205
module includes a cmdlet `Test-GuestConfigurationPackage` that loads the same agent in your
206-
development environment as is used inside Azure virtual machines. Using this solution, you can
206+
development environment as is used inside Azure machines. Using this solution, you can
207207
perform integration testing locally before releasing to billed test/QA/production environments.
208208

209209
```azurepowershell-interactive
@@ -230,7 +230,7 @@ see the section below
230230
## Create the Azure Policy definition and initiative deployment files
231231

232232
Once a Guest Configuration custom policy package has been created and uploaded to a location
233-
accessible by the virtual machines, create the Guest Configuration policy definition for Azure
233+
accessible by the machines, create the Guest Configuration policy definition for Azure
234234
Policy. The `New-GuestConfigurationPolicy` cmdlet takes a publicly accessible Guest Configuration
235235
custom policy package and creates an **auditIfNotExists** and **deployIfNotExists** policy
236236
definition. A policy initiative definition that includes both policy definitions is also created.
@@ -270,7 +270,7 @@ files.
270270

271271
If you would like to use this command to scaffold a custom policy project, you can make changes to
272272
these files. An example would be modifying the 'If' section to evaluate whether a specific Tag is
273-
present for virtual machines. For details on creating policies, see [Programmatically create policies](./programmatically-create.md).
273+
present for machines. For details on creating policies, see [Programmatically create policies](./programmatically-create.md).
274274

275275
### Using parameters in custom Guest Configuration policies
276276

@@ -414,7 +414,7 @@ Optionally, customers may also use a certificate to sign packages and force the
414414
extension to only allow signed content.
415415

416416
To enable this scenario, there are two steps you need to complete. Run the cmdlet to sign the
417-
content package, and append a tag to the virtual machines that should require code to be signed.
417+
content package, and append a tag to the machines that should require code to be signed.
418418

419419
To use the Signature Validation feature, run the `Protect-GuestConfigurationPackage` cmdlet to sign
420420
the package before it's published. This cmdlet requires a 'Code Signing' certificate.
@@ -437,7 +437,7 @@ Parameters of the `Protect-GuestConfigurationPackage` cmdlet:
437437
GuestConfiguration agent expects the certificate public key to be present in "Trusted Root
438438
Certificate Authorities" on Windows machines and in the path `/usr/local/share/ca-certificates/extra`
439439
on Linux machines. For the node to verify signed content, install the
440-
certificate public key on the virtual machine before applying the custom policy. This
440+
certificate public key on the machine before applying the custom policy. This
441441
process can be done using any technique inside the VM, or by using Azure Policy. An example template
442442
is
443443
[provided here](https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-push-certificate-windows).
@@ -446,14 +446,14 @@ deployments. For detailed steps, see
446446
[Set up Key Vault for virtual machines in Azure Resource Manager](../../../virtual-machines/windows/key-vault-setup.md#use-templates-to-set-up-key-vault).
447447

448448
Following is an example to export the public key from a signing certificate, to import to the
449-
virtual machine.
449+
machine.
450450

451451
```azurepowershell-interactive
452452
$Cert = Get-ChildItem -Path cert:\LocalMachine\My | Where-Object {($_.Subject-eq "CN=mycert3") } | Select-Object -First 1
453453
$Cert | Export-Certificate -FilePath "$env:temp\DscPublicKey.cer" -Force
454454
```
455455

456-
A good reference for creating GPG keys to use with Linux virtual machines is provided
456+
A good reference for creating GPG keys to use with Linux machines is provided
457457
by an article on GitHub,
458458
[Generating a new GPG key](https://help.github.com/en/articles/generating-a-new-gpg-key).
459459

0 commit comments

Comments
 (0)