Azure / GuestConfiguration

PowerShell module for creating, testing, and publishing custom Guest Configuration
MIT License
5 stars 2 forks source link

Unable to deploy Python #300

Open a8ree opened 2 weeks ago

a8ree commented 2 weeks ago

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)


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

a8ree commented 2 weeks ago

Updated post as incorrectly used the template and did not show detail - sorry!