Class AzureProfile


  • public final class AzureProfile
    extends Object
    Azure profile for client.
    • Constructor Detail

      • AzureProfile

        public AzureProfile​(AzureEnvironment environment)
        Creates AzureProfile instance with Azure environment. The global environment is 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
      • AzureProfile

        public AzureProfile​(String tenantId,
                            String subscriptionId,
                            AzureEnvironment environment)
        Creates AzureProfile instance with tenant ID, subscription ID and Azure environment. The global environment is AzureEnvironment.AZURE.
        Parameters:
        tenantId - the tenant ID required for Graph Rbac
        subscriptionId - the subscription ID required for resource management
        environment - 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