<?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 Ravindra Devrani</title><link>https://ravindradevrani.com/tags/azure/</link><description>Recent content in Azure on Ravindra Devrani</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 22 Sep 2025 10:25:42 +0530</lastBuildDate><atom:link href="https://ravindradevrani.com/tags/azure/index.xml" rel="self" type="application/rss+xml"/><item><title>Azure Key Vault With Dotnet</title><link>https://ravindradevrani.com/posts/azure-key-vault-with-dotnet/</link><pubDate>Mon, 22 Sep 2025 10:25:42 +0530</pubDate><guid>https://ravindradevrani.com/posts/azure-key-vault-with-dotnet/</guid><description>&lt;!-- raw HTML omitted -->
&lt;p>First of all, let&amp;rsquo;s see what are we going to achieve? Let&amp;rsquo;s say we have an dotnet 9 api application.&lt;/p>
&lt;p>Its &lt;code>appsettings.json&lt;/code> looks like:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-js" data-lang="js">&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;Color&amp;#34;&lt;/span>&lt;span style="color:#f92672">:&lt;/span> &lt;span style="color:#e6db74">&amp;#34;Color from appsettings&amp;#34;&lt;/span>,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;Person&amp;#34;&lt;/span>&lt;span style="color:#f92672">:&lt;/span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;Name&amp;#34;&lt;/span>&lt;span style="color:#f92672">:&lt;/span> &lt;span style="color:#e6db74">&amp;#34;Name from appsettings&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Let&amp;rsquo;s try to retrieve these values:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-cs" data-lang="cs">&lt;span style="display:flex;">&lt;span>app.MapGet(&lt;span style="color:#e6db74">&amp;#34;/&amp;#34;&lt;/span>, (IConfiguration config) =&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>{
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">string&lt;/span> color = config.GetSection(&lt;span style="color:#e6db74">&amp;#34;Color&amp;#34;&lt;/span>).Value ?? &lt;span style="color:#e6db74">&amp;#34;No color&amp;#34;&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">string&lt;/span> name = config.GetSection(&lt;span style="color:#e6db74">&amp;#34;Person:Name&amp;#34;&lt;/span>).Value ?? &lt;span style="color:#e6db74">&amp;#34;No name&amp;#34;&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">return&lt;/span> Results.Ok(&lt;span style="color:#66d9ef">new&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> color,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> name,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> message = &lt;span style="color:#e6db74">&amp;#34;Hello there...&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> });
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>});
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>If you visit this endpoint, you will see this output:&lt;/p></description></item><item><title>Azure App Configuration With Dotnet(C#)</title><link>https://ravindradevrani.com/posts/azure-app-configuration-with-dotnet-csharp/</link><pubDate>Sat, 20 Sep 2025 16:56:26 +0530</pubDate><guid>https://ravindradevrani.com/posts/azure-app-configuration-with-dotnet-csharp/</guid><description>&lt;!-- raw HTML omitted -->
&lt;ul>
&lt;li>Azure &lt;code>App Configuration&lt;/code> is a fully managed service, which provides you a way to store the configurations in a centralized store. You can store configurations of multiple apps in a single place.&lt;/li>
&lt;li>It is really helpful for cloud native application (eg. Microservices), which runs on multiple virtual machines and use multiple external services.&lt;/li>
&lt;li>It allows us to store Key-value pairs, manage feature flags, and organize configurations using labels and namespaces.&lt;/li>
&lt;li>The main benefit is, it supports &lt;a href="https://learn.microsoft.com/en-us/azure/azure-app-configuration/enable-dynamic-configuration-aspnet-core">dynamic refreshing&lt;/a>. Which means, you can change config values without restarting the app.&lt;/li>
&lt;li>You can also add reference of azure key vault secret here.&lt;/li>
&lt;/ul>
&lt;p>Let&amp;rsquo;s see these things in action.&lt;/p></description></item><item><title>Azure Blob Storage : CRUD With AspNetCore Mvc &amp; SQL Server</title><link>https://ravindradevrani.com/posts/blob-storage-with-dotnet-mvc/</link><pubDate>Mon, 08 Sep 2025 12:49:37 +0530</pubDate><guid>https://ravindradevrani.com/posts/blob-storage-with-dotnet-mvc/</guid><description>&lt;!-- raw HTML omitted -->
&lt;p>&lt;code>Azure blob storage&lt;/code> is a storage solution provided by microsoft. You can store data like images, audio, video, json files, zip files etc etc in the azure.&lt;/p>
&lt;h2 id="what-are-we-going-to-learn">What are we going to learn?&lt;/h2>
&lt;ul>
&lt;li>How to create a web application that stores and manipulate the images in the cloud.&lt;/li>
&lt;li>We will perform all the CRUD (create, read, update and delete) operations.&lt;/li>
&lt;/ul>
&lt;h2 id="tech-used">Tech used&lt;/h2>
&lt;ul>
&lt;li>.NET Core 9 (MVC app)&lt;/li>
&lt;li>SQL server 2022&lt;/li>
&lt;li>Azure storage account&lt;/li>
&lt;/ul>
&lt;h2 id="high-level-overview">High level overview&lt;/h2>
&lt;ul>
&lt;li>We will save &lt;code>image url&lt;/code> in the database and images in the &lt;code>storage account(blob container)&lt;/code>&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="lets-create-an-storage-account-first">Let&amp;rsquo;s create an storage account first&lt;/h2>
&lt;p>Step 1:
&lt;img src="https://ravindradevrani.com/images/blobstorage/blob_1.png" alt="create azure storage account 1">&lt;/p></description></item><item><title>Cosmos DB For NoSQL - CRUD With Dotnet</title><link>https://ravindradevrani.com/posts/cosmos-db-crud-with-dotnet/</link><pubDate>Sun, 07 Sep 2025 21:37:42 +0530</pubDate><guid>https://ravindradevrani.com/posts/cosmos-db-crud-with-dotnet/</guid><description>&lt;!-- raw HTML omitted -->
&lt;p>&lt;code>Azure Cosmos DB for NoSQL&lt;/code> is a fully managed and serverless &lt;code>NoSQL&lt;/code> and &lt;code>vector database&lt;/code> for modern app development, including AI applications and agents. With its SLA-backed speed and availability as well as instant dynamic scalability, it is ideal for real-time NoSQL applications that require high performance and distributed computing over massive volumes of NoSQL and vector data.&lt;/p>
&lt;p>&lt;strong>Soruce:&lt;/strong> learn.microsoft.com, you can learn more about it from &lt;a href="https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/overview">here&lt;/a>&lt;/p></description></item></channel></rss>