Azure / Azure/GuestConfiguration

Version set to true

Open
#301 1 comment 0 reactions 0 assignees View on GitHub
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

![image](https://private-user-images.githubusercontent.com/19581593/362341238-5f48f83a-a9bd-49a1-887f-1b0015c8b378.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4NjMzODUsIm5iZiI6MTcyNDg2MzA4NSwicGF0aCI6Ii8xOTU4MTU5My8zNjIzNDEyMzgtNWY0OGY4M2EtYTliZC00OWExLTg4N2YtMWIwMDE1YzhiMzc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDE2MzgwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmNWJjZGRkNWQ1OGY3YjIwZGMxZGU0ZGI1YmQyY2UwMDZhMzEzMjM3NzJiODI2ZWUyN2RmNzZiOWI0YjRkNzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HqwqF-e04gAnoMGfU2fZO3OAbXWiN28vVIE2uREvofM)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.