Azure Policy Guest Configuration – Using Tags for Configuration of Features

Published Nov 01 2021 02:31 AM 1,881 Views
Microsoft

The preview for being able to audit and correct settings inside of a virtual machine using Azure Policy Guest Configuration is available now, this post explores deploying settings into the virtual machine.

 

Recently on a POC with a customer we looked at configuring Windows Features using Guest Configuration. The ask was if a virtual machine could have the required features installed based on the value of a tag.

 

Since Guest Configuration has a nice feature where it can take in parameters and consume these as part of the configuration it should be possible to have the value of these parameters come from something such as a tag which Azure Policy understands. Let’s go through the steps involved in completing this.

 

Before I start – this solution works ok in my environment, but the DSC resources used are considered experimental so before deploying make sure you do your due diligence!

 

Getting Started

Azure Guest Configuration Policy is based on DSC version 3 which is designed to run on PowerShell 7 so you should have that installed. If you need help setting up the development environment you can follow the instructions here or just see below.

You can clone these files from my GitHub repository – all the script examples are included in the files you download.

Install the GuestConfiguration and PsDscResources modules – these enable us to build the package which is going to be used by the policy.

 

 

 

Install-Module GuestConfiguration -Verbose -Force
Install-Module PSDscResources -Verbose -Force

 

 

 

You will also need to create an Azure Storage Account to hold the package, the virtual machine should have network access to be able to download from this account. You can use PowerShell to create a new resource group and storage account. Remember to update the names and locations to suit your subscription.

 

 

 

Connect-AzAccount

$resourceGroupName = "resource group name" # Update with your own details
$storageAccountName = "storage account name" # Update with your own details
$location = "australiaeast" # Update with your own details

New-AzResourceGroup -Location $location -Name $resourceGroupName -Force
New-AzStorageAccount -ResourceGroupName $resourceGroupName `
    -StorageAccountName $storageAccountName `
    -Location $location `
    -SkuName Standard_LRS `
    -Kind StorageV2 `
    -EnableHttpsTrafficOnly $true `
    -MinimumTlsVersion TLS1_2
$ctx = (Get-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName).Context
New-AzStorageContainer -Name dsc -Context $ctx -Permission Off

 

 

 

Machines which are going to be configured to use Guest Configuration will also need to have the extension automatically installed. To do that we assign the “Deploy prerequisites to enable Guest Configuration policies on virtual machines” built-in policy to the resource group.

 

 

 

$assignment = New-AzPolicyAssignment -Name deployGCPre `
    -Location $location `
    -Scope (Get-AzResourceGroup -Name $resourceGroupName).ResourceId `
    -PolicySetDefinition (Get-AzPolicySetDefinition -Id '/providers/Microsoft.Authorization/policySetDefinitions/12794019-7a00-42cf-95c2-882eed337cc8') `
    -AssignIdentity

 

 

 

Finally, we assign permission to the policy to be able to deploy the resources needed for Guest Configuration.

 

 

 

New-AzRoleAssignment -Scope (Get-AzResourceGroup -Name $resourceGroupName).ResourceId `
    -RoleDefinitionName 'Contributor' `
    -ObjectId $assignment.Identity.principalId

 

 

 

In the files cloned from GitHub there is a folder called cFeatureSet. It is a DSC resource which allows you to install Windows Features – it must be copied to one of the PowerShell module locations for PowerShell 7 (you can check the value of $env:PSModulePath to find one of the locations).

 

 

 

Copy-Item .\cFeatureSet $env:PSModulePath.Split(";")[0] -Force -Recurse

 

 

 

DSC Configuration

If you have used PowerShell DSC before this bit is easy – we create a DSC configuration to install some features using the custom module. The different part if how we input the parameters. When generating the MOF file, it doesn’t matter what value we put in for the feature name value as it is going to be replaced by the tag values in our policy. This is why I have just put its value as “replaced” in the configuration.

The file configuration.ps1 contains a simple configuration – you can execute it and it will generate the MOF file for us.

 

 

 

Configuration InstallFeatures {
    Import-DscResource -ModuleName PSDscResources
    Import-DscResource -ModuleName cFeatureSet

    Node localhost {
        cFeatureSet features {
            FeatureName = "replaced"
            Ensure = "Present"
        }
    }
}
InstallFeatures

 

 

 

NOTE: My VS Code and PowerShell wasn’t playing nice with the custom module – the simple fix was to run the above code using PowerShell 5.1 which generated the MOF file for me.

 

