Class AzureProfile
java.lang.Object
com.azure.core.management.profile.AzureProfile
Azure profile for client.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureProfile(AzureEnvironment environment) Note: Only use this constructor for custom Azure cloud/endpoints.AzureProfile(AzureCloud azureCloud) Creates AzureProfile instance with specific Azure cloud.AzureProfile(String tenantId, String subscriptionId, AzureEnvironment environment) Note: Only use this constructor for custom Azure cloud/endpoints.AzureProfile(String tenantId, String subscriptionId, AzureCloud azureCloud) Creates AzureProfile instance with tenant ID, subscription ID and specific Azure cloud. -
Method Summary
Modifier and TypeMethodDescriptionGets Azure environment.Gets subscription ID.Gets tenant ID.
-
Constructor Details
-
AzureProfile
Creates AzureProfile instance with specific Azure cloud. The global cloud isAzureCloud.AZURE_PUBLIC_CLOUD. The tenant ID and subscription ID can be set via environment variables. The environment variables are expected as below:- Parameters:
azureCloud- the Azure cloud
-
AzureProfile
Creates AzureProfile instance with tenant ID, subscription ID and specific Azure cloud. The global cloud isAzureCloud.AZURE_PUBLIC_CLOUD.- Parameters:
tenantId- the tenant ID required for Graph RbacsubscriptionId- the subscription ID required for resource managementazureCloud- the Azure cloud
-
AzureProfile
Note: Only use this constructor for custom Azure cloud/endpoints. Use
Creates AzureProfile instance with Azure environment. The global environment isAzureProfile(String, String, AzureCloud)for global environment.AzureEnvironment.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- See Also:
-
AzureProfile
Note: Only use this constructor for custom Azure cloud/endpoints. Use
Creates AzureProfile instance with tenant ID, subscription ID and Azure environment. The global environment isAzureProfile(String, String, AzureCloud)for global environment.AzureEnvironment.AZURE.- Parameters:
tenantId- the tenant ID required for Graph RbacsubscriptionId- the subscription ID required for resource managementenvironment- the Azure environment- See Also:
-
-
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
-