|
| 1 | +--- |
| 2 | +title: Metrics checkbox disabled when enabling metrics collection for Dynatrace |
| 3 | +description: "Resolve the issue where the metrics collection checkbox is disabled because the user lacks Owner permissions on the subscription." |
| 4 | +author: v-albemi |
| 5 | +ms.author: v-albemi |
| 6 | +ms.service: Dynatrace integration |
| 7 | +ms.topic: troubleshooting-problem-resolution |
| 8 | +ms.date: 09/22/2025 |
| 9 | + |
| 10 | +customer intent: As a {role}, I want {what} so that {why}. |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +# Metrics checkbox disabled when enabling metrics collection |
| 15 | + |
| 16 | +This article helps you resolve the specific problem where the metrics collection checkbox is disabled (greyed out) in the Dynatrace integration because the signed-in account doesn't have Owner permissions on the Azure subscription. |
| 17 | + |
| 18 | +Use this article when you cannot enable metrics collection in the Dynatrace integration and the UI control is disabled. |
| 19 | + |
| 20 | +## Prerequisites |
| 21 | + |
| 22 | +- Access to the Azure portal and the subscription that contains the resources. |
| 23 | +- The account name or principal ID of the user attempting the operation. |
| 24 | +- Permissions to request role changes from a subscription Owner or to assign roles if you have the appropriate rights. |
| 25 | + |
| 26 | +## Symptoms |
| 27 | + |
| 28 | +- The metrics collection checkbox is disabled (greyed out) in the Dynatrace integration UI. |
| 29 | +- Attempting to enable metrics collection results in an error or no action. |
| 30 | + |
| 31 | +## Cause |
| 32 | + |
| 33 | +Enabling metrics collection requires Owner permissions at the subscription scope. Users with Contributor or Reader roles cannot enable metrics collection from the integration UI; the checkbox remains disabled. |
| 34 | + |
| 35 | +## Solution 1: Verify your role and request Owner permission |
| 36 | + |
| 37 | +1. In the Azure portal, open the subscription that contains the resources. |
| 38 | +2. Select Access control (IAM) from the left pane. |
| 39 | +3. Select View my access to see your effective role at the subscription scope. |
| 40 | +4. If you are not Owner, contact the subscription Owner or administrator and request Owner permissions, or ask them to enable metrics collection for you. |
| 41 | +5. After the Owner assigns the role, wait 5–15 minutes for RBAC propagation and then retry enabling metrics collection in the Dynatrace integration. |
| 42 | + |
| 43 | +## Solution 2: Verify role using CLI or PowerShell |
| 44 | + |
| 45 | +- Azure CLI example (shows role assignments for the signed-in principal at subscription scope): |
| 46 | + |
| 47 | + az role assignment list --assignee {principal-id} --scope "/subscriptions/{subscription-id}" --output table |
| 48 | + |
| 49 | +- PowerShell example (Az module): |
| 50 | + |
| 51 | + Get-AzRoleAssignment -ObjectId {principal-id} -Scope "/subscriptions/{subscription-id}" |
| 52 | + |
| 53 | +If the assignment is missing or you have a Contributor role, request the Owner role or have an existing Owner perform the action. |
| 54 | + |
| 55 | +## Determine the cause if you have Owner permissions |
| 56 | + |
| 57 | +If you already have Owner permissions and the checkbox is still disabled, check the following: |
| 58 | + |
| 59 | +- Sign-in context: confirm you're signed in with the correct account; sign out and sign in again. |
| 60 | +- Portal caching: try an incognito/private browser session or clear the browser cache. |
| 61 | +- Extension or integration scope: verify the integration is targeting the correct subscription and that any required resource provider registrations exist. |
| 62 | + |
| 63 | +## Verify |
| 64 | + |
| 65 | +- After Owner role is assigned and RBAC propagates, the metrics collection checkbox should become enabled. |
| 66 | +- Enable the checkbox and confirm metrics appear in Dynatrace for the selected resources within expected ingestion time. |
| 67 | + |
| 68 | +## Related content |
| 69 | + |
| 70 | +- [Azure role-based access control (RBAC)](https://learn.microsoft.com/azure/role-based-access-control/) |
| 71 | +- [Assign Azure roles using the Azure CLI](https://learn.microsoft.com/azure/role-based-access-control/role-assignments-cli) |
| 72 | +- [Configure metrics and logs](https://learn.microsoft.com/azure/monitoring/monitoring-configure-metrics-logs) |
0 commit comments