public static interface Azure.Authenticated extends AccessManagement
To access the subscription-specific APIs, use Azure.Authenticated.withSubscription(String), or
withDefaultSubscription() if a default subscription has already been previously specified (for example, in a
previously specified authentication file).
| Modifier and Type | Method and Description |
|---|---|
com.azure.resourcemanager.resources.fluentcore.utils.SdkContext |
sdkContext() |
Subscriptions |
subscriptions()
Entry point to subscription management APIs.
|
String |
tenantId() |
Tenants |
tenants()
Entry point to tenant management APIs.
|
Azure |
withDefaultSubscription()
Selects the default subscription as the subscription for the APIs to work with.
|
Azure.Authenticated |
withSdkContext(com.azure.resourcemanager.resources.fluentcore.utils.SdkContext sdkContext)
Specifies sdk context for azure.
|
Azure |
withSubscription(String subscriptionId)
Selects a specific subscription for the APIs to work with.
|
Azure.Authenticated |
withTenantId(String tenantId)
Specifies a specific tenant for azure.
|
activeDirectoryApplications, activeDirectoryGroups, activeDirectoryUsers, roleAssignments, roleDefinitions, servicePrincipalsString tenantId()
com.azure.resourcemanager.resources.fluentcore.utils.SdkContext sdkContext()
Subscriptions subscriptions()
Tenants tenants()
Azure.Authenticated withSdkContext(com.azure.resourcemanager.resources.fluentcore.utils.SdkContext sdkContext)
sdkContext - the sdk contextAzure.Authenticated withTenantId(String tenantId)
Only Graph RBAC APIs require a tenant to be selected.
tenantId - the ID of the tenantAzure withSubscription(String subscriptionId)
Most Azure APIs require a specific subscription to be selected.
subscriptionId - the ID of the subscriptionAzure withDefaultSubscription()
The default subscription can be specified inside the Azure profile using AzureProfile. If no default subscription provided, we will try to set the only
subscription if applicable returned by Azure.Authenticated.subscriptions()
IllegalStateException - when no subscription or more than one subscription found in the tenant./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/