Class AzureEnvironment

java.lang.Object
com.azure.core.management.AzureEnvironment

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

    • 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 Details

    • AzureEnvironment

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

    • getEndpoints

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

      public static List<AzureEnvironment> knownEnvironments()
      Returns:
      the list of known environments to Azure SDK.
    • getPortal

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

      public String getPublishingProfile()
      Returns:
      the publish settings file URL.
    • getManagementEndpoint

      public String getManagementEndpoint()
      Returns:
      the management service endpoint.
    • getResourceManagerEndpoint

      public String getResourceManagerEndpoint()
      Returns:
      the resource management endpoint.
    • getSqlManagementEndpoint

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

      public String getSqlServerHostnameSuffix()
      Returns:
      the dns suffix for sql servers.
    • getActiveDirectoryEndpoint

      public String getActiveDirectoryEndpoint()
      Returns:
      the Active Directory login endpoint.
    • getActiveDirectoryResourceId

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

      public String getGalleryEndpoint()
      Returns:
      the template gallery endpoint.
    • getGraphEndpoint

      public String getGraphEndpoint()
      Returns:
      the Active Directory resource ID.
    • getMicrosoftGraphEndpoint

      public String getMicrosoftGraphEndpoint()
      Returns:
      the Microsoft Graph resource ID.
    • getDataLakeEndpointResourceId

      public String getDataLakeEndpointResourceId()
      Returns:
      the Data Lake resource ID.
    • getActiveDirectoryGraphApiVersion

      public String getActiveDirectoryGraphApiVersion()
      Returns:
      the Active Directory api version.
    • getStorageEndpointSuffix

      public String getStorageEndpointSuffix()
      Returns:
      the endpoint suffix for storage accounts.
    • getKeyVaultDnsSuffix

      public String getKeyVaultDnsSuffix()
      Returns:
      the keyvault service dns suffix.
    • getAzureDataLakeStoreFileSystemEndpointSuffix

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

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

      public String getLogAnalyticsEndpoint()
      Returns:
      the log analytics endpoint.
    • getApplicationInsightsEndpoint

      public String getApplicationInsightsEndpoint()
      Returns:
      the log analytics endpoint.
    • getUrlByEndpoint

      public String getUrlByEndpoint(AzureEnvironment.Endpoint endpoint)
      Gets the endpoint URL for the current environment.
      Parameters:
      endpoint - the endpoint.
      Returns:
      the URL for the endpoint, null if no match.