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

Azure Resource Graph queries in the runbook disregard hybrid compute details #1

Closed
rvdhooff opened this issue Oct 18, 2023 · 2 comments
Assignees

Comments

@rvdhooff
Copy link

The Azure Resource Graph queries filter specifically on type == 'microsoft.compute/virtualmachines/patchinstallationresults', however as a result you disregard all results coming from for example the type microsoft.hybridcompute/machines/patchinstallationresults.

You could change it the query to use :

patchinstallationresources
| where type == 'microsoft.compute/virtualmachines/patchinstallationresults' or type == 'microsoft.hybridcompute/machines/patchinstallationresults'

However this might bring in problems in the future if additional types are added. You are maybe better of with this:

patchinstallationresources
| where type endswith '/patchinstallationresults'
@Wiszanyel Wiszanyel self-assigned this Oct 18, 2023
@Wiszanyel
Copy link
Collaborator

Thank you for the feedback @rvdhooff! checking now.

@Wiszanyel Wiszanyel pinned this issue Oct 18, 2023
@Wiszanyel
Copy link
Collaborator

Fixed using @rvdhooff recommendation.

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