Open Hopminonther opened 3 years ago
Hi, when changing the custom image to use another language, and using this to deploy using the provided pipeline, the DSC deployment shows an error:
2020-09-28T09:17:57.2192573Z [91mNew-AzResourceGroupDeployment: [0m/home/vsts/work/1/s/SharedDeploymentFunctions/Invoke-GeneralDeployment.ps1:76 2020-09-28T09:17:57.2193197Z [96mLine | 2020-09-28T09:17:57.2193788Z [96m 76 | [0m … eployment = [96mNew-AzResourceGroupDeployment @DeploymentInputs -Resource[0m … 2020-09-28T09:17:57.2201120Z [96m | [91m ~~~~~~~~~~~~~ 2020-09-28T09:17:57.2202011Z [91m[96m | [91m09:17:57 - Resource 2020-09-28T09:17:57.2202765Z [96m | [91mMicrosoft.Compute/virtualMachines/extensions 2020-09-28T09:17:57.2203525Z [96m | [91m'QS-WVD-VM001/windowsDsc' failed with message '{ "status": 2020-09-28T09:17:57.2204266Z [96m | [91m"Failed", "error": { "code": 2020-09-28T09:17:57.2205003Z [96m | [91m"ResourceDeploymentFailure", "message": "The resource 2020-09-28T09:17:57.2205784Z [96m | [91moperation completed with terminal provisioning state 2020-09-28T09:17:57.2206516Z [96m | [91m'Failed'.", "details": [ { "code": 2020-09-28T09:17:57.2207310Z [96m | [91m"VMExtensionProvisioningError", "message": "VM has 2020-09-28T09:17:57.2208076Z [96m | [91mreported a failure when processing extension 'windowsDsc'. 2020-09-28T09:17:57.2208821Z [96m | [91mError message: \"DSC Configuration 'AddSessionHost' completed 2020-09-28T09:17:57.2209605Z [96m | [91mwith error(s). Following are the first few: Importing module 2020-09-28T09:17:57.2210346Z [96m | [91mMSFT_ScriptResource failed with error - Cannot find the 2020-09-28T09:17:57.2211092Z [96m | [91mWindows PowerShell data file 'MSFT_ScriptResourceStrings.psd1' 2020-09-28T09:17:57.2211698Z [96m | [91min directory 2020-09-28T09:17:57.2213117Z [96m | [91m'C:\windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\DscResources\MSFT_ScriptResource\nl-NL\', or in any parent culture directories.\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot " } ] } }' 2020-09-28T09:17:57.2214188Z [0m 2020-09-28T09:17:57.2352018Z ##[error]PowerShell exited with code '1'. 2020-09-28T09:17:57.2367156Z ## Script Execution Complete 2020-09-28T09:17:57.2369628Z ##[section]Finishing: Deploy module [VirtualMachines] in [rg-WVD-CUR] via [WVDServiceConnection]
@Hopminonther Are you still facing this issue?
Hi, when changing the custom image to use another language, and using this to deploy using the provided pipeline, the DSC deployment shows an error:
2020-09-28T09:17:57.2192573Z [91mNew-AzResourceGroupDeployment: [0m/home/vsts/work/1/s/SharedDeploymentFunctions/Invoke-GeneralDeployment.ps1:76 2020-09-28T09:17:57.2193197Z [96mLine | 2020-09-28T09:17:57.2193788Z [96m 76 | [0m … eployment = [96mNew-AzResourceGroupDeployment @DeploymentInputs -Resource[0m … 2020-09-28T09:17:57.2201120Z [96m | [91m
~~~~~~~~~~~~~ 2020-09-28T09:17:57.2202011Z [91m[96m | [91m09:17:57 - Resource 2020-09-28T09:17:57.2202765Z [96m | [91mMicrosoft.Compute/virtualMachines/extensions 2020-09-28T09:17:57.2203525Z [96m | [91m'QS-WVD-VM001/windowsDsc' failed with message '{ "status": 2020-09-28T09:17:57.2204266Z [96m | [91m"Failed", "error": { "code": 2020-09-28T09:17:57.2205003Z [96m | [91m"ResourceDeploymentFailure", "message": "The resource 2020-09-28T09:17:57.2205784Z [96m | [91moperation completed with terminal provisioning state 2020-09-28T09:17:57.2206516Z [96m | [91m'Failed'.", "details": [ { "code": 2020-09-28T09:17:57.2207310Z [96m | [91m"VMExtensionProvisioningError", "message": "VM has 2020-09-28T09:17:57.2208076Z [96m | [91mreported a failure when processing extension 'windowsDsc'. 2020-09-28T09:17:57.2208821Z [96m | [91mError message: \"DSC Configuration 'AddSessionHost' completed 2020-09-28T09:17:57.2209605Z [96m | [91mwith error(s). Following are the first few: Importing module 2020-09-28T09:17:57.2210346Z [96m | [91mMSFT_ScriptResource failed with error - Cannot find the 2020-09-28T09:17:57.2211092Z [96m | [91mWindows PowerShell data file 'MSFT_ScriptResourceStrings.psd1' 2020-09-28T09:17:57.2211698Z [96m | [91min directory 2020-09-28T09:17:57.2213117Z [96m | [91m'C:\windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\DscResources\MSFT_ScriptResource\nl-NL\', or in any parent culture directories.\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot " } ] } }' 2020-09-28T09:17:57.2214188Z [0m 2020-09-28T09:17:57.2352018Z ##[error]PowerShell exited with code '1'. 2020-09-28T09:17:57.2367156Z ## Script Execution Complete 2020-09-28T09:17:57.2369628Z ##[section]Finishing: Deploy module [VirtualMachines] in [rg-WVD-CUR] via [WVDServiceConnection]