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.AzureProfile
Autoconfigure theAzureProfile
instance.com.azure.resourcemanager.AzureResourceManager
azureResourceManager
(com.azure.core.credential.TokenCredential tokenCredential, com.azure.core.management.profile.AzureProfile azureProfile) Autoconfigure theAzureResourceManager
instance.
-
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 theAzureResourceManager
instance.- Parameters:
tokenCredential
- theTokenCredential
used to authenticate with theAzureResourceManager
.azureProfile
- theAzureProfile
used by theAzureResourceManager
.- Returns:
- the Azure resource manager.
-
azureProfile
@Bean @ConditionalOnMissingBean public com.azure.core.management.profile.AzureProfile azureProfile()Autoconfigure theAzureProfile
instance.- Returns:
- the azure profile.
-