"ChainedTokenCredential authentication failed" accessing Key Vault inside container within Pipelines
I have a Typescript application that uses secrets stored within Key Vault. That application sits within a generic Docker container that pulls the application from Azure DevOps Repos and runs the code within. This container is used within an Azure DevOps Pipeline which has a Managed Identity assigned to it.
When running the Typescript code locally, I can connect to Key Vault and run the application, however when running within the pipeline I get a 'ChainedTokenCredential authentication failed' message, as though the Managed Identity is not being propagated through.
How do I pass this Managed Identity through to the container so that the Typescript 'DefaultAzureCredential' function can use it to get all the relevant secrets from KV?