Is service retirement completely depends on azure advisor recommendation?
az rest --method get --uri /subscriptions/{subscriptionId}/resourceGroups/{resourceid}/providers/Microsoft.Advisor/recommendations/{RecommendationTypeId}?api-version=2023-01-01
az : ERROR: Not Found At line:1 char:1 + az rest --method get --uri /subscriptions/ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (ERROR: Not Found:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError
But when I take output of azure portal service retirement I could see the type: Microsoft.web/ Microsoft.Insights/components and many more.
az rest --method get --uri /subscriptions/{subscriptionId}/resourceGroups/{resourceid}/providers/Microsoft.Insights/components/{name}?api-version=2020-02-02
This is expected result what portal exports: (Column)
Subscription Type Retiring Feature Retirement Date Resource Group Location Resource Name Tags Action