azure-docs-sdk-java
azure-docs-sdk-java copied to clipboard
Unable to connect to the eventhub
Followed the instructions on this document, unable to build or start the application. Getting the below error, Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'azureAdmin' defined in class path resource [com/microsoft/azure/spring/cloud/autoconfigure/context/AzureContextAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.microsoft.azure.spring.cloud.context.core.impl.AzureAdmin]: Factory method 'azureAdmin' threw exception; nested exception is java.lang.IllegalArgumentException: Parameter this.client.subscriptionId() is required and cannot be null.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 7bb8bc1e-65b0-f895-942c-cb3aec127f85
- Version Independent ID: 9f3d829e-8288-5a80-fd9f-ba51fbb52590
- Content: How to use the Spring Boot Starter for Apache Kafka with Azure Event Hubs
- Content Source: docs-ref-conceptual/spring-framework/configure-spring-cloud-stream-binder-java-app-kafka-azure-event-hub.md
- Service: event-hubs
- GitHub Login: @rmcmurray
- Microsoft Alias: robmcm