Error publishing to Azure cloud service with osFamily = 5

I am trying to update my cloud service to use .NET 4.6. I change osFamily = "4" to osFamily = "5" in the .cscfg file as mentioned here: https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-guestos-update- matrix

Looking at my filesystem, I have this SDK version installed:

  • C: \ Program Files \ Microsoft SDK \ Azure.NET SDK \ v2.9

Looking at Web PI, I have set the following parameters:

  • VS Community 2105 with Azure SDK - 2.9.6
  • VS 2105 Community with Azure SDK - 3.0
  • Microsoft Azure SDK for .NET (VS 2015) - 2.9.6
  • Microsoft Azure SDK for .NET (VS 2015) - 3.0

I usually use Powershell cmdlets to deploy using New-AzureDeployment / Set-AzureDeployment from a build and deployment server. I will sometimes deploy from my desktop using powershell for testing.

If you leave osFamily = "4" unchanged and deployed with Powershell, everything works as expected.

If I use VS2015 and the Azure Publishing Application Tool for deployment, it succeeds as expected if I choose either osFamily = "4" or osFamily = "5".

Checking which module is being used:

C:\> (Get-Command Set-AzureDeployment).Module.Path
C:\Program Files\WindowsPowerShell\Modules\Azure\3.8.0\Azure.psm1

      

Running the Set-AzureDeployment deployment (considering deploying an existing package) gives me the following error:

Set-AzureDeployment : BadRequest : The OS family 5 you are trying to deploy is not supported by the SDK package. The SDK package supported OS families:3,4,1,2,98. Please try to deploy to a different operating system. To do this specify a different osFamily and/or osVersion in your .cscfg file.

      

I can't see which SDK the cmdlet is serving up against ... any ideas?

+3


source to share


1 answer


Try using the newer version 2.9 of Azure Authoring Tools.

I reproduced this issue with Azure Authoring Tools 2.9.1, but fixed it by updating to 2.9.5.3. In fact it is mentioned as being fixed in the release notes for Azure SDK '3.0' (download link) :



Visual Studio now supports deploying cloud services for OS family 5 (Windows Server 2016) virtual machines. For existing cloud services, you can change your settings to target the new OS family. when creating new cloud services, if you choose to create a service using .net 4.6 or higher, it will default to the OS Family 5 service. For more information, you can refer to the Family Family guest OS table.

+1


source







All Articles