Class AzureProfile
- java.lang.Object
-
- com.azure.core.management.profile.AzureProfile
-
public final class AzureProfile extends Object
Azure profile for client.
-
-
Constructor Summary
Constructors Constructor Description AzureProfile(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureEnvironmentgetEnvironment()Gets Azure environment.StringgetSubscriptionId()Gets subscription ID.StringgetTenantId()Gets tenant ID.
-
-
-
Constructor Detail
-
AzureProfile
public AzureProfile(AzureEnvironment environment)
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
public AzureProfile(String tenantId, String subscriptionId, AzureEnvironment environment)
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 Detail
-
getTenantId
public String getTenantId()
Gets tenant ID.- Returns:
- the tenant ID
-
getSubscriptionId
public String getSubscriptionId()
Gets subscription ID.- Returns:
- the subscription ID
-
getEnvironment
public AzureEnvironment getEnvironment()
Gets Azure environment.- Returns:
- the Azure environment
-
-