Skip to content

Change ASB usage data collection method to reduce required permissions#5535

Merged
mikeminutillo merged 1 commit into
masterfrom
change-asb-metrics-package
Jun 17, 2026
Merged

Change ASB usage data collection method to reduce required permissions#5535
mikeminutillo merged 1 commit into
masterfrom
change-asb-metrics-package

Conversation

@mikeminutillo

@mikeminutillo mikeminutillo commented Jun 15, 2026

Copy link
Copy Markdown
Member

Fixes #5280

Before this change ServiceControl was using the Azure.Monitor.Query.Metrics package. This package is designed to allow querying for metrics across mutliple resources in a single request, and requires the Monitor Reader role at the subscription level.

This change switches to the Azure.ResourceManager.Monitor package, which only requires the Monitor Reader role at the Service Bus namespace level.

@mikeminutillo mikeminutillo self-assigned this Jun 15, 2026
Comment thread src/ServiceControl.Transports.ASBS/AzureQuery.cs Outdated
Comment thread src/ServiceControl.Transports.ASBS/AzureQuery.cs Outdated
@mikeminutillo mikeminutillo force-pushed the change-asb-metrics-package branch from fd517c2 to 42dc15e Compare June 17, 2026 03:33
@mikeminutillo mikeminutillo changed the base branch from collect-more-data-cloud to master June 17, 2026 03:34
@mikeminutillo mikeminutillo changed the title Change ASB usage data collection method to prevent elevated privileges Change ASB usage data collection method to reduce required permissions Jun 17, 2026
@mikeminutillo mikeminutillo merged commit 2802b3a into master Jun 17, 2026
33 checks passed
@mikeminutillo mikeminutillo deleted the change-asb-metrics-package branch June 17, 2026 05:04
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

Successfully merging this pull request may close these issues.

Monitoring Reader role lacks permissions for queue statistics after upgrade to 6.7.4

2 participants