Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advisor tab resource ID instead of name displayed #217

Open
Stel-TG opened this issue Sep 9, 2024 · 6 comments
Open

Advisor tab resource ID instead of name displayed #217

Stel-TG opened this issue Sep 9, 2024 · 6 comments

Comments

@Stel-TG
Copy link

Stel-TG commented Sep 9, 2024

When running the script either in the AzureCLI or via Automation account the name column in the Advisor tab contains mostly the resource ID's instead of the resource name. The names appear correctly on the tabs and if I execute the PowerShell script from my desktop using the same account logged into the AzurePortal.

@Claudio-Merola
Copy link
Collaborator

Hello @Stel-TG

I just published the version 3.5.1 of the module. Can you try to upgrade your version of the module and try again?

Thanks

@Stel-TG
Copy link
Author

Stel-TG commented Sep 17, 2024

I tried both the 3.51 and 3.52 updates and several resources show the name as the subscription ID in both versions. The other thing that changed is the same behavior exists when I run it locally now

@Stel-TG
Copy link
Author

Stel-TG commented Sep 18, 2024

It should be noted that some item names do show up in the advisor tab. I tried correlating to find commonalities around the impact/type and while most that showed up as the subscriptionID for the resource name we cost and high availability related. I have several resource types that arent resolving but things like virtual machines some recommendations show the name while others show the subscriptionID. The only difference is the resource type Microsoft.Compute/virtualMachines and all the resource types whose names resolve properly the resource types are completely upper case. ie MICROSOFT.COMPUTE/VIRTUALMACHINES

@Claudio-Merola
Copy link
Collaborator

@Stel-TG

I'm having a hard time to understand what exactly might be the issue internally in the script side.

Can you post a screenshot of the issue? You can change the resource names and ids, just to make it easier for me to better understand the issue

@Stel-TG
Copy link
Author

Stel-TG commented Sep 20, 2024

@Claudio-Merola

Yes I can see how it's confusing. I've done this on different tenants and subscriptions with the same results

image

@Claudio-Merola
Copy link
Collaborator

Hi @Stel-TG

Thanks for the screenshot.

This is actually right. The thing is that advisor recommendations are not always target to resources, indeed most of the recommendations are target to the entire subscription.

So for the recommendations that do have the target resources we present it, but when the recommendations only have the information about the subscription, we can only show the subscription ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants