Package com.azure.core.management
Class AzureEnvironment
java.lang.Object
com.azure.core.management.AzureEnvironment
An instance of this class describes an environment in Azure.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The enum representing available endpoints in an environment. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AzureEnvironment
Provides the settings for authentication with Azure.static final AzureEnvironment
Provides the settings for authentication with Azure China.static final AzureEnvironment
Deprecated.static final AzureEnvironment
Provides the settings for authentication with Azure US Government. -
Constructor Summary
ConstructorsConstructorDescriptionAzureEnvironment
(Map<String, String> endpoints) Initializes an instance of AzureEnvironment class. -
Method Summary
Modifier and TypeMethodDescriptionGets the Active Directory login endpoint.Gets the Active Directory api version.Gets the resource ID to obtain AD tokens.Gets the log analytics endpoint.Gets the data lake analytics job and catalog service dns suffix.Gets the data lake store filesystem service dns suffix.Gets the Data Lake resource ID.Gets the entirety of the endpoints associated with the current environment.Gets the template gallery endpoint.Gets the Active Directory resource ID.Gets the keyvault service dns suffix.Gets the log analytics endpoint.Gets the managed HSM DNS suffix.Gets the management service endpoint.Gets the Microsoft Graph resource ID.Gets the management portal URL.Gets the publishing settings file URL.Gets the resource management endpoint.Gets the sql server management endpoint for mobile commands.Gets the dns suffix for sql servers.Gets the endpoint suffix for storage accounts.getUrlByEndpoint
(AzureEnvironment.Endpoint endpoint) Gets the endpoint URL for the current environment.static List
<AzureEnvironment> Gets the list of known environments to Azure SDK.
-
Field Details
-
AZURE
Provides the settings for authentication with Azure. -
AZURE_CHINA
Provides the settings for authentication with Azure China. -
AZURE_US_GOVERNMENT
Provides the settings for authentication with Azure US Government. -
AZURE_GERMANY
Deprecated.Provides the settings for authentication with Azure Germany.Microsoft no longer be accepting new customers or deploying any new services from Microsoft Cloud Germany.
-
-
Constructor Details
-
AzureEnvironment
Initializes an instance of AzureEnvironment class.- Parameters:
endpoints
- a map storing all the endpoint info
-
-
Method Details
-
getEndpoints
Gets the entirety of the endpoints associated with the current environment.- Returns:
- the entirety of the endpoints associated with the current environment.
-
knownEnvironments
Gets the list of known environments to Azure SDK.- Returns:
- the list of known environments to Azure SDK.
-
getPortal
Gets the management portal URL.- Returns:
- the management portal URL.
-
getPublishingProfile
Gets the publishing settings file URL.- Returns:
- the publishing settings file URL.
-
getManagementEndpoint
Gets the management service endpoint.- Returns:
- the management service endpoint.
-
getResourceManagerEndpoint
Gets the resource management endpoint.- Returns:
- the resource management endpoint.
-
getSqlManagementEndpoint
Gets the sql server management endpoint for mobile commands.- Returns:
- the sql server management endpoint for mobile commands.
-
getSqlServerHostnameSuffix
Gets the dns suffix for sql servers.- Returns:
- the dns suffix for sql servers.
-
getActiveDirectoryEndpoint
Gets the Active Directory login endpoint.- Returns:
- the Active Directory login endpoint.
-
getActiveDirectoryResourceId
Gets the resource ID to obtain AD tokens.- Returns:
- The resource ID to obtain AD tokens.
-
getGalleryEndpoint
Gets the template gallery endpoint.- Returns:
- the template gallery endpoint.
-
getGraphEndpoint
Gets the Active Directory resource ID.- Returns:
- the Active Directory resource ID.
-
getMicrosoftGraphEndpoint
Gets the Microsoft Graph resource ID.- Returns:
- the Microsoft Graph resource ID.
-
getDataLakeEndpointResourceId
Gets the Data Lake resource ID.- Returns:
- the Data Lake resource ID.
-
getActiveDirectoryGraphApiVersion
Gets the Active Directory api version.- Returns:
- the Active Directory api version.
-
getStorageEndpointSuffix
Gets the endpoint suffix for storage accounts.- Returns:
- the endpoint suffix for storage accounts.
-
getKeyVaultDnsSuffix
Gets the keyvault service dns suffix.- Returns:
- the keyvault service dns suffix.
-
getManagedHsmDnsSuffix
Gets the managed HSM DNS suffix.- Returns:
- the managed HSM DNS suffix.
-
getAzureDataLakeStoreFileSystemEndpointSuffix
Gets the data lake store filesystem service dns suffix.- Returns:
- the data lake store filesystem service dns suffix.
-
getAzureDataLakeAnalyticsCatalogAndJobEndpointSuffix
Gets the data lake analytics job and catalog service dns suffix.- Returns:
- the data lake analytics job and catalog service dns suffix.
-
getLogAnalyticsEndpoint
Gets the log analytics endpoint.- Returns:
- the log analytics endpoint.
-
getApplicationInsightsEndpoint
Gets the log analytics endpoint.- Returns:
- the log analytics endpoint.
-
getUrlByEndpoint
Gets the endpoint URL for the current environment.- Parameters:
endpoint
- the endpoint.- Returns:
- the URL for the endpoint, null if no match.
-
Region.GERMANY_WEST_CENTRAL
orRegion.GERMANY_NORTH
withAZURE
.