<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bash on PAUL'S BLOG</title><link>https://paulyu.dev/tags/bash/</link><description>Recent content in Bash on PAUL'S BLOG</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 27 Feb 2023 13:09:20 -0800</lastBuildDate><atom:link href="https://paulyu.dev/tags/bash/index.xml" rel="self" type="application/rss+xml"/><item><title>Purging Deleted Azure Key Vaults</title><link>https://paulyu.dev/code/purging-deleted-azure-vaults/</link><pubDate>Mon, 27 Feb 2023 13:09:20 -0800</pubDate><guid>https://paulyu.dev/code/purging-deleted-azure-vaults/</guid><description>&lt;p&gt;Do you constantly provision and delete Azure Key Vaults?&lt;/p&gt;
&lt;p&gt;If so, you may have noticed attempts to recreate a recently deleted key vault will result in the following error:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;The vault name is already in use.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is because Azure Key Vaults are kept in a deleted state and not automatically purged. You must manually purge these key vaults to be able to reuse the name.&lt;/p&gt;
&lt;p&gt;To confirm the key vault in question is in &amp;ldquo;deleted&amp;rdquo; state, you can run the following:&lt;/p&gt;</description></item></channel></rss>