Class AzureEnvironment


  • public final class AzureEnvironment
    extends Object
    An instance of this class describes an environment in Azure.
    • Field Detail

      • AZURE

        public static final AzureEnvironment AZURE
        Provides the settings for authentication with Azure.
      • AZURE_CHINA

        public static final AzureEnvironment AZURE_CHINA
        Provides the settings for authentication with Azure China.
      • AZURE_US_GOVERNMENT

        public static final AzureEnvironment AZURE_US_GOVERNMENT
        Provides the settings for authentication with Azure US Government.
      • AZURE_GERMANY

        public static final AzureEnvironment AZURE_GERMANY
        Provides the settings for authentication with Azure Germany.
    • Constructor Detail

      • AzureEnvironment

        public AzureEnvironment​(Map<String,​String> endpoints)
        Initializes an instance of AzureEnvironment class.
        Parameters:
        endpoints - a map storing all the endpoint info
    • Method Detail

      • endpoints

        public Map<String,​String> endpoints()
        Returns:
        the entirety of the endpoints associated with the current environment.
      • knownEnvironments

        public static AzureEnvironment[] knownEnvironments()
        Returns:
        the array of known environments to Azure SDK.
      • portal

        public String portal()
        Returns:
        the management portal URL.
      • publishingProfile

        public String publishingProfile()
        Returns:
        the publish settings file URL.
      • managementEndpoint

        public String managementEndpoint()
        Returns:
        the management service endpoint.
      • resourceManagerEndpoint

        public String resourceManagerEndpoint()
        Returns:
        the resource management endpoint.
      • sqlManagementEndpoint

        public String sqlManagementEndpoint()
        Returns:
        the sql server management endpoint for mobile commands.
      • sqlServerHostnameSuffix

        public String sqlServerHostnameSuffix()
        Returns:
        the dns suffix for sql servers.
      • activeDirectoryEndpoint

        public String activeDirectoryEndpoint()
        Returns:
        the Active Directory login endpoint.
      • activeDirectoryResourceId

        public String activeDirectoryResourceId()
        Returns:
        The resource ID to obtain AD tokens for.
      • galleryEndpoint

        public String galleryEndpoint()
        Returns:
        the template gallery endpoint.
      • graphEndpoint

        public String graphEndpoint()
        Returns:
        the Active Directory resource ID.
      • dataLakeEndpointResourceId

        public String dataLakeEndpointResourceId()
        Returns:
        the Data Lake resource ID.
      • activeDirectoryGraphApiVersion

        public String activeDirectoryGraphApiVersion()
        Returns:
        the Active Directory api version.
      • storageEndpointSuffix

        public String storageEndpointSuffix()
        Returns:
        the endpoint suffix for storage accounts.
      • keyVaultDnsSuffix

        public String keyVaultDnsSuffix()
        Returns:
        the keyvault service dns suffix.
      • azureDataLakeStoreFileSystemEndpointSuffix

        public String azureDataLakeStoreFileSystemEndpointSuffix()
        Returns:
        the data lake store filesystem service dns suffix.
      • azureDataLakeAnalyticsCatalogAndJobEndpointSuffix

        public String azureDataLakeAnalyticsCatalogAndJobEndpointSuffix()
        Returns:
        the data lake analytics job and catalog service dns suffix.
      • logAnalyticsEndpoint

        public String logAnalyticsEndpoint()
        Returns:
        the log analytics endpoint.
      • applicationInsightsEndpoint

        public String applicationInsightsEndpoint()
        Returns:
        the log analytics endpoint.
      • url

        public String url​(AzureEnvironment.Endpoint endpoint)
        Get the endpoint URL for the current environment.
        Parameters:
        endpoint - the endpoint
        Returns:
        the URL