Class 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 Detail

      • azureResourceManager

        @Bean
        @ConditionalOnMissingBean
        public com.azure.resourcemanager.AzureResourceManager azureResourceManager​(com.azure.core.credential.TokenCredential tokenCredential,
                                                                                   com.azure.core.management.profile.AzureProfile azureProfile)
        Autoconfigure the AzureResourceManager instance.
        Parameters:
        tokenCredential - the TokenCredential used to authenticate with the AzureResourceManager.
        azureProfile - the AzureProfile used by the AzureResourceManager.
        Returns:
        the Azure resource manager.
      • azureProfile

        @Bean
        @ConditionalOnMissingBean
        public com.azure.core.management.profile.AzureProfile azureProfile()
        Autoconfigure the AzureProfile instance.
        Returns:
        the azure profile.