Search code examples
azureazure-service-fabricazure-cli

Azure Service Fabric supported OS


Is it possible to get a list of Operating Systems supported by Azure Service Fabric cluster in the PowerShell or Azure CLI?

Azure CLI documentation

Official Azure CLI documentation provides list of available OS: --os {UbuntuServer1604, WindowsServer1709, WindowsServer1709withContainers, WindowsServer1803withContainers, WindowsServer1809withContainers, WindowsServer2012R2Datacenter, WindowsServer2016Datacenter, WindowsServer2016DatacenterwithContainers, WindowsServer2019Datacenter, WindowsServer2019DatacenterwithContainers}

Azure Portal

Portal has updated list of OS:

enter image description here

Service Fabric documentation

Official documentation provides a table of supported OS versions. link

Problems

The documentation looks outdated and it is difficult to determine the value of a parameter for the Azure CLI command from the parameter name.

I want to use "WindowsServer datacenter-core-1909-with-containers" but can't figure out the --os parameter value to achieve it.


Solution

  • Unfortunately, PowerShell and CLI both don't support OS WindowsServer datacenter-core-1909-with-containers, it is clear in the doc.

    For the latest powershell New-AzServiceFabricCluster:

    enter image description here

    For the latest CLI az sf cluster create:

    enter image description here