0

We use nuget Microsoft.Azure.Management.Sql (version 0.5) in our project.

But I have updated the version 0.5 to version 1.33 (last version on the current time).

And I have a troubles with some models and methods:

  1. Class RecommendedAction from namespace Microsoft.Azure.Management.Sql.Models is missing
  2. Interface IElasticPoolRecommendedActionsOperations is missing
  3. Interface IElasticPoolAdvisorsOperations is missing

It seems the missed classes are renamed or moved to other nuget package.

Where I can find missing classes?

Alexander I.
  • 2,380
  • 3
  • 17
  • 42
  • Read Package Reference Tab on following page : https://www.nuget.org/packages/Microsoft.Azure.Management.Sql/1.33.0-preview – jdweng Aug 21 '19 at 16:49
  • @jdweng Sorry, but I do not see any helpful information on Package Reference Tab. Could you explain what do you mean more details? – Alexander I. Aug 21 '19 at 17:06
  • For projects that support PackageReference, copy this XML node into the project file to reference the package : Install-Package Microsoft.Azure.Management.Sql -Version 1.33.0-preview Read the other tabs and notes below the tab window. – jdweng Aug 21 '19 at 19:19
  • @AlexanderI. From the latest API document [Microsoft.Azure.Management.Sql.Models Namespace](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.sql.models?view=azure-dotnet), `RecommendedAction`, `IElasticPoolRecommendedActionsOperations`, `IElasticPoolAdvisorsOperations` are not exist. – Leon Yue Aug 22 '19 at 02:02
  • @LeonYue Thanks. It seems the classes were renamed or moved to other nuget. Is there any way to find this classes? Maybe exists analogs for these classes and I can rewrite code to reproduce previous behavior. But where I can find any documentation about it? I have reviewed all package, but I can't find analogs. – Alexander I. Aug 22 '19 at 06:26
  • @AlexanderI. I also think so. I didn't find anything about this. But from the [Microsoft.Azure.Management.Sql](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.sql?view=azure-dotnet) , maybe we can find some similar inteface, such as `IElasticPoolActivitiesOperations ` or `IElasticPoolOperations `. It looks like that you need to change your code and fount the new renamed class or interface by yourself. Can I post this as the answer? – Leon Yue Aug 22 '19 at 07:08
  • @LeonYue Yes, you can post answer, I will upvote your answer. But I can' accept your answer. I will wait, maybe someone has ideas where I can find analogs of the classes. – Alexander I. Aug 22 '19 at 10:35
  • @AlexanderI. That's all right. I also hope others can give good ideas for you. I'm sorry that I don't know much about this. We can waiting for some days. If the error still with no anwser for a lang time, maybe you can think about accept it. Thanks. – Leon Yue Aug 23 '19 at 01:00

1 Answers1

1

From the latest API document Microsoft.Azure.Management.Sql.Models Namespace, RecommendedAction, IElasticPoolRecommendedActionsOperations, IElasticPoolAdvisorsOperations are not exist now.

As you said it seems the classes were renamed or moved to other nuget package.

I didn't find anything talked about this. But from the Microsoft.Azure.Management.Sql, maybe we can find some similar inteface, such as IElasticPoolActivitiesOperations or IElasticPoolOperations . It looks like that you need to change your code and fount the new renamed class or interface by yourself.

I asked Azure Support, please wait for my update.

Update:

Yes, as you said in comment, Azure support replied me with the same result.

Here's Email:

Dear Leon,

Good Morning.

I got reply back from the product group developers. Kindly let me share the information.

According to the developer, below 3 modules are included in this new Library: https://www.nuget.org/packages/Microsoft.Azure.Management.Advisor

  1. RecommendedAction from namespace Microsoft.Azure.Management.Sql.Models
  2. Interface IElasticPoolRecommendedActionsOperations
  3. Interface IElasticPoolAdvisorsOperations

enter image description here

Hope this helps.

Leon Yue
  • 15,693
  • 1
  • 11
  • 23
  • Thanks. I will wait. But I think Microsoft developers moved all Recommendation features to separate nuget package. It seems we need to use [Microsoft.Azure.Management.Advisor](https://www.nuget.org/packages/Microsoft.Azure.Management.Advisor). – Alexander I. Aug 23 '19 at 08:38
  • @AlexanderI.a Azure support still in follow up now. – Leon Yue Aug 27 '19 at 05:56
  • Hi @AlexanderI., Azure support replied me. They confirmed that these class and interfaces are included in `Microsoft.Azure.Management.Advisor`. You can use the new library! If my answer helped, please mark it as the answer, thank you very much! – Leon Yue Aug 30 '19 at 06:49