public static interface AzureResourceManager.Authenticated extends AccessManagement
To access the subscription-specific APIs, use AzureResourceManager.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 |
|---|---|
Subscriptions |
subscriptions()
Entry point to subscription management APIs.
|
String |
tenantId() |
Tenants |
tenants()
Entry point to tenant management APIs.
|
AzureResourceManager |
withDefaultSubscription()
Selects the default subscription as the subscription for the APIs to work with.
|
AzureResourceManager |
withSubscription(String subscriptionId)
Selects a specific subscription for the APIs to work with.
|
AzureResourceManager.Authenticated |
withTenantId(String tenantId)
Specifies a specific tenant for azure.
|
activeDirectoryApplications, activeDirectoryGroups, activeDirectoryUsers, roleAssignments, roleDefinitions, servicePrincipalsString tenantId()
Subscriptions subscriptions()
Tenants tenants()
AzureResourceManager.Authenticated withTenantId(String tenantId)
Only Graph RBAC APIs require a tenant to be selected.
tenantId - the ID of the tenantAzureResourceManager withSubscription(String subscriptionId)
Most Azure APIs require a specific subscription to be selected.
subscriptionId - the ID of the subscriptionAzureResourceManager 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 AzureResourceManager.Authenticated.subscriptions()
IllegalStateException - when no subscription or more than one subscription found in the tenant.Copyright © 2021 Microsoft Corporation. All rights reserved.