Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.48k stars 4.81k forks source link

How do I manage Cloud Services with the new REST client / AutoRest SDK? #2729

Closed daiplusplus closed 7 years ago

daiplusplus commented 7 years ago

The AutoRest branch in this repo no-longer includes the ServiceManagement client and types, only the ResourceManagement REST client, while it still exists in the master branch.

I appreciate that Cloud Services (HostedServices) are almost-deprecated and only accessible through the older ServiceManagement API, but there doesn't seem to be any maintained client for that API - NuGet has Microsoft.WindowsAzure.Management.Compute - which is based on the old Microsoft.WindowsAzure.* code instead of the newer Microsoft.Azure.* code.

I see the Azure PowerShell module still references the older Microsoft.WindowsAzure.Management.Compute assembly for its tasks - what will the PowerShell module - and my own projects - use to manage Cloud Services if they want to use the latest SDKs?

hovsepm commented 7 years ago

@Jehoel Azure PowerShell has two sets of modules as well. RDFE aka ServiceManagement cmdlets and ARM aka ResourceManager cmdlets. You can browse them here - https://github.com/Azure/azure-powershell/tree/dev/src

hovsepm commented 7 years ago

@Jehoel your usage depends on your scenarios, but we strongly suggest considering ARM (which is ResourceManager and has [verb]-AzureRM[cmdlet] syntax in Powershell) and AutoRest generated SDKs

daiplusplus commented 7 years ago

But how do I use the AutoRest-generated clients to manipulate Cloud Services then? There's no HostedServicesOperations type available in that library.