Skip to content

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

@sinbai

Description

@sinbai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions