Azure / Azure/GuestConfiguration

Unable to deploy Python

Open
#300 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

#### Details of the scenario you tried and the problem that is occurring

I am trying to distribute Python using the same pattern as I have successfully distributed other applications - but it is not working. I have tried running remediation tasks which complete successfully however when I run a
Get-GuestConfigurationPackageComplianceStatus against the package it continues to show as not compliant

Start-GuestConfigurationPackageRemediation when run locally will execute the install without issue

My configuration is below

As above, I can compile, create the package and policy without issue. It works when run locally

#### Verbose logs showing the problem
n/a
#### Suggested solution to the issue

#### The DSC configuration that is used to reproduce the issue (if applicable)
```powershell

Configuration Install
{
Import-DscResource -ModuleName Microsoft.WinGet.DSC

node localhost
{
WinGetPackage Python.Python.3.10
{
Id = 'Python.Python.3.10'
source = 'winget'
InstallMode = 'silent'
}

}
}

$appName = "Python3"
$version = "v1"
Install -OutputPath .\CompiledMOF\${appName}_${version}
```

#### The operating system the target node is running

Microsoft Windows [Version 10.0.22631.4037]

#### Version and build of PowerShell the target node is running

Name Value
---- -----
PSVersion 7.4.4
PSEdition Core
GitCommitId 7.4.4
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

#### Version of the module that was used

Name Version Path
---- ------- ----
GuestConfiguration 4.5.0 C:\Program Files\WindowsPowerShell\Modules\GuestConfiguration\4.5.0\GuestConfiguration.psd1

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.