public async Task <IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function)] HttpRequest request, ILogger log) { var databaseAccount = await documentClient.GetDatabaseAccountAsync(); return(new OkObjectResult(new { databaseId = databaseAccount.Id, })); }