new DocumentIntelligenceClient(new Uri(endpoint), new AzureKeyCredential(apiKey), new DocumentIntelligenceClientOptions( DocumentIntelligenceClientOptions.ServiceVersion.V2024_02_29_Preview) ); var modelId = "prebuilt-layout"; var ops = await client.AnalyzeDocumentAsync( WaitUntil.Started, modelId, analyzeRequest: new AnalyzeDocumentContent() { UrlSource = new Uri(documentUri) }, features: [ DocumentAnalysisFeature.KeyValuePairs, DocumentAnalysisFeature.OcrHighResolution, ], outputContentFormat: ContentFormat.Markdown, cancellationToken: default ); var res = await ops.WaitForCompletionAsync(); var result = res.Value;