/// <summary> /// Gets the systemAssignedIdentity available under the specified RP scope. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scope'> /// The resource provider scope of the resource. Parent resource being extended /// by Managed Identities. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SystemAssignedIdentity> GetByScopeAsync(this ISystemAssignedIdentitiesOperations operations, string scope, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByScopeWithHttpMessagesAsync(scope, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the systemAssignedIdentity available under the specified RP scope. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scope'> /// The resource provider scope of the resource. Parent resource being extended /// by Managed Identities. /// </param> public static SystemAssignedIdentity GetByScope(this ISystemAssignedIdentitiesOperations operations, string scope) { return(operations.GetByScopeAsync(scope).GetAwaiter().GetResult()); }