Risoluzione dei problemi relativi a un argomento di importazione di Azure Event Hubs
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo documento fornisce alcuni suggerimenti comuni per la risoluzione dei problemi relativi agli argomenti di importazione di Azure Event Hubs.
Dopo aver configurato l'argomento di importazione e aver iniziato l'importazione dei messaggi, puoi controllare le metriche di monitoraggio di Cloud pertinenti per verificare se i dati vengono importati. Procedi nel seguente modo:
Fai clic sull'argomento di importazione di Azure Event Hubs di cui vuoi risolvere i problemi.
Nella pagina dei dettagli dell'argomento, fai clic sulla scheda Metriche.
Controlla il grafico per la metrica Conteggio byte di importazione.
Se non vengono importati dati, nella pagina dei dettagli dell'argomento, controlla se è presente un errore per il campo Stato argomento.
Puoi anche controllare la metrica Stato dell'origine dati di importazione.
Per farlo, nella pagina dei dettagli dell'argomento, fai clic sulla scheda Metriche.
Di seguito è riportato un elenco di errori che potresti riscontrare:
Codice di errore
Descrizione
Correggi
EVENT_HUBS_PERMISSION_DENIED
Errore durante l'utilizzo dei dati di Azure Event Hubs a causa di problemi di autorizzazione.
Puoi anche attivare i log della piattaforma per un
argomento di importazione. Questi log ti aiutano a risolvere i problemi
quando hai problemi di importazione degli oggetti negli argomenti di importazione Pub/Sub.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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."]]