Soluciona problemas relacionados con un tema de importación de Azure Event Hubs
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En este documento, se proporcionan algunas sugerencias comunes para solucionar problemas relacionados con la importación de Azure Event Hubs.
Después de configurar el tema de importación y comenzar a transferir mensajes, puedes verificar las métricas relevantes de Cloud Monitoring para ver si se transfieren los datos. Sigue los siguientes pasos:
Haz clic en el tema de importación de Azure Event Hubs que deseas solucionar.
En la página de detalles del tema, haz clic en la pestaña Métricas.
Consulta el gráfico para ver la métrica Cantidad de bytes de transferencia.
Si no se transfieren datos, en la página de detalles del tema, verifica si hay un error en el campo Estado del tema.
También puedes consultar la métrica Estado de la fuente de datos de transferencia.
Para ello, en la página de detalles del tema, haz clic en la pestaña Métricas.
A continuación, se muestra una lista de errores que podrías encontrar:
Código de error
Descripción
Corregir
EVENT_HUBS_PERMISSION_DENIED
Se produjo un error al consumir datos de Azure Event Hubs debido a problemas de permisos.
También puedes habilitar los registros de la plataforma para un tema de importación. Estos registros te ayudan a solucionar problemas cuando tienes dificultades para transferir objetos a temas de importación de Pub/Sub.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (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."]]