If you open the MOF file it should look like below – note how the “replaced” word is still in there. For DSC this is normally not how it works but APGC is special.

pic1.png

 

Generate the Package

The GuestConfiguration module makes the next part easy, when you execute the code below it creates a zip file with the MOF file and all required modules. This gets uploaded to the storage account created earlier and a SAS token is generated. The virtual machine uses this SAS token to access the package and download it, it also verifies the package based on its hash value. We use that token and hash value to input into our policy definition so I’ll output when I run the code.

 

 

 

New-GuestConfigurationPackage -Name InstallFeatures `
    -Configuration .\InstallFeatures\localhost.mof `
    -Type AuditAndSet -Force

$content = Publish-GuestConfigurationPackage -Path .\InstallFeatures\InstallFeatures.zip `
    -ResourceGroupName $resourceGroupName `
    -StorageAccountName $storageAccountName -StorageContainerName dsc -Force | ForEach-Object ContentUri

Write-Output "$content"
Write-Output $(Get-FileHash .\InstallFeatures\InstallFeatures.zip).Hash

 

 

 

Policy Definition

To remediate resources we need an Azure Policy definition and the GuestConfiguration module helps you do this. For the example here I used the code below to create the policy but then I have modified it to use the tag values as input to the guest assignment. The code is provided for you information only, you should deploy the policy in the policies folder. Have a look at DeployIfNotExists.json and update the content URI and hash value with the outputs from before.

 

 

 

$policyDefinition = Get-Content -Path .\policies\DeployIfNotExists.json | ConvertFrom-Json 

$policyDefinition.properties.metadata.guestConfiguration.contentHash = $hash
$policyDefinition.properties.policyRule.then.details.existenceCondition.allOf[1].equals = $hash
$policyDefinition.properties.policyRule.then.details.deployment.properties.parameters.contentHash.value = $hash

$policyDefinition.properties.metadata.guestConfiguration.contentUri = $content
$policyDefinition.properties.policyRule.then.details.deployment.properties.parameters.contentUri.value = $content

$policyDefinition | ConvertTo-Json -Depth 100 | Out-File .\policies\DeployIfNotExists.json -Force

 

 

 

The final step is to publish the policy to Azure – again the GuestConfiguration module takes care of this. If you want the policy published to a different scope you may have add the ManagementGroupName parameter.

 

 

 

Publish-GuestConfigurationPolicy -Path .\policies

 

 

 

Testing the Policy and Configuration

Now we have a package published to a storage account, and an Azure policy ready to start checking compliance, first step is to build a virtual machine in the resource group where the Guest Configuration policy was deployed before.

 

Check after a few minutes of deploying, but the Guest Configuration extension should be deployed by that policy.

pic3.png

Now to test the configuration policy – I’ve applied a tag to that virtual machine with a comma separated list of the Windows features that I want installed.

pic4.png

I can now create a policy assignment for the new policy and assign it to the resource group. I don’t need to specify any parameters, but I do need to create the managed identity when assigning so the policy has permission to deploy the Guest Assignment resource.

After I’ve deployed the policy and used Start-AzPolicyComplianceScan to trigger an evaluation the resource is going to return as non-compliant.

pic5.png

When I check on the details about why this is non-compliant I can see something really interesting – there is a field called parameterHash which must match the target value. If I take that value and decode the base64 value in there – I can see that it has taken the value of the FeatureName tag and is going to use that as the input parameter to the Guest Assignment object.

pic6.pngpic7.png

If you follow through the object which gets deployed via the policy, you can trace how these tag values end up being applied in the configuration.

 

All that is left to do now is to create a remediation task to correct the object.

pic8.png

The remediation task will go and deploy a resource called a Guest Assignment. It will contain all the details for the virtual machine to use including the URI for the package, the content hash and of course the parameter values which we supplied via the tag which will be passed to the DSC class.

pic9.png

DSC runs on a timer – the virtual machine is polling Azure looking for Guest Assignment resources assigned to itself – it authenticates using its managed identity to do this. When it finds an assigned resource it will download the zip file and extract it. The DSC agent then uses the Test and Set methods of the DSC resource to modify the virtual machine, in this case it runs Install-WindowsFeature to add the features specified in the tag.

 

Any success or failure is fed back to the Guest Assignment object which in turn is evaluated by the policy. So basically if the Guest Assignment object shows as non-compliant the policy will reflect that. It is important to understand that the policy is checking the assignment object and not the virtual machine itself.

 

