Version set to true
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- azure, powershell
- Domain
- cloud
Research direction
Start with the New-GuestConfigurationPolicy command and reproduce the issue using the provided arguments, then inspect the generated out.json guestConfiguration.version value. Trace the cmdlet's handling of PolicyVersion and compare it with the expected 1.0.0 format. Done means the generated policy preserves the supplied version and can be used for Azure deployment.
Written by the indexing model from the issue text.
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

- Dominant language
- PowerShell
- Stars
- 8
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/GuestConfiguration
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Azure/GuestConfiguration#322 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Azure/GuestConfiguration#320 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Azure/GuestConfiguration#319 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Azure/GuestConfiguration#312 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Azure/GuestConfiguration#308 · 1 comment ·
All issues in Azure/GuestConfiguration
Similar issues
-
Add a check for GitHub flexible federated identity credentials missing an immutable repository claimPossibly taken @harshit3355 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
bridgecrewio/checkov#7714 ·
Maintainers usually reply within 1 day
-
alicloud_nas_file_system: support Agentic storage typePossibly taken @BaoZhiFei claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aliyun/terraform-provider-alicloud#10730 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gristlabs/grist-core#2626 · 1 comment ·
Maintainers usually reply within 1 day
-
Missing SubnetID for OpenStack LB pool memberPossibly taken @kron4eg claimed this today. Openkind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
kubermatic/kubeone#4241 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day