Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to the eventhub #918

Open
selva-krishnan opened this issue Sep 3, 2019 — with docs.microsoft.com · 3 comments
Open

Unable to connect to the eventhub #918

selva-krishnan opened this issue Sep 3, 2019 — with docs.microsoft.com · 3 comments

Comments

Copy link

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.

@selva-krishnan
Copy link
Author

selva-krishnan commented Sep 3, 2019

I used the same dependency versions as per the document. Also, tried with the 2.1.0-RELEASE version as there is some known Incompatibility issues, nothing worked. This seems to be within the Azure classes.
spring-cloud/spring-cloud-stream#1521

@shshekhar
Copy link

Hi Selva
Were you able to find a solution to the above issue?
I am facing the same and haven't been able to get over it. I have already specified the intended subscription id via "az account set -s " and also "az account list" shows the intended subscription to be the default. Still when we run, it can not pick the subscription id :(

@selva-krishnan
Copy link
Author

@shshekhar - I tried everything all I can and put some debug points inside the code. Looks like something is broken in the code and unable to get the subscription ID. I did not get response from Azure team yet. Will wait for their confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants