Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetDefaultLanguage.ps1 Error with -Language input #792

Open
rcAlexterNeuzen opened this issue Jul 17, 2024 · 1 comment
Open

SetDefaultLanguage.ps1 Error with -Language input #792

rcAlexterNeuzen opened this issue Jul 17, 2024 · 1 comment

Comments

@rcAlexterNeuzen
Copy link

in SetDefaultLanguage.ps1 at rule 154 it is referring to $languagecode but if the language is already installed, this string will be empty. Packer logs show:

[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:22 ui: azure-arm: *** Starting AVD AIB CUSTOMIZER PHASE: Set default Language ***
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:24 ui: azure-arm:
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:24 ui: azure-arm: TaskPath TaskName State
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:24 ui: azure-arm: -------- -------- -----
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:24 ui: azure-arm: \Microsoft\Windows\LanguageComponentsInstal... Installation Disabled
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:24 ui: azure-arm: \Microsoft\Windows\LanguageComponentsInstal... ReconcileLanguageResources Disabled
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 packer-plugin-azure plugin: 2024/07/10 09:30:25 [INFO] command 'powershell -executionpolicy bypass -file "C:/Windows/Temp/packer-elevated-shell-668e5495-8087-f1de-1e21-d5c34530f737.ps1"' exited with code: 0
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 packer-plugin-azure plugin: 2024/07/10 09:30:25 [INFO] RPC endpoint: Communicator ended with: 0
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 [INFO] 1538 bytes written for 'stdout'
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 [INFO] 0 bytes written for 'stderr'
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 ui: azure-arm: *** AVD AIB CUSTOMIZER PHASE : Set default language - Language pack for nl-NL is installed already***
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 [INFO] RPC client: Communicator ended with: 0
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 [INFO] RPC endpoint: Communicator ended with: 0
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 packer-provisioner-powershell plugin: [INFO] 1538 bytes written for 'stdout'
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 packer-provisioner-powershell plugin: [INFO] 0 bytes written for 'stderr'
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 ui: azure-arm: *** AVD AIB CUSTOMIZER PHASE: Set default Language - Exception occurred***
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 packer-provisioner-powershell plugin: [INFO] RPC client: Communicator ended with: 0
[611cec67-e529-47b8-89a9-021fca6ccdde] PACKER 2024/07/10 09:30:25 ui: azure-arm: System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'Language' because it is null.

@marshalexander99
Copy link

Getting the same error, looks like there's a variable used $languagecode which is never set anywhere beforehand.
Seems like something that should have been picked up before testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants