I am trying to update a cloud service to use .NET 4.6. I changing the osFamily="4" to osFamily="5" in the .cscfg file as specified here: https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-guestos-update-matrix
Looking at my file system I have this SDK version installed:
- C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.9
Looking at Web PI, I have these installed:
- VS Community 2105 with Azure SDK - 2.9.6
- VS Community 2105 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 normally use Powershell cmdlets to deploy using New-AzureDeployment/Set-AzureDeployment from a build & deployment server. I will occasionally deploy from my desktop using powershell for testing.
If I leave the osFamily="4" unchanged and deploy with Powershell everything works as expected.
If I use VS2015 and the Publish Azure Application tool to do the deployment it succeeds as expected if I choose either osFamily="4" or osFamily="5".
Checking which module is used:
C:\> (Get-Command Set-AzureDeployment).Module.Path
C:\Program Files\WindowsPowerShell\Modules\Azure\3.8.0\Azure.psm1
Running the deployment Set-AzureDeployment (given an existing package has been deployed) 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 don't see which SDK "package" the commandlet is complaining about...any ideas?