<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mohit Sinha on Medium]]></title>
        <description><![CDATA[Stories by Mohit Sinha on Medium]]></description>
        <link>https://medium.com/@sinhamohit19?source=rss-f650d34b5b66------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jxv88Oql2bckOIfRCkgPLA.jpeg</url>
            <title>Stories by Mohit Sinha on Medium</title>
            <link>https://medium.com/@sinhamohit19?source=rss-f650d34b5b66------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:37:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sinhamohit19/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Secure CI/CD Pipeline with Private Access to Azure Key Vault]]></title>
            <link>https://medium.com/@sinhamohit19/building-a-secure-ci-cd-pipeline-with-private-access-to-azure-key-vault-4d40c876facd?source=rss-f650d34b5b66------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d40c876facd</guid>
            <category><![CDATA[azure-key-vault]]></category>
            <category><![CDATA[azure-pipelines]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[azure-private-endpoint]]></category>
            <category><![CDATA[self-hosted-agent]]></category>
            <dc:creator><![CDATA[Mohit Sinha]]></dc:creator>
            <pubDate>Thu, 31 Jul 2025 17:52:21 GMT</pubDate>
            <atom:updated>2025-07-31T17:52:21.034Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Everyone!</p><p>In my previous <a href="https://medium.com/@sinhamohit19/how-to-use-microsoft-hosted-agents-to-fetch-secrets-from-azure-key-vault-with-public-access-enabled-fc9d48df6c7b">blog</a> post, I walked through the process of fetching secrets from Azure Key Vault using Microsoft-hosted agents in Azure DevOps. That setup is simple and useful for many scenarios — but it relies on selected public access to Azure Key Vault, which may not be suitable for production or compliance-sensitive environments.</p><p>In this blog, we take it one step deeper. We’ll see how to securely fetch secrets from an Azure Key Vault hosted in a private network, using a Self-hosted Agent.</p><p><strong>Prerequisites:</strong></p><ul><li><strong>Azure Virtual Network </strong>with two subnets (Default and PeSubnet).</li><li><strong>Azure</strong> <strong>Virtual Machine</strong> hosted in the Default subnet and it should be configured as Self-Hosted agent in Azure DevOps.</li><li><strong>Azure Key Vault</strong> with secrets (secret1 and secret2) in it. Also, The networking section should have below configuration.</li><li>Public access is disabled.</li><li>Private Endpoint is created and added to a PeSubnet subnet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TCSzlk53yb7XbVpmz4ESxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlbhKgJsVzFJnIsYVHBtOA.png" /></figure><ul><li>A <strong>service connection</strong> in Azure DevOps of Azure Resource Manager type.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z7OJ5kpBPby4mKrh200ILA.png" /></figure><ul><li>The service principal used in the Service connection should have <strong>get and list</strong> permission in the Azure Key vault access policies and should have role assignment(IAM) of “Key Vault contributor” or “Contributor”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*M5LmLYBmC4UK28IVOCfbug.png" /></figure><p>On Azure DevOps, make sure the Self-Hosted agent is up and running.</p><p>Now, go to your Azure Pipelines and create a new pipeline. Add the below tasks in the pipeline.</p><ul><li>Add Azure key-vault task in your YAML.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mt6W2Biflw7zQHVTy3Ef4w.png" /></figure><pre>  - task: AzureKeyVault@2<br>    inputs:<br>      azureSubscription: &#39;Azure-DevOps-sp&#39;<br>      KeyVaultName: &#39;key-vault-test-mohit&#39;<br>      SecretsFilter: &#39;*&#39;<br>      RunAsPreJob: false</pre><ul><li>To verify that the secret was successfully downloaded from Azure Key Vault, you can use a Bash or Command Line script to write the value of <strong>secret1 </strong>to a file named <strong>secret.txt</strong>.</li></ul><pre>  - task: CmdLine@2<br>    inputs:<br>      script: &#39;echo $(secret1) &gt; secret.txt&#39;</pre><ul><li>Add a copy activity to copy the secret.txt file into Artifact staging directory (Optional step)</li></ul><pre>  - task: CopyFiles@2<br>    inputs:<br>      Contents: secret.txt<br>      targetFolder: &#39;$(Build.ArtifactStagingDirectory)&#39;</pre><ul><li>Add publish Build artifact task to upload the secrets.txt file as a pipeline artifact (Optional step)</li></ul><pre>  - task: PublishBuildArtifacts@1<br>    inputs:<br>      PathtoPublish: &#39;$(Build.ArtifactStagingDirectory)&#39;<br>      ArtifactName: &#39;drop&#39;<br>      publishLocation: &#39;Container&#39;</pre><ul><li>Now, you can save and run the pipeline.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h7NbTHpESdvmdEEBOJ6nXQ.png" /></figure><p>The optional steps shown in this blog for printing or verifying the value of secrets are <strong>only for demonstration purposes</strong> and are <strong>not recommended</strong> in a real pipeline.</p><p>In practice, using the <strong>Azure Key Vault task</strong> in the pipeline is sufficient to fetch secrets securely. These secrets can then be referenced and used in subsequent steps without exposing their values.</p><p><strong>Conclusion:</strong></p><p>So in this article we have seen how we can easily fetch secrets from a key vault enabled with private endpoint using Azure DevOps pipelines.</p><p>This setup provides a secure, private channel to access Azure Key Vault in Azure DevOps. It requires a bit more effort than using Microsoft-hosted agents, but it’s essential for enterprise-grade deployments that demand stricter security postures.</p><p>Please let me know if this was helpful also if I have missed out on any information.</p><p>Till then please stay safe and happy learning :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d40c876facd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deploy Kubernetes manifest in AKS cluster enabled with Microsoft Entra ID authentication…]]></title>
            <link>https://medium.com/@sinhamohit19/how-to-deploy-kubernetes-manifest-in-aks-cluster-enabled-with-microsoft-entra-id-authentication-6b7f5779cd7e?source=rss-f650d34b5b66------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b7f5779cd7e</guid>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[azure-kubernetes-service]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[yaml]]></category>
            <category><![CDATA[service-connection]]></category>
            <dc:creator><![CDATA[Mohit Sinha]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 14:35:10 GMT</pubDate>
            <atom:updated>2025-01-08T14:35:10.769Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to deploy Kubernetes manifest in AKS cluster enabled with Microsoft Entra ID authentication with Kubernetes RBAC using Azure DevOps</h3><p>Hello Everyone!</p><p>This blog will offer DevOps engineers a detailed, step-by-step guide for deploying Kubernetes manifests to an Azure Kubernetes Service (AKS) cluster enabled with Microsoft Entra ID authentication and Kubernetes RBAC, all through Azure DevOps for CI/CD. The article will concentrate on automating the deployment process, empowering teams to effectively manage Kubernetes workloads via a streamlined continuous integration and deployment pipeline.</p><p><strong>Prerequisites:</strong></p><ol><li><strong>Azure Kubernetes (AKS) Cluster</strong> enabled with Microsoft Entra ID authentication with Kubernetes RBAC.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3BG8YoxEaegryEhmTbekKg.png" /></figure><p>when we create a cluster enabled with Entra Id, we need to create Azure AD group as well and add it to AKS. we have created group “AKS-Admin”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SXebfoTxGOO55WLvwujPIQ.png" /></figure><p>2. <strong>Create a Service principle</strong> in Entra ID. This service principle will be used to setup service connection in Azure DevOps. Please note the client_id and client_password. These credentials will be required to set up service connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iTfOXFb_CsSHVFXvsOHTzA.png" /></figure><p>You will need to provide the below role assignments and also add this SP in the <strong>AKS-Admin</strong> group as member.</p><ul><li>Azure Kubernetes Service Cluster Admin role</li><li>Azure Kubernetes Service Cluster User role</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W_hUZjVkZxaasacHDbKKiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hp7ieIboXgY_0CK3G8mo-A.png" /></figure><p>3. create a <strong>Service Connection</strong> in Azure DevOps of ARM type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3h3SnR7I5Z-PunKK9udePA.png" /></figure><p>Now, we will start configuring our Release pipeline.</p><p>Go to pipeline section and create a new release pipeline. Add below steps in your pipeline to deploy the Kubernetes manifest file to your AKS cluster. The Artifact used in the pipeline is coming from the Build pipeline which produces the Deployment and Service YAML scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yMmMql9UZQ6w7aKSzpQWWw.png" /></figure><ul><li>The agent used in the pipeline is an Ubuntu agent.</li><li>Add “Kubelogin tool installer” as the first task.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9dvysP2X_wqoFXdTdJRPA.png" /></figure><ul><li>Add Azure CLI task next.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xTn2PZ3eHAduNTO6VAKPmw.png" /></figure><pre>az aks get-credentials --resource-group &lt;rg-name&gt;--name &lt;aks-name&gt;--overwrite-existing<br>kubelogin convert-kubeconfig -l azurecli<br>kubectl get deployments --all-namespaces=true</pre><ul><li>Add Deploy to Kubernetes task next to create a secret. This secret will be used in the subsequent step to Pull the image from the ACR. The secret provides authentication for AKS to pull the Images.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZwyyd-3STGuogsvkjsgMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1VsoasDP2eERShVVFgmvrg.png" /></figure><p>This above task will create a secret with name “doc-secret” in your AKS cluster.</p><ul><li>add another Deploy to Kubernetes task and use deploy action.</li><li>select your Kubernetes-manifest files.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X41ymAHutRR5nrmyK4UDrw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3OHIRRcb8F-m-Ylp8eMqgQ.png" /></figure><p>Since, During our Build Process we used BuildId to tag our images, so we are using $(Build.BuildId) in the containers.</p><p>Now save the pipeline and create a release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gplHLpH_FYeSLoCsNpz2og.png" /></figure><p><strong>Conclusion:</strong></p><p>So in this article we have seen how we can deploy Kubernetes manifest in AKS cluster enabled with Microsoft Entra ID authentication with Kubernetes RBAC using Azure DevOps</p><p>Another goal of this article is to deploy workloads on the Kubernetes cluster using Azure resource manager (ARM) type of Service connection. Note: we have not used Kubernetes type of service connection.</p><p>Please let me know if this was helpful also if I have missed out on any information.</p><p>Till then please stay safe and happy learning :)</p><p><strong>References:</strong></p><ul><li><a href="https://learn.microsoft.com/en-us/answers/questions/1048362/cannot-setup-a-kubernetes-service-connection-witho">Cannot setup a Kubernetes Service Connection without enabling local accounts - Microsoft Q&amp;A</a></li><li><a href="https://learn.microsoft.com/en-us/azure/aks/control-kubeconfig-access">Limit access to kubeconfig in Azure Kubernetes Service (AKS) - Azure Kubernetes Service</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b7f5779cd7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Passing Dynamic Build Pipeline Values into Release Pipelines for Automation]]></title>
            <link>https://medium.com/@sinhamohit19/passing-dynamic-build-pipeline-values-into-release-pipelines-for-automation-1520906b3237?source=rss-f650d34b5b66------2</link>
            <guid isPermaLink="false">https://medium.com/p/1520906b3237</guid>
            <dc:creator><![CDATA[Mohit Sinha]]></dc:creator>
            <pubDate>Fri, 20 Dec 2024 14:22:57 GMT</pubDate>
            <atom:updated>2024-12-20T14:24:57.819Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Everyone!</p><p>For the past few days, I’ve been exploring ways to pass a value generated in a build pipeline to a release pipeline in Azure DevOps. However, I found that there is no direct or built-in method to achieve this. After some research and experimentation, I discovered a workaround using Azure CLI to transfer the necessary values from the build pipeline to the release pipeline. In this article, I’ll guide you through the process step by step, helping you automate the flow of data between these two critical stages of your CI/CD pipeline.</p><p><strong>Prerequisites:</strong></p><p>PAT token of Azure DevOps with read, write and manage permission on variable group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*NLDYTvoo8UFF38OA2oPktQ.png" /></figure><ol><li>Create a Variable group in ADO.<br>Go to library and create a new variable group.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEaPcJqJqahS1ZSJbWWG6Q.png" /></figure><p>Add a variable in the group. This variable will be used for passing the value from Build pipeline to release pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HuJnxU-TnR-I4ihmMRY6lQ.png" /></figure><p>Once the variable group is created, please note down the variableGroupId.<br>you can find the variable group id in the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-z8pGbC2q0-WfWvRe-f5Q.png" /></figure><p>2. Create a Build Pipeline.</p><ul><li>add a bash script to login in ADO.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-_GnB949hXvBnGL8FNI1Q.png" /></figure><pre>echo $(PAT) | az devops login --org $(org)</pre><ul><li>add another bash script to update the variable.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hVTgCHj1K7AoorWqcVJXZA.png" /></figure><pre>az pipelines variable-group variable update --group-id &quot;$(variableGroupId)&quot; --name &quot;$(variableName)&quot; --value &quot;$(variableValue)&quot; --org $(org) --project $(system.teamProject)</pre><ul><li>add variables used in the az command.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IgzvR_0by0bnVJOXYoA3rQ.png" /></figure><ul><li>save and run the pipeline. The “CommitMessage” variable in the library will be updated. we are dynamically creating the Commit message of last code commit and passing this information to the release pipeline.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhK9CRtegnzg2BSVisV2JA.png" /></figure><ul><li>you check the updated value in the Library.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nk0FAb4groidaKODlsrHQA.png" /></figure><p>3. Create a release pipeline to consume the value of CommitMessage variable.</p><ul><li>link the variable group in your release pipeline.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O8tDGckViabKdeXEhsZ0-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4JpwXo3mLJVNF795zYtrrQ.png" /></figure><ul><li>add a bash task to consume the value of variable.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iNR9nQjiFvSQmvljd_knWA.png" /></figure><ul><li>Save and Create a Release.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*B0x_-SNV-H0bunvy6b_bDA.png" /></figure><p><strong>Conclusion:</strong></p><p>So in this article we have seen how we can easily pass a value dynamically generated in a Build Pipeline to a Release Pipeline.</p><p>Please let me know if this was helpful also if I have missed out on any information.</p><p>Till then please stay safe and happy learning :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1520906b3237" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use Microsoft Hosted Agents to Fetch Secrets from Azure Key Vault with Public access enabled…]]></title>
            <link>https://medium.com/@sinhamohit19/how-to-use-microsoft-hosted-agents-to-fetch-secrets-from-azure-key-vault-with-public-access-enabled-fc9d48df6c7b?source=rss-f650d34b5b66------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc9d48df6c7b</guid>
            <dc:creator><![CDATA[Mohit Sinha]]></dc:creator>
            <pubDate>Fri, 06 Dec 2024 05:27:19 GMT</pubDate>
            <atom:updated>2024-12-06T05:50:23.493Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Use Microsoft Hosted Agents to Fetch Secrets from Azure Key Vault with Public access enabled from specific Virtual Network and IPs</h3><p>Hello Everyone!</p><p>In modern cloud-based applications, accessing sensitive information, such as secrets and credentials, securely is a crucial part of maintaining a strong security posture. Azure Key Vault is a key service that helps store and manage these secrets.</p><p>This article walks through the process of fetching secrets from Azure Key Vault, ensuring that the Key Vault is not directly exposed to public access. By configuring the Key Vault to allow access only from a specific virtual network and IP address, you can ensure that security of secrets is enhanced. This approach allows you to maintain the convenience of using Microsoft-hosted agents for CI/CD pipelines while protecting sensitive data from unauthorized access.</p><p><strong>Prerequisites:</strong></p><ul><li><strong>Azure Key Vault</strong> with secrets in it. Also, The networking section should have below configuration.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iph7BSZdSPoik-nnJKNCLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hpoQPuYfc2zGwSVrwZmNYg.png" /></figure><ul><li>A <strong>service connection</strong> in Azure DevOps of Azure Resource Manager type.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tPhbSW93pkHc_I58dYnJow.png" /></figure><ul><li>The service principal used in the Service connection should have <strong>get and list</strong> permission in the Azure Key vault access policies and should have role assignment(IAM) of “Key Vault contributor” or “Contributor”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*Fs5tpL9uDoR0nQ4smaMQqg.png" /></figure><p>Now, go to your Azure Pipelines and create a new pipeline. Add the below tasks in the pipeline.</p><ul><li>Add a Bash script to get the Current Build Agent IP.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P1dWRKuvuNErjG6aINXbug.png" /></figure><pre>&#39;echo &quot;##vso[task.setvariable variable=BuildAgentIP]$(curl http://ifconfig.me/ip)&quot;&#39;</pre><ul><li>Add another bash script to print the IP on the console.(optional step)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*g1mytr8-EZC9FDJNb0T4Qg.png" /></figure><pre>&#39;echo &#39;&#39;Current Build Agent IP is $(BuildAgentIP)&#39;&#39;&#39;</pre><ul><li>Use Azure CLI commands to add the Build Agent IP in the key vault<br>network.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ww3tULnXxX8uVyjrFx-Afw.png" /></figure><pre>  - task: AzureCLI@2<br>    inputs:<br>      azureSubscription: &#39;Service-Connection-name&#39;<br>      scriptType: &#39;pscore&#39;<br>      scriptLocation: &#39;inlineScript&#39;<br>      inlineScript: &#39;az keyvault network-rule add --name &#39;&#39;key-vault-name&#39;&#39; --ip-address $(BuildAgentIP)&#39;</pre><ul><li>Add Azure key vault task to fetch the secrets from the Key-vault. Note RunAsPreJob field should be false and don’t use variable group else you’ll get authorization error.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*H3mDFmyvc2z-oDlF7Eawig.png" /></figure><pre>  - task: AzureKeyVault@2<br>    inputs:<br>      azureSubscription: &#39;Service-Connection-name&#39;<br>      KeyVaultName: &#39;key-vault-name&#39;<br>      SecretsFilter: &#39;*&#39;<br>      RunAsPreJob: false</pre><ul><li>Once Secret is fetched, you can use it in the relevant task, As a last step remove the Build Agent IP from the Key-Vault using Azure Cli commands.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k6FwMT8fTCPFuhNtg3EdoA.png" /></figure><pre>  - task: AzureCLI@2<br>    inputs:<br>      azureSubscription: &#39;Service-Connection-name&#39;<br>      scriptType: &#39;pscore&#39;<br>      scriptLocation: &#39;inlineScript&#39;<br>      inlineScript: &#39;az keyvault network-rule remove --name &#39;&#39;key-vault-name&#39;&#39; --ip-address $(BuildAgentIP)&#39;</pre><ul><li>Now, you can save and run the pipeline.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tNiATPbyuWgZlSNzJ_SKsg.png" /></figure><p><strong>Conclusion:</strong></p><p>So in this article we have seen how we can easily fetch secrets from a key vault enabled with public access from selected virtual network and IPs using Azure DevOps pipelines.</p><p>The goal of this article is to examine one of the various methods for retrieving secrets from Key Vault, particularly in scenarios where enhanced security is required. The recommended approach is to enable a private endpoint for the Key Vault and utilize Self-Hosted Agents.</p><p>Please let me know if this was helpful also if I have missed out on any information.</p><p>Till then please stay safe and happy learning :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc9d48df6c7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>