## The problem
Issue Azure/azure-sdk-for-python#34091 (closed, 15 comments): from azure.core.credentials import AzureKeyCredential from azure.ai.documentintelligence import DocumentIntelligenceClient from azure.ai.documentintelligence.models import AnalyzeResult endpoint = xxxxxxxxxxxxxxxx key [your value] document_intelligence_client = DocumentIntelligenceClient(endpoint=endpoint, credential=AzureKeyCredential(key)) with open(path_to_sample_documents, "rb") as f: poller = document_intelligence_client.begin_analyze_document( "prebuilt-layout", analyze_request=f, content_type="application/octet-stream" ) I was earlier using FormRecogniser and just wanted to shif

## What to do
AttributeError: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy' means your azure-core is too old. Fix: `pip install --upgrade azure-core`. This also bites Azure CLI upgrades, which do not upgrade azure-core themselves.