-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Is there an existing issue for this?
- I have searched the existing issues
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Service Used
azurefleet
API Versions Used
2024-11-01
Description
For the Azure Fleet API, when creating mixed-mode VMSS with Linux (configured through the baseVirtualMachineProfile in ComputeProfile) and Windows (configured through virtualMachineProfileOverride in AdditionalLocationsProfile), requires that the LinuxConfiguration in virtualMachineProfileOverride must be explicitly set to null. This behavior has been confirmed by the service team and is by design. Similarly, if the OS roles are switched, the WindowsConfiguration in virtualMachineProfileOverride must also be explicitly set to null.
Currently, if LinuxConfiguration
is specified as nil
in the above situation, the Terraform SDK would omite empty this property, causing the API to return error "The value of parameter linuxConfiguration is invalid". The behavior of the Terraform SDK prevents the Azure Fleet Feature from being onboarded to Terraform.
Expected: SDK supports explicitly specifying LinuxConfiguration
/WindowsConfiguration
as null value.
LinuxConfigurationin SDK model:
go-azure-sdk/resource-manager/azurefleet/2024-11-01/fleets/model_virtualmachinescalesetosprofile.go
Line 12 in 62208b6
LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"` |
WindowsConfiguration in SDK model:
go-azure-sdk/resource-manager/azurefleet/2024-11-01/fleets/model_virtualmachinescalesetosprofile.go
Line 15 in 62208b6
WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` |
References
No response