<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Azure on Munish Thakur | DevOps Engineer</title><link>https://methakur.info/tags/azure/</link><description>Recent content in Azure on Munish Thakur | DevOps Engineer</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 28 Oct 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://methakur.info/tags/azure/index.xml" rel="self" type="application/rss+xml"/><item><title>Azure Authentication in Kubernetes: A Troubleshooting Guide</title><link>https://methakur.info/blog/azure-auth-kubernetes/</link><pubDate>Mon, 28 Oct 2024 00:00:00 +0000</pubDate><guid>https://methakur.info/blog/azure-auth-kubernetes/</guid><description>&lt;p>Django migrations were failing in our Kubernetes cluster. The error looked innocent enough:&lt;/p>
&lt;div class="highlight">&lt;div style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
&lt;table style="border-spacing:0;padding:0;margin:0;border:0;">&lt;tr>&lt;td style="vertical-align:top;padding:0;margin:0;border:0;">
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code>&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
&lt;/span>&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>azure&lt;span style="color:#ff79c6">.&lt;/span>identity&lt;span style="color:#ff79c6">.&lt;/span>_exceptions&lt;span style="color:#ff79c6">.&lt;/span>ClientAuthenticationError: 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>DefaultAzureCredential failed to retrieve a token &lt;span style="color:#ff79c6">from&lt;/span> the included credentials&lt;span style="color:#ff79c6">.&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>But this single error was blocking all database migrations, meaning &lt;strong>no deployments&lt;/strong>.&lt;/p>
&lt;h2 id="the-problem">The Problem&lt;/h2>
&lt;p>Our Django app used Azure Blob Storage for file uploads. During migration, Django initializes all storage backends - including Azure. But the pod had no credentials.&lt;/p></description></item></channel></rss>