Skip to content

[BUG] Parameter 0 of constructor in AzureTokenCredentialAutoConfiguration required a bean of type 'AzureGlobalProperties' #36377

Open
@bitbaggi

Description

@bitbaggi

I don't know if i do anything wrong.
After upgrading to 5.x for spring boot 3.0, nothing works anymore.

First the error of this issue.
Now after a few more bugs, i got this error:

[WARN] 17.08.2023 09:21:54  --- [ServletWebServerApplicationContext      ] :   Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.azure.spring.cloud.autoconfigure.implementation.context.AzureTokenCredentialAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0: No qualifying bean of type 'com.azure.spring.cloud.autoconfigure.implementation.context.properties.AzureGlobalProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
[INFO] 17.08.2023 09:21:54  --- [StandardService                         ] :   Stopping service [Tomcat]
[ERROR] 17.08.2023 09:21:54  --- [LoggingFailureAnalysisReporter          ] :   

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.azure.spring.cloud.autoconfigure.implementation.context.AzureTokenCredentialAutoConfiguration required a bean of type 'com.azure.spring.cloud.autoconfigure.implementation.context.properties.AzureGlobalProperties' that could not be found.


Action:

Consider defining a bean of type '
com.azure.spring.cloud.autoconfigure.implementation.context.properties.AzureGlobalProperties' in your configuration.

I set the configuration for azure in the application properties, connection string and inputs/outputs...

Do i anything wrong?, Could it be that Spring hates me :D

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.azure-springAll azure-spring related issuesazure-spring-nativeIssues related to Spring native.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions