AuthorizationExtensions.ElevateAccessGlobalAdministratorAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Elevates access for a Global Administrator. <item> Mocking. To mock this method, please mock ElevateAccessGlobalAdministratorAsync(CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response> ElevateAccessGlobalAdministratorAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default);
static member ElevateAccessGlobalAdministratorAsync : Azure.ResourceManager.Resources.TenantResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
<Extension()>
Public Function ElevateAccessGlobalAdministratorAsync (tenantResource As TenantResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- tenantResource
- TenantResource
The TenantResource the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
tenantResource is null.