## TL;DR

Fix: pip install --upgrade azure-core. This also bites Azure CLI upgrades, which do not upgrade azure-core themselves.

## Steps

1. 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.

## When to use

You are seeing this: AttributeError: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy' means your azure-core is too old. Use this skill when you run into "AttributeError: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy'".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
