Azure / Azure/GuestConfiguration
Version set to true
- Dominant language
- PowerShell
- Stars
- 8
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Originally raised in the PowerShell/PowerShell repo by @dxk3355 in issue https://github.com/PowerShell/PowerShell/issues/24221
Steps to reproduce
Create a guest configuration policy zip file and upload it to azure storage blob. Run the command below
New-GuestConfigurationPolicy -PolicyId (New-Guid).Guid -ContentUri 'YOUR_URI_HERE' -DisplayName 'DisplayName' -Description 'Description' -Path "out.json" -Platform "Windows" -PolicyVersion "1.0.0"
Expected behavior
The version number needs to be 1.0.0 or in a similar format, true is not acceptable to Azure for the zip file to be used. The deployments will fail with errors like
Actual behavior
The output json that is created has a the guestConfiguration block with the version set to True. But when this is copy and pasted into a new Azure Policy in the azure portal and then you attempt to deploy the deployments will fail.
{
"properties": {
"displayName": "DisplayName",
"policyType": "Custom",
"mode": "Indexed",
"description": "Description",
"metadata": {
"category": "Guest Configuration",
"version": "1.0.0",
"requiredProviders": [
"Microsoft.GuestConfiguration"
],
"guestConfiguration": {
"name": "RemoveGoogleChrome",
"version": "True",
"contentType": "Custom",
"contentUri": "YOUR_URI_HERE",
"contentHash": "GENERATED_HASH"
}
},
Error details
No response
Environment data
Name Value
---- -----
PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals

Contributor guide
Assessment
This issue has not been assessed yet.