AzureProfile Class
- java.
lang. Object - com.
azure. core. management. profile. AzureProfile
- com.
public final class AzureProfile
Azure profile for client.
Constructor Summary
Constructor | Description |
---|---|
AzureProfile(AzureEnvironment environment) |
Creates Azure |
AzureProfile(String tenantId, String subscriptionId, AzureEnvironment environment) |
Creates Azure |
Method Summary
Modifier and Type | Method and Description |
---|---|
Azure |
getEnvironment()
Gets Azure environment. |
String |
getSubscriptionId()
Gets subscription ID. |
String |
getTenantId()
Gets tenant ID. |
Methods inherited from java.lang.Object
Constructor Details
AzureProfile
public AzureProfile(AzureEnvironment environment)
Creates AzureProfile instance with Azure environment. The global environment is AZURE. The tenant ID and subscription ID can be set via environment variables. The environment variables are expected as below:
- AZURE_TENANT_ID
- AZURE_SUBSCRIPTION_ID
Parameters:
AzureProfile
public AzureProfile(String tenantId, String subscriptionId, AzureEnvironment environment)
Creates AzureProfile instance with tenant ID, subscription ID and Azure environment. The global environment is AZURE.
Parameters:
Method Details
getEnvironment
public AzureEnvironment getEnvironment()
Gets Azure environment.
Returns:
getSubscriptionId
public String getSubscriptionId()
Gets subscription ID.
Returns:
getTenantId
public String getTenantId()
Gets tenant ID.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for