Solucionar problemas de un tema de importación de Azure Event Hubs
Organízate con las colecciones
Guarda y clasifica el contenido según tus preferencias.
En este documento se ofrecen algunos consejos habituales para solucionar problemas con los temas de importación de Azure Event Hubs.
Después de configurar el tema de importación y empezar a ingerir mensajes, puedes consultar las métricas de Cloud Monitoring pertinentes para ver si se están ingiriendo datos. Sigue estos pasos:
Haz clic en el tema de importación de Azure Event Hubs que quieras solucionar.
En la página de detalles del tema, haga clic en la pestaña Métricas.
Consulta el gráfico de la métrica Número de bytes de ingestión.
Si no se ingieren datos, en la página de detalles del tema, compruebe si hay algún error en el campo Estado del tema.
También puede consultar la métrica Estado de la fuente de datos de ingestión.
Para ello, en la página de detalles del tema, haga clic en la pestaña Métricas.
A continuación se indica una lista de errores que pueden aparecer:
Código de error
Descripción
Solucionar
EVENT_HUBS_PERMISSION_DENIED
Error al consumir datos de Azure Event Hubs debido a problemas de permisos.
También puedes habilitar los registros de la plataforma de un tema de importación. Estos registros le ayudan a solucionar problemas cuando tiene problemas para ingerir objetos en temas de importación de Pub/Sub.
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-11 (UTC)."],[],[],null,["This document provides some common troubleshooting tips for\nAzure Event Hubs import topics.\n\nAfter you configure the import topic and start ingesting messages, you can\ncheck the relevant Cloud Monitoring metrics to see\nif data is ingested. Perform the following steps:\n\n1. In the console, go to the **Topics** page.\n\n [Go to Topics](https://console.cloud.google.com/cloudpubsub/topic/list)\n2. Click the Azure Event Hubs import topic that you want to troubleshoot.\n\n3. In the topic details page, click the **Metrics** tab.\n\n4. Check the chart for the metric **Ingestion byte count**.\n\n5. If no data is being ingested, in the topic details page,\n check to see if there is an error for the\n **Topic state** field.\n\n6. You can also check the metric **Ingestion data source state** .\n To do so, in the topic details page, click the **Metrics** tab.\n\n7. Here is a list of errors that you might encounter:\n\n | Error Code | Description | Fix |\n |--------------------------------|----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | `EVENT_HUBS_PERMISSION_DENIED` | Error consuming data from Azure Event Hubs due to permission issues. | Verify the roles assigned to the registered Azure app[and ensure the necessary permissions are granted](/pubsub/docs/create-azure-event-hub-import-topic#grant_role_assignments). |\n | `EVENT_HUBS_PERMISSION_DENIED` | Error consuming data from Azure Event Hubs due to permission issues. | Ensure that a service account exists and that it is correctly configured as described in the procedure [Create an App registration with identity federation.](/pubsub/docs/create-azure-event-hub-import-topic#create_id) For more information about how to create a service account, see [Create a service account in Google Cloud.](/pubsub/docs/create-azure-event-hub-import-topic#create-service-account) |\n | `EVENT_HUBS_PERMISSION_DENIED` | Error consuming data from Azure Event Hubs due to permission issues. | Verify that the Pub/Sub service account has the `iam.serviceAccounts.getOpenIdToken` permission. For more information, see [Add the Service Account Token Creator role to the Pub/Sub service account.](/pubsub/docs/create-azure-event-hub-import-topic#add-service-account-token-creator) |\n | `EVENT_HUBS_PERMISSION_DENIED` | Error consuming data from Azure Event Hubs due to permission issues. | Verify that you have added the service account user role to the service account. For more information, see [Add the service account user role to the service account.](/pubsub/docs/create-azure-event-hub-import-topic#add-service-account-role) |\n | `PUBLISH_PERMISSION_DENIED` | Error publishing to the topic due to permission issues. | Grant the Pub/Sub service account the [necessary publish permissions](/pubsub/docs/access-control#pubsub.publisher). For more information, see [Add the Pub/Sub publisher role to the Pub/Sub service account.](/pubsub/docs/create-azure-event-hub-import-topic#add-publisher-role) |\n | `EVENT_HUB_NOT_FOUND ` | The provided Azure event hub couldn't be found. | Verify the Azure event hub for accuracy. Ensure that the Azure event hub exists and is accessible. |\n | `SUBSCRIPTION_NOT_FOUND ` | The provided Azure Event Hubs subscription couldn't be found. | Verify the subscription for accuracy. Ensure that the subscription exists. |\n | `RESOURCE_GROUP_NOT_FOUND ` | The provided Azure Event Hubs resource group couldn't be found. | Verify the resource group for accuracy. Ensure that the resource group exists within the specified subscription. |\n\nIf there are no errors till this point, check the best practices in\n[Maintain a healthy publisher](/pubsub/docs/monitoring#keeping_publishers_healthy).\n\nYou can also enable [platform logs](/pubsub/docs/platform-logs-pubsub) for a\nimport topic. These logs help you troubleshoot issues\nwhen you have issues ingesting objects into Pub/Sub import topics."]]