Azure / nxtools

Azure Automanage Machine Configuration Linux DSC resources
Other
13 stars 11 forks source link

Fix localization issue in LinuxLogAnalyticsAgentInstalled policy #11

Closed amitsara closed 2 years ago

amitsara commented 2 years ago

LinuxLogAnalyticsAgentInstalled policy package is failing with following error.

Error: Failed to Run Consistency for 'LinuxLogAnalyticsAgentInstalled' Error : Exception calling "Invoke" with "0" argument(s): "Exception calling ".ctor" with "1" argument(s): "Only the inva riant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name') en-US is an invalid culture identifier."" The property 'WorkspaceId' cannot be found on this object. Verify that the property exists and can be set. You cannot call a method on a null-valued expression. InvokeDscResource() failed. errorMessage:The PowerShell DSC resource with className:GC_LinuxLogAnalyticsAgent moduleName:nxtools moduleVersion:0.0.1 threw one or more non-terminating errors, while running the Get-DscResource functionality The PowerShell DSC resource with className:GC_LinuxLogAnalyticsAgent moduleName:nxtools moduleVersion:0.0.1 threw one or more non-terminating errors, while running the Get-DscResource functio nality

This is happening because of localized string. we dont support localization in linux guestconfiguration. removing it