You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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 :(
@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.
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.
The text was updated successfully, but these errors were encountered: