Class AzureResourceManagerAutoConfiguration
java.lang.Object
com.azure.spring.cloud.autoconfigure.resourcemanager.AzureResourceManagerAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(com.azure.resourcemanager.AzureResourceManager.class)
@ConditionalOnExpression("${spring.cloud.azure.resource-manager.enabled:true}")
@ConditionalOnProperty("spring.cloud.azure.profile.subscription-id")
public class AzureResourceManagerAutoConfiguration
extends Object
Auto-configuration for Azure Resource Manager support.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.profile.AzureProfileAutoconfigure theAzureProfileinstance.com.azure.resourcemanager.AzureResourceManagerazureResourceManager(com.azure.core.credential.TokenCredential tokenCredential, com.azure.core.management.profile.AzureProfile azureProfile) Autoconfigure theAzureResourceManagerinstance.
-
Method Details
-
azureResourceManager
@Bean @ConditionalOnMissingBean public com.azure.resourcemanager.AzureResourceManager azureResourceManager(com.azure.core.credential.TokenCredential tokenCredential, com.azure.core.management.profile.AzureProfile azureProfile) Autoconfigure theAzureResourceManagerinstance.- Parameters:
tokenCredential- theTokenCredentialused to authenticate with theAzureResourceManager.azureProfile- theAzureProfileused by theAzureResourceManager.- Returns:
- the Azure resource manager.
-
azureProfile
@Bean @ConditionalOnMissingBean public com.azure.core.management.profile.AzureProfile azureProfile()Autoconfigure theAzureProfileinstance.- Returns:
- the azure profile.
-