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

Issue with [AzureFleet] / API Version [2024-11-01] LinuxConfiguration/WindowsConfiguration could not be explicitly set to null #1143

Open
1 task done
sinbai opened this issue Jan 13, 2025 · 0 comments

Comments

@sinbai
Copy link
Contributor

sinbai commented Jan 13, 2025

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:

LinuxConfiguration *LinuxConfiguration `json:"linuxConfiguration,omitempty"`

WindowsConfiguration in SDK model:

WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"`

References

No response

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

1 participant