Azure / azure-libraries-for-net

Azure libraries for .Net
MIT License
380 stars 192 forks source link

[BUG] VirtualMachineScaleSets OSType always return Windows #620

Open Gaploid opened 5 years ago

Gaploid commented 5 years ago

Describe the bug Property OSType in Microsoft.Azure.Management.Compute.Fluent.VirtualMachineScaleSetImpl always returns "Windows" even if the scaleset based on Linux.

Code Snippet

var scaleset = AzureInstance.VirtualMachineScaleSets.GetById(ScaleSetId);
if (scaleset.OSType == Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemTypes.Windows) {
//Always true
}
nickzhums commented 4 years ago

@Gaploid are you still experiencing the issue ? let us know, thanks