Class AzureProfile
java.lang.Object
com.azure.core.management.profile.AzureProfile
Azure profile for client.
-
Constructor Summary
ConstructorDescriptionAzureProfile
(AzureEnvironment environment) Creates AzureProfile instance with Azure environment.AzureProfile
(String tenantId, String subscriptionId, AzureEnvironment environment) Creates AzureProfile instance with tenant ID, subscription ID and Azure environment. -
Method Summary
Modifier and TypeMethodDescriptionGets Azure environment.Gets subscription ID.Gets tenant ID.
-
Constructor Details
-
AzureProfile
Creates AzureProfile instance with Azure environment. The global environment isAzureEnvironment.AZURE
. The tenant ID and subscription ID can be set via environment variables. The environment variables are expected as below:- Parameters:
environment
- the Azure environment
-
AzureProfile
Creates AzureProfile instance with tenant ID, subscription ID and Azure environment. The global environment isAzureEnvironment.AZURE
.- Parameters:
tenantId
- the tenant ID required for Graph RbacsubscriptionId
- the subscription ID required for resource managementenvironment
- the Azure environment
-
-
Method Details
-
getTenantId
Gets tenant ID.- Returns:
- the tenant ID
-
getSubscriptionId
Gets subscription ID.- Returns:
- the subscription ID
-
getEnvironment
Gets Azure environment.- Returns:
- the Azure environment
-