There is more information on which log files you can examine to troubleshoot how Guest Configuration works – keep in mind that it is still in preview.

 

After a few minutes (the time it took to write the paragraphs above) – I can check the settings using a Run Command. Both roles are now installed.

pic10.png

So that is how I’ve been able to use Guest Configuration to dynamically manage settings within a virtual machine.

 

Just a couple of caveats about doing this:

  • Many resources may not work out of the box with DSC version 3. It uses PowerShell Core so modules which rely on Windows PowerShell modules (e.g. ServerManager, Networking) may not work. This is why I am using a custom class based resource (available in my GitHub repository)
  • The DSC resource in this demo isn’t production ready – e.g. it won’t know how to remove features and doesn’t give meaningful information when it runs the Get method. If I get time to fix it I’ll update this blog.
  • If you have issues raise an issue in the GitHub repo and I’ll see if I can help.
  • My tests are small in a clean environment so ensure that you test appropriately.

Disclaimer

The sample scripts are not supported under any Microsoft standard support program or service. The sample scripts are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility of such damages.

1 Comment
%3CLINGO-SUB%20id%3D%22lingo-sub-2836139%22%20slang%3D%22en-US%22%3EAzure%20Policy%20Guest%20Configuration%20%E2%80%93%20Using%20Tags%20for%20Configuration%20of%20Features%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2836139%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20preview%20for%20being%20able%20to%20audit%20and%20correct%20settings%20inside%20of%20a%20virtual%20machine%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fgovernance%2Fpolicy%2Fconcepts%2Fguest-configuration%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Policy%20Guest%20Configuration%3C%2FA%3E%20is%20available%20now%2C%20this%20post%20explores%20deploying%20settings%20into%20the%20virtual%20machine.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERecently%20on%20a%20POC%20with%20a%20customer%20we%20looked%20at%20configuring%20Windows%20Features%20using%20Guest%20Configuration.%20The%20ask%20was%20if%20a%20virtual%20machine%20could%20have%20the%20required%20features%20installed%20based%20on%20the%20value%20of%20a%20tag.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20Guest%20Configuration%20has%20a%20nice%20feature%20where%20it%20can%20take%20in%20parameters%20and%20consume%20these%20as%20part%20of%20the%20configuration%20it%20should%20be%20possible%20to%20have%20the%20value%20of%20these%20parameters%20come%20from%20something%20such%20as%20a%20tag%20which%20Azure%20Policy%20understands.%20Let%E2%80%99s%20go%20through%20the%20steps%20involved%20in%20completing%20this.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBefore%20I%20start%20%E2%80%93%20this%20solution%20works%20ok%20in%20my%20environment%2C%20but%20the%20DSC%20resources%20used%20are%20considered%20experimental%20so%20before%20deploying%20make%20sure%20you%20do%20your%20due%20diligence!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--2122559633%22%20id%3D%22toc-hId--2096666331%22%20id%3D%22toc-hId--2096666331%22%20id%3D%22toc-hId--2096666331%22%3EGetting%20Started%3C%2FH3%3E%0A%3CP%3EAzure%20Guest%20Configuration%20Policy%20is%20based%20on%20DSC%20version%203%20which%20is%20designed%20to%20run%20on%20PowerShell%207%20so%20you%20should%20have%20that%20installed.%20If%20you%20need%20help%20setting%20up%20the%20development%20environment%20you%20can%20follow%20the%20instructions%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fgovernance%2Fpolicy%2Fhow-to%2Fguest-configuration-create-setup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20or%20just%20see%20below.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fanwather%2FAPGC-WinFeatures%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EYou%20can%20clone%20these%20files%20from%20my%20GitHub%20repository%3C%2FA%3E%20%E2%80%93%20all%20the%20script%20examples%20are%20included%20in%20the%20files%20you%20download.%3C%2FP%3E%0A%3CP%3EInstall%20the%20GuestConfiguration%20and%20PsDscResources%20modules%20%E2%80%93%20these%20enable%20us%20to%20build%20the%20package%20which%20is%20going%20to%20be%20used%20by%20the%20policy.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EInstall-Module%20GuestConfiguration%20-Verbose%20-Force%0AInstall-Module%20PSDscResources%20-Verbose%20-Force%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20will%20also%20need%20to%20create%20an%20Azure%20Storage%20Account%20to%20hold%20the%20package%2C%20the%20virtual%20machine%20should%20have%20network%20access%20to%20be%20able%20to%20download%20from%20this%20account.%20You%20can%20use%20PowerShell%20to%20create%20a%20new%20resource%20group%20and%20storage%20account.%20Remember%20to%20update%20the%20names%20and%20locations%20to%20suit%20your%20subscription.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EConnect-AzAccount%0A%0A%24resourceGroupName%20%3D%20%22resource%20group%20name%22%20%23%20Update%20with%20your%20own%20details%0A%24storageAccountName%20%3D%20%22storage%20account%20name%22%20%23%20Update%20with%20your%20own%20details%0A%24location%20%3D%20%22australiaeast%22%20%23%20Update%20with%20your%20own%20details%0A%0ANew-AzResourceGroup%20-Location%20%24location%20-Name%20%24resourceGroupName%20-Force%0ANew-AzStorageAccount%20-ResourceGroupName%20%24resourceGroupName%20%60%0A%20%20%20%20-StorageAccountName%20%24storageAccountName%20%60%0A%20%20%20%20-Location%20%24location%20%60%0A%20%20%20%20-SkuName%20Standard_LRS%20%60%0A%20%20%20%20-Kind%20StorageV2%20%60%0A%20%20%20%20-EnableHttpsTrafficOnly%20%24true%20%60%0A%20%20%20%20-MinimumTlsVersion%20TLS1_2%0A%24ctx%20%3D%20(Get-AzStorageAccount%20-ResourceGroupName%20%24resourceGroupName%20-Name%20%24storageAccountName).Context%0ANew-AzStorageContainer%20-Name%20dsc%20-Context%20%24ctx%20-Permission%20Off%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMachines%20which%20are%20going%20to%20be%20configured%20to%20use%20Guest%20Configuration%20will%20also%20need%20to%20have%20the%20extension%20automatically%20installed.%20To%20do%20that%20we%20assign%20the%20%E2%80%9C%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fgovernance%2Fpolicy%2Fsamples%2Fbuilt-in-policies%23guest-configuration%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EDeploy%20prerequisites%20to%20enable%20Guest%20Configuration%20policies%20on%20virtual%20machines%3C%2FA%3E%E2%80%9D%20built-in%20policy%20to%20the%20resource%20group.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24assignment%20%3D%20New-AzPolicyAssignment%20-Name%20deployGCPre%20%60%0A%20%20%20%20-Location%20%24location%20%60%0A%20%20%20%20-Scope%20(Get-AzResourceGroup%20-Name%20%24resourceGroupName).ResourceId%20%60%0A%20%20%20%20-PolicySetDefinition%20(Get-AzPolicySetDefinition%20-Id%20'%2Fproviders%2FMicrosoft.Authorization%2FpolicySetDefinitions%2F12794019-7a00-42cf-95c2-882eed337cc8')%20%60%0A%20%20%20%20-AssignIdentity%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%2C%20we%20assign%20permission%20to%20the%20policy%20to%20be%20able%20to%20deploy%20the%20resources%20needed%20for%20Guest%20Configuration.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ENew-AzRoleAssignment%20-Scope%20(Get-AzResourceGroup%20-Name%20%24resourceGroupName).ResourceId%20%60%0A%20%20%20%20-RoleDefinitionName%20'Contributor'%20%60%0A%20%20%20%20-ObjectId%20%24assignment.Identity.principalId%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20files%20cloned%20from%20GitHub%20there%20is%20a%20folder%20called%20%3CSTRONG%3E%3CEM%3EcFeatureSet%3C%2FEM%3E%3C%2FSTRONG%3E.%20It%20is%20a%20DSC%20resource%20which%20allows%20you%20to%20install%20Windows%20Features%20%E2%80%93%20it%20must%20be%20copied%20to%20one%20of%20the%20PowerShell%20module%20locations%20for%20PowerShell%207%20(you%20can%20check%20the%20value%20of%20%24env%3APSModulePath%20to%20find%20one%20of%20the%20locations).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ECopy-Item%20.%5CcFeatureSet%20%24env%3APSModulePath.Split(%22%3B%22)%5B0%5D%20-Force%20-Recurse%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-364953200%22%20id%3D%22toc-hId-390846502%22%20id%3D%22toc-hId-390846502%22%20id%3D%22toc-hId-390846502%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1442501263%22%20id%3D%22toc-hId--1416607961%22%20id%3D%22toc-hId--1416607961%22%20id%3D%22toc-hId--1416607961%22%3EDSC%20Configuration%3C%2FH3%3E%0A%3CP%3EIf%20you%20have%20used%20PowerShell%20DSC%20before%20this%20bit%20is%20easy%20%E2%80%93%20we%20create%20a%20DSC%20configuration%20to%20install%20some%20features%20using%20the%20custom%20module.%20The%20different%20part%20if%20how%20we%20input%20the%20parameters.%20When%20generating%20the%20MOF%20file%2C%20it%20doesn%E2%80%99t%20matter%20what%20value%20we%20put%20in%20for%20the%20feature%20name%20value%20as%20it%20is%20going%20to%20be%20replaced%20by%20the%20tag%20values%20in%20our%20policy.%20This%20is%20why%20I%20have%20just%20put%20its%20value%20as%20%E2%80%9Creplaced%E2%80%9D%20in%20the%20configuration.%3C%2FP%3E%0A%3CP%3EThe%20file%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fanwather%2FAPGC-WinFeatures%2Fblob%2Fmain%2Fconfiguration.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Econfiguration.ps1%3C%2FA%3E%20contains%20a%20simple%20configuration%20%E2%80%93%20you%20can%20execute%20it%20and%20it%20will%20generate%20the%20MOF%20file%20for%20us.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EConfiguration%20InstallFeatures%20%7B%0A%20%20%20%20Import-DscResource%20-ModuleName%20PSDscResources%0A%20%20%20%20Import-DscResource%20-ModuleName%20cFeatureSet%0A%0A%20%20%20%20Node%20localhost%20%7B%0A%20%20%20%20%20%20%20%20cFeatureSet%20features%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20FeatureName%20%3D%20%22replaced%22%0A%20%20%20%20%20%20%20%20%20%20%20%20Ensure%20%3D%20%22Present%22%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%0AInstallFeatures%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%20My%20VS%20Code%20and%20PowerShell%20wasn%E2%80%99t%20playing%20nice%20with%20the%20custom%20module%20%E2%80%93%20the%20simple%20fix%20was%20to%20run%20the%20above%20code%20using%20PowerShell%205.1%20which%20generated%20the%20MOF%20file%20for%20me.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20open%20the%20MOF%20file%20it%20should%20look%20like%20below%20%E2%80%93%20note%20how%20the%20%E2%80%9Creplaced%E2%80%9D%20word%20is%20still%20in%20there.%20For%20DSC%20this%20is%20normally%20not%20how%20it%20works%20but%20APGC%20is%20special.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic1.png%22%20style%3D%22width%3A%20351px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316641iADB74C4E5EAE4F65%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic1.png%22%20alt%3D%22pic1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1045011570%22%20id%3D%22toc-hId-1070904872%22%20id%3D%22toc-hId-1070904872%22%20id%3D%22toc-hId-1070904872%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--762442893%22%20id%3D%22toc-hId--736549591%22%20id%3D%22toc-hId--736549591%22%20id%3D%22toc-hId--736549591%22%3EGenerate%20the%20Package%3C%2FH3%3E%0A%3CP%3EThe%20GuestConfiguration%20module%20makes%20the%20next%20part%20easy%2C%20when%20you%20execute%20the%20code%20below%20it%20creates%20a%20zip%20file%20with%20the%20MOF%20file%20and%20all%20required%20modules.%20This%20gets%20uploaded%20to%20the%20storage%20account%20created%20earlier%20and%20a%20SAS%20token%20is%20generated.%20The%20virtual%20machine%20uses%20this%20SAS%20token%20to%20access%20the%20package%20and%20download%20it%2C%20it%20also%20verifies%20the%20package%20based%20on%20its%20hash%20value.%20We%20use%20that%20token%20and%20hash%20value%20to%20input%20into%20our%20policy%20definition%20so%20I%E2%80%99ll%20output%20when%20I%20run%20the%20code.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ENew-GuestConfigurationPackage%20-Name%20InstallFeatures%20%60%0A%20%20%20%20-Configuration%20.%5CInstallFeatures%5Clocalhost.mof%20%60%0A%20%20%20%20-Type%20AuditAndSet%20-Force%0A%0A%24content%20%3D%20Publish-GuestConfigurationPackage%20-Path%20.%5CInstallFeatures%5CInstallFeatures.zip%20%60%0A%20%20%20%20-ResourceGroupName%20%24resourceGroupName%20%60%0A%20%20%20%20-StorageAccountName%20%24storageAccountName%20-StorageContainerName%20dsc%20-Force%20%7C%20ForEach-Object%20ContentUri%0A%0AWrite-Output%20%22%24content%22%0AWrite-Output%20%24(Get-FileHash%20.%5CInstallFeatures%5CInstallFeatures.zip).Hash%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1725069940%22%20id%3D%22toc-hId-1750963242%22%20id%3D%22toc-hId-1750963242%22%20id%3D%22toc-hId-1750963242%22%3EPolicy%20Definition%3C%2FH3%3E%0A%3CP%3ETo%20remediate%20resources%20we%20need%20an%20Azure%20Policy%20definition%20and%20the%20GuestConfiguration%20module%20helps%20you%20do%20this.%20For%20the%20example%20here%20I%20used%20the%20code%20below%20to%20create%20the%20policy%20but%20then%20I%20have%20modified%20it%20to%20use%20the%20tag%20values%20as%20input%20to%20the%20guest%20assignment.%20The%20code%20is%20provided%20for%20you%20information%20only%2C%20you%20should%20deploy%20the%20policy%20in%20the%20policies%20folder.%20Have%20a%20look%20at%20DeployIfNotExists.json%20and%20update%20the%20content%20URI%20and%20hash%20value%20with%20the%20outputs%20from%20before.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24policyDefinition%20%3D%20Get-Content%20-Path%20.%5Cpolicies%5CDeployIfNotExists.json%20%7C%20ConvertFrom-Json%20%0A%0A%24policyDefinition.properties.metadata.guestConfiguration.contentHash%20%3D%20%24hash%0A%24policyDefinition.properties.policyRule.then.details.existenceCondition.allOf%5B1%5D.equals%20%3D%20%24hash%0A%24policyDefinition.properties.policyRule.then.details.deployment.properties.parameters.contentHash.value%20%3D%20%24hash%0A%0A%24policyDefinition.properties.metadata.guestConfiguration.contentUri%20%3D%20%24content%0A%24policyDefinition.properties.policyRule.then.details.deployment.properties.parameters.contentUri.value%20%3D%20%24content%0A%0A%24policyDefinition%20%7C%20ConvertTo-Json%20-Depth%20100%20%7C%20Out-File%20.%5Cpolicies%5CDeployIfNotExists.json%20-Force%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20final%20step%20is%20to%20publish%20the%20policy%20to%20Azure%20%E2%80%93%20again%20the%20GuestConfiguration%20module%20takes%20care%20of%20this.%20If%20you%20want%20the%20policy%20published%20to%20a%20different%20scope%20you%20may%20have%20add%20the%20ManagementGroupName%20parameter.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EPublish-GuestConfigurationPolicy%20-Path%20.%5Cpolicies%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--82384523%22%20id%3D%22toc-hId--56491221%22%20id%3D%22toc-hId--56491221%22%20id%3D%22toc-hId--56491221%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1889838986%22%20id%3D%22toc-hId--1863945684%22%20id%3D%22toc-hId--1863945684%22%20id%3D%22toc-hId--1863945684%22%3ETesting%20the%20Policy%20and%20Configuration%3C%2FH3%3E%0A%3CP%3ENow%20we%20have%20a%20package%20published%20to%20a%20storage%20account%2C%20and%20an%20Azure%20policy%20ready%20to%20start%20checking%20compliance%2C%20first%20step%20is%20to%20build%20a%20virtual%20machine%20in%20the%20resource%20group%20where%20the%20Guest%20Configuration%20policy%20was%20deployed%20before.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheck%20after%20a%20few%20minutes%20of%20deploying%2C%20but%20the%20Guest%20Configuration%20extension%20should%20be%20deployed%20by%20that%20policy.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic3.png%22%20style%3D%22width%3A%20669px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316649iD696A1613352D3A4%2Fimage-dimensions%2F669x119%3Fv%3Dv2%22%20width%3D%22669%22%20height%3D%22119%22%20role%3D%22button%22%20title%3D%22pic3.png%22%20alt%3D%22pic3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENow%20to%20test%20the%20configuration%20policy%20%E2%80%93%20I%E2%80%99ve%20applied%20a%20tag%20to%20that%20virtual%20machine%20with%20a%20comma%20separated%20list%20of%20the%20Windows%20features%20that%20I%20want%20installed.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic4.png%22%20style%3D%22width%3A%20348px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316650i08061A668212B5E7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic4.png%22%20alt%3D%22pic4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20can%20now%20create%20a%20policy%20assignment%20for%20the%20new%20policy%20and%20assign%20it%20to%20the%20resource%20group.%20I%20don%E2%80%99t%20need%20to%20specify%20any%20parameters%2C%20but%20I%20do%20need%20to%20create%20the%20managed%20identity%20when%20assigning%20so%20the%20policy%20has%20permission%20to%20deploy%20the%20Guest%20Assignment%20resource.%3C%2FP%3E%0A%3CP%3EAfter%20I%E2%80%99ve%20deployed%20the%20policy%20and%20used%20Start-AzPolicyComplianceScan%20to%20trigger%20an%20evaluation%20the%20resource%20is%20going%20to%20return%20as%20non-compliant.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic5.png%22%20style%3D%22width%3A%20601px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316651i2B3E78A15B922DB9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic5.png%22%20alt%3D%22pic5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWhen%20I%20check%20on%20the%20details%20about%20why%20this%20is%20non-compliant%20I%20can%20see%20something%20really%20interesting%20%E2%80%93%20there%20is%20a%20field%20called%20parameterHash%20which%20must%20match%20the%20target%20value.%20If%20I%20take%20that%20value%20and%20decode%20the%20base64%20value%20in%20there%20%E2%80%93%20I%20can%20see%20that%20it%20has%20taken%20the%20value%20of%20the%20FeatureName%20tag%20and%20is%20going%20to%20use%20that%20as%20the%20input%20parameter%20to%20the%20Guest%20Assignment%20object.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic6.png%22%20style%3D%22width%3A%20558px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316652iEB4A18ED73921095%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic6.png%22%20alt%3D%22pic6.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic7.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316653i265B0956EB2C521E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic7.png%22%20alt%3D%22pic7.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20follow%20through%20the%20object%20which%20gets%20deployed%20via%20the%20policy%2C%20you%20can%20trace%20how%20these%20tag%20values%20end%20up%20being%20applied%20in%20the%20configuration.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAll%20that%20is%20left%20to%20do%20now%20is%20to%20create%20a%20remediation%20task%20to%20correct%20the%20object.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic8.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316654i1A21B47776CA3ABB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic8.png%22%20alt%3D%22pic8.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20remediation%20task%20will%20go%20and%20deploy%20a%20resource%20called%20a%20Guest%20Assignment.%20It%20will%20contain%20all%20the%20details%20for%20the%20virtual%20machine%20to%20use%20including%20the%20URI%20for%20the%20package%2C%20the%20content%20hash%20and%20of%20course%20the%20parameter%20values%20which%20we%20supplied%20via%20the%20tag%20which%20will%20be%20passed%20to%20the%20DSC%20class.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic9.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316655iF79ED16B436AE5B7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic9.png%22%20alt%3D%22pic9.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EDSC%20runs%20on%20a%20timer%20%E2%80%93%20the%20virtual%20machine%20is%20polling%20Azure%20looking%20for%20Guest%20Assignment%20resources%20assigned%20to%20itself%20%E2%80%93%20it%20authenticates%20using%20its%20managed%20identity%20to%20do%20this.%20When%20it%20finds%20an%20assigned%20resource%20it%20will%20download%20the%20zip%20file%20and%20extract%20it.%20The%20DSC%20agent%20then%20uses%20the%20Test%20and%20Set%20methods%20of%20the%20DSC%20resource%20to%20modify%20the%20virtual%20machine%2C%20in%20this%20case%20it%20runs%20Install-WindowsFeature%20to%20add%20the%20features%20specified%20in%20the%20tag.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAny%20success%20or%20failure%20is%20fed%20back%20to%20the%20Guest%20Assignment%20object%20which%20in%20turn%20is%20evaluated%20by%20the%20policy.%20So%20basically%20if%20the%20Guest%20Assignment%20object%20shows%20as%20non-compliant%20the%20policy%20will%20reflect%20that.%20It%20is%20important%20to%20understand%20that%20the%20policy%20is%20checking%20the%20assignment%20object%20and%20not%20the%20virtual%20machine%20itself.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20is%20more%20information%20on%20which%20log%20files%20you%20can%20examine%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fgovernance%2Fpolicy%2Fconcepts%2Fguest-configuration%23troubleshooting-guest-configuration%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Etroubleshoot%20how%20Guest%20Configuration%20works%3C%2FA%3E%20%E2%80%93%20keep%20in%20mind%20that%20it%20is%20still%20in%20preview.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20a%20few%20minutes%20(the%20time%20it%20took%20to%20write%20the%20paragraphs%20above)%20%E2%80%93%20I%20can%20check%20the%20settings%20using%20a%20Run%20Command.%20Both%20roles%20are%20now%20installed.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pic10.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316656i4ACB4C5D9D7FD458%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pic10.png%22%20alt%3D%22pic10.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESo%20that%20is%20how%20I%E2%80%99ve%20been%20able%20to%20use%20Guest%20Configuration%20to%20dynamically%20manage%20settings%20within%20a%20virtual%20machine.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJust%20a%20couple%20of%20caveats%20about%20doing%20this%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EMany%20resources%20may%20not%20work%20out%20of%20the%20box%20with%20DSC%20version%203.%20It%20uses%20PowerShell%20Core%20so%20modules%20which%20rely%20on%20Windows%20PowerShell%20modules%20(e.g.%20ServerManager%2C%20Networking)%20may%20not%20work.%20This%20is%20why%20I%20am%20using%20a%20custom%20class%20based%20resource%20(available%20in%20my%20GitHub%20repository)%3C%2FLI%3E%0A%3CLI%3EThe%20DSC%20resource%20in%20this%20demo%20isn%E2%80%99t%20production%20ready%20%E2%80%93%20e.g.%20it%20won%E2%80%99t%20know%20how%20to%20remove%20features%20and%20doesn%E2%80%99t%20give%20meaningful%20information%20when%20it%20runs%20the%20Get%20method.%20If%20I%20get%20time%20to%20fix%20it%20I%E2%80%99ll%20update%20this%20blog.%3C%2FLI%3E%0A%3CLI%3EIf%20you%20have%20issues%20raise%20an%20issue%20in%20the%20GitHub%20repo%20and%20I%E2%80%99ll%20see%20if%20I%20can%20help.%3C%2FLI%3E%0A%3CLI%3EMy%20tests%20are%20small%20in%20a%20clean%20environment%20so%20ensure%20that%20you%20test%20appropriately.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EDisclaimer%3C%2FP%3E%0A%3CP%3EThe%20sample%20scripts%20are%20not%20supported%20under%20any%20Microsoft%20standard%20support%20program%20or%20service.%20The%20sample%20scripts%20are%20provided%20AS%20IS%20without%20warranty%20of%20any%20kind.%20Microsoft%20further%20disclaims%20all%20implied%20warranties%20including%2C%20without%20limitation%2C%20any%20implied%20warranties%20of%20merchantability%20or%20of%20fitness%20for%20a%20particular%20purpose.%20The%20entire%20risk%20arising%20out%20of%20the%20use%20or%20performance%20of%20the%20sample%20scripts%20and%20documentation%20remains%20with%20you.%20In%20no%20event%20shall%20Microsoft%2C%20its%20authors%2C%20or%20anyone%20else%20involved%20in%20the%20creation%2C%20production%2C%20or%20delivery%20of%20the%20scripts%20be%20liable%20for%20any%20damages%20whatsoever%20(including%2C%20without%20limitation%2C%20damages%20for%20loss%20of%20business%20profits%2C%20business%20interruption%2C%20loss%20of%20business%20information%2C%20or%20other%20pecuniary%20loss)%20arising%20out%20of%20the%20use%20of%20or%20inability%20to%20use%20the%20sample%20scripts%20or%20documentation%2C%20even%20if%20Microsoft%20has%20been%20advised%20of%20the%20possibility%20of%20such%20damages.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2836139%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20preview%20for%20being%20able%20to%20audit%20and%20correct%20settings%20inside%20of%20a%20virtual%20machine%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fgovernance%2Fpolicy%2Fconcepts%2Fguest-configuration%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20Policy%20Guest%20Configuration%3C%2FA%3E%20is%20available%20now%2C%20this%20post%20explores%20deploying%20settings%20into%20the%20virtual%20machine.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2836139%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAnthonyWatherston%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2912644%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Policy%20Guest%20Configuration%20%E2%80%93%20Using%20Tags%20for%20Configuration%20of%20Features%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2912644%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20I%20suggest%20that%20this%20feature%20be%20renamed%20to%20something%20like%20Guest%20Machine%20Configuration%20just%20to%20avoid%20confusion%20with%20features%20that%20references%20Guest%20Users.%20This%20is%20just%20a%20simple%20clarification%20issue%20but%20I%20think%20it's%20a%20safe%20to%20assume%20that%20most%20admins%2C%20when%20they%20see%20the%20word%20Guest%2C%20will%20automatically%20assume%20it%20means%20Guest%20users.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Nov 01 2021 02:31 AM
Updated by: