<?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 Bijan Camp on Medium]]></title>
        <description><![CDATA[Stories by Bijan Camp on Medium]]></description>
        <link>https://medium.com/@bijancamp?source=rss-4c4488fdb8ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mr9C-HFbnnJRQCS_K-dnWQ.png</url>
            <title>Stories by Bijan Camp on Medium</title>
            <link>https://medium.com/@bijancamp?source=rss-4c4488fdb8ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:44:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bijancamp/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[VS Code Dev Containers with Podman Desktop on Windows]]></title>
            <link>https://medium.com/@bijancamp/vs-code-dev-containers-with-podman-desktop-on-windows-c31ccdc11775?source=rss-4c4488fdb8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/c31ccdc11775</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[podman]]></category>
            <dc:creator><![CDATA[Bijan Camp]]></dc:creator>
            <pubDate>Mon, 24 Mar 2025 02:01:45 GMT</pubDate>
            <atom:updated>2025-03-24T02:01:45.270Z</atom:updated>
            <content:encoded><![CDATA[<p>My friend and tech lead at <a href="https://www.qsc.com/">QSC</a> told me that he was considering switching from Docker to Podman on his Windows host. I had never used Podman before, but I was interested in trying it out with dev containers in Visual Studio Code and seeing if it was maybe something we could use going forward.</p><p>While doing some preliminary research, I came across blog posts, GitHub issues, and Stack Overflow questions that made it seem like there would be a lot of troubleshooting and configuration with getting everything set up on Windows. But it turns out that in 2025, it’s actually very simple to get set up with using Podman for VS Code dev containers on Windows!</p><p>This post walks through how to do this.</p><h3>Prerequisites</h3><p>Make sure you have the following prerequisites:</p><ul><li>At least 6 GB of RAM for Podman</li><li>Windows 10 (64-bit, Build 19043 or higher) or Windows 11</li><li>Admin privileges</li><li>If on a virtual machine, <a href="https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/enable-nested-virtualization#configure-nested-virtualization">enable nested virtualization</a></li><li>Visual Studio Code</li></ul><h3>Install Podman Desktop and Podman</h3><p>Follow the <a href="https://podman-desktop.io/docs/installation/windows-install">official docs</a> to install Podman Desktop, Podman, and create a Podman machine.</p><p>In the end, you should see something like this:</p><figure><img alt="Podman Desktop after installation" src="https://cdn-images-1.medium.com/max/1024/0*dq_MyPr__zfOQFaQ.png" /></figure><p>If you created a Podman machine that is WSL-based (recommended), the resources available to your Podman machine are the same as those that are globally shared across all your WSL distributions. You can see your resource limits by going to <strong>Settings → Resources</strong>:</p><figure><img alt="Podman machine resources" src="https://cdn-images-1.medium.com/max/815/0*kbu6H5QVZdcjgvXy.png" /></figure><p>If you need to adjust these limits, you can create a <a href="https://learn.microsoft.com/en-us/windows/wsl/wsl-config#wslconfig">.wslconfig</a>.</p><h3>Set Up VS Code</h3><p>First, install the <a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers">Dev Containers</a> extension for VS Code.</p><p>Then, update your dev.containers.dockerPath setting to podman:</p><figure><img alt="VS Code setting for Docker path" src="https://cdn-images-1.medium.com/max/921/0*j9chuy9it0DyeOBz.png" /></figure><h3>Trying It Out</h3><p>You should now be ready to run dev containers from VS Code with Podman. To try it out, from the Command Palette in VS Code (F1 or Ctrl+Shift+p), run the command <strong>Dev Containers: Try a Dev Container Sample…</strong> and select any of the samples:</p><figure><img alt="Dev container sample options" src="https://cdn-images-1.medium.com/max/599/0*t-rlW82Rv8j_c3hV.png" /></figure><p>VS Code will reload the window and then build and start the selected dev container. If everything goes well, you should see “Dev Container,” along with the name of your chosen sample, in the bottom left corner of the Status bar:</p><figure><img alt="Successful status bar indicator" src="https://cdn-images-1.medium.com/max/337/0*m-7SJBAlSrnOcSBg.png" /></figure><p>And that’s it! We have successfully installed Podman on Windows and set up VS Code to use it for dev containers! 🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c31ccdc11775" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Feature Flags in Azure Synapse Analytics with Azure App Configuration]]></title>
            <link>https://medium.com/@bijancamp/implementing-feature-flags-in-azure-synapse-analytics-with-azure-app-configuration-b42ae2649327?source=rss-4c4488fdb8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/b42ae2649327</guid>
            <category><![CDATA[azure-app-configuration]]></category>
            <category><![CDATA[azure-synapse-analytics]]></category>
            <category><![CDATA[feature-flags]]></category>
            <category><![CDATA[azure-data-engineer]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Bijan Camp]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 00:00:55 GMT</pubDate>
            <atom:updated>2023-07-02T03:35:05.750Z</atom:updated>
            <content:encoded><![CDATA[<p>A common technique used in software development is the use of <a href="https://martinfowler.com/articles/feature-toggles.html">feature toggles</a>, or <strong>feature flags</strong>. These tools help us to accomplish continuous integration, delivery, and release on demand. They’re valuable in mitigating the risks associated with introducing changes, allowing us to continuously integrate and deploy with confidence.</p><p><strong>What about in the world of data engineering?</strong> In this realm, too, feature flags can be quite handy! We can utilize them in our data pipelines to make changes to data ingestion, loading, and transformation processes fearlessly. If you’re using Azure Synapse Analytics, this translates to integrating feature flags directly into your data pipelines and notebooks.</p><p>So, how can we do this? There are many approaches, but in this guide, we’ll focus on a solution using Microsoft’s managed service offering, <a href="https://azure.microsoft.com/en-us/products/app-configuration"><strong>Azure App Configuration</strong></a>. This tool offers centralized application settings and feature flag management, providing a convenient way to modify our data systems’ behavior at runtime.</p><p>So let’s dive right into it!</p><p>This post is divided into sections, guiding you on how to:</p><ol><li><strong>Create an Azure App Configuration store.</strong></li><li><strong>Integrate Azure App Configuration into Synapse pipelines.</strong></li><li><strong>Integrate Azure App Configuration into Synapse (PySpark) notebooks.</strong></li></ol><p>Before starting, make sure you have all the prerequisites mentioned in the section below.</p><p><strong>Bonus</strong>: I have also provided a GitHub repository with a ready-to-use utility pipeline and notebook. Check it out at <a href="https://github.com/bijancamp/synapse-feature-flagging"><strong>bijancamp/synapse-feature-flagging</strong></a>. With these resources, you’ll be all set to integrate Azure App Configuration into your data engineering workflows.</p><h3>Prerequisites</h3><p>To securely integrate Azure App Configuration with Synapse, you will need:</p><ul><li>A <strong>resource group</strong> and <strong>Synapse workspace</strong>.</li><li><strong>Owner on the resource group</strong>.</li><li><strong>Synapse Administrator</strong> on the Synapse workspace. Alternatively, you can have <strong>Synapse Contributor</strong> (for pipeline and notebook integration) and <strong>Synapse Credential User</strong> (for notebook integration).</li><li><strong>Ability to create service principals</strong> in Azure AD (for notebook integration).</li><li>The <strong>Microsoft.AppConfiguration</strong> resource provider registered in your target subscription.</li><li><strong>Az PowerShell</strong> (either installed locally or via Azure Cloud Shell).</li></ul><h3>Creating an Azure App Configuration Store</h3><p>With your target subscription active in PowerShell, start by creating an instance of Azure App Configuration, also called an “App Configuration store”:</p><pre>New-AzAppConfigurationStore `<br>-Name &lt;store-name&gt; `<br>-ResourceGroupName &lt;resource-group-name&gt; `<br>-Location &lt;location&gt; `<br>-Sku Free</pre><p><strong>Note</strong>: In Production, you’ll want to use the Standard sku if you have availability requirements or other needs.</p><p>You should now have a provisioned App Configuration store:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vSzKnKAW5_khTM2p.png" /></figure><p>To create and manage feature flags, you need the role of <strong>App Configuration Data Reader</strong> on the configuration store:</p><pre>New-AzRoleAssignment `<br>-ObjectId (Get-AzADUser -SignedIn).Id `<br>-RoleDefinitionName &quot;App Configuration Data Owner&quot; `<br>-Scope (Get-AzResource -Name &lt;store-name&gt; -ResourceGroupName &lt;resource-group-name&gt;).ResourceId</pre><p>To enable Synapse to access feature flags via pipelines, grant its managed identity <strong>App Configuration Data Reader</strong>:</p><pre>New-AzRoleAssignment `<br>-ObjectId (Get-AzADServicePrincipal -DisplayName &lt;synapse-workspace-name&gt;).Id `<br>-RoleDefinitionName &quot;App Configuration Data Reader&quot; `<br>-Scope (Get-AzResource -Name &lt;store-name&gt; -ResourceGroupName &lt;resource-group-name&gt;).ResourceId</pre><p>It can take up to 15 minutes for your user’s role assignment to sync, but once it does, you should be able to go to <strong>Operations &gt; Feature manager</strong> on the App Configuration resource and see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/0*EDwrb623D-rxlYNI.png" /></figure><p>On this page, select “Create” and populate the resulting form with the following values:</p><ul><li>Enable feature flag: <strong>Not</strong> checked.</li><li>Feature flag name: <strong>cool-new-feature</strong></li></ul><p>Make sure to use <strong>cool-new-feature</strong> for the name since that will be the name used in the sample pipeline and notebook.</p><p>Your feature manager page should now look like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*68bt25nIxDQPRVyM.png" /></figure><h3>Integrating Azure App Configuration into Synapse Pipelines</h3><h3>Setup</h3><p>With our configuration store and <strong>cool-new-feature</strong> in place, we can proceed to create a Synapse pipeline that calls our App Configuration store. In Synapse Studio, create a new blank pipeline called <strong>GetFeatureFlag</strong>, and click the button in the upper-right corner to open the JSON editor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/0*wLFlosc6EHMD3p8N.png" /></figure><p>Copy the JSON code from the following file in the GitHub repository into the JSON editor window: <a href="https://raw.githubusercontent.com/bijancamp/synapse-feature-flagging/main/pipelines/GetFeatureFlag.json">bijancamp/synapse-feature-flagging/pipelines/GetFeatureFlag.json</a>. In the copied JSON, replace &lt;store-name&gt; in the parameters section with the name of your App Configuration store and click &quot;OK&quot;:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cNkDWMVpeKrB1Mc9.png" /></figure><p>The <strong>GetFeatureFlag</strong> pipeline retrieves information about the feature flag specified via the FeatureFlagName parameter. It uses a Web activity and the Synapse managed identity to access the feature flag via the store&#39;s endpoint. It also returns a customizable fallback value in case the call to the store fails or the feature flag does not exist. This is similar to the fallback value in LaunchDarkly (a popular third-party service for implementing feature flags).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/0*UesJhFGGci04tfzp.png" /></figure><p>Create another pipeline called <strong>UseFeatureFlag</strong>, and copy the JSON from the following file into its JSON editor: <a href="https://raw.githubusercontent.com/bijancamp/synapse-feature-flagging/main/pipelines/UseFeatureFlag.json">bijancamp/synapse-feature-flagging/pipelines/UseFeatureFlag.json</a>.</p><p>This pipeline uses the <strong>GetFeatureFlag</strong> pipeline to look up the value of the <strong>cool-new-feature</strong> flag. If the flag is “enabled”, it executes an experimental branch of pipeline activities (i.e., runs an activity called “Used cool-new-feature”); otherwise, it executes the old logic of the pipeline (i.e., runs an activity called “Did Not Use cool-new-feature”).</p><h3>Trying It Out</h3><p>Now, let’s see it in action! In Synapse Studio, debug the <strong>UseFeatureFlag</strong> pipeline. It should succeed and execute the “Did Not Use cool-new-feature” activity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/0*Rk4jIIddrbZZtz_i.png" /></figure><p>Now go back to the App Configuration resource in the portal, go to <strong>Operations &gt; Feature manager</strong>, and enable the <strong>cool-new-feature</strong> flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UH9YeeICgKAEGkg2.png" /></figure><p>Now debug the <strong>UseFeatureFlag</strong> pipeline again in SynapseStudio. This time, the pipeline executes the “Used cool-new-feature” activity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/0*AG29i8ksmGNaMO6m.png" /></figure><p>The pipeline has changed its runtime behavior based on an easily adjustable flag! If this pipeline was based on an existing one, you could now confidently promote this version across all your environments, knowing that the risk of breaking the existing pipeline is minimal.</p><h3>Integrating Azure App Configuration into Synapse Notebooks</h3><h3>Setup</h3><p>In this section, you will integrate Azure App Configuration with Synapse notebooks.</p><p>With your configuration store and <strong>cool-new-feature</strong> already set up, let’s start by creating a Spark pool:</p><pre>New-AzSynapseSparkPool `<br>-WorkspaceName &lt;synapse-workspace-name&gt; `<br>-Name &lt;pool-name&gt; `<br>-NodeCount 3 `<br>-SparkVersion 3.3 `<br>-NodeSize Small `<br>-EnableAutoPause `<br>-AutoPauseDelayInMinute 15</pre><p>Feel free to adjust the Spark version if there is a later one that you would like to try.</p><p>You will use the <a href="https://pypi.org/project/azure-identity/">azure-identity</a> and <a href="https://pypi.org/project/azure-appconfiguration/">azure-appconfiguration</a> packages to call the app configuration store from a PySpark notebook, so create a “requirements.txt” file:</p><pre>azure-identity==1.13.0<br>azure-appconfiguration==1.4.0</pre><p>The above requirements file pins the latest versions of the packages at the time of this writing, but feel free to try any newer versions that might be available.</p><p>Now upload the requirements file to the pool to install the packages:</p><pre>Update-AzSynapseSparkPool `<br>-WorkspaceName &lt;synapse-workspace-name&gt; `<br>-Name &lt;pool-name&gt; `<br>-LibraryRequirementsFilePath &lt;path-to-requirements-file&gt;</pre><p>It can take over 20 minutes for the above command to complete.</p><p>In the meantime, a service principal is needed for the Spark pool to access the feature flag within the configuration store. Before creating a service principal though, create a key vault to store its client secret and other information:</p><pre>New-AzKeyVault `<br>-Name &lt;vault-name&gt; `<br>-ResourceGroupName &lt;resource-group-name&gt; `<br>-Location &lt;location&gt; `<br>-EnableRbacAuthorization</pre><p>To add secrets to the key vault, grant yourself <strong>Key Vault Secrets Officer</strong>:</p><pre>New-AzRoleAssignment `<br>-ObjectId (Get-AzADUser -SignedIn).Id `<br>-RoleDefinitionName &quot;Key Vault Secrets Officer&quot; `<br>-Scope (Get-AzResource -Name &lt;vault-name&gt; -ResourceGroupName &lt;resource-group-name&gt;).ResourceId</pre><p>Also, the Synapse managed identity needs <strong>Key Vault Secrets User</strong> in order for the Spark pool to be able to retrieve secrets:</p><pre>New-AzRoleAssignment `<br>-ObjectId (Get-AzADServicePrincipal -DisplayName &lt;synapse-workspace-name&gt;).Id `<br>-RoleDefinitionName &quot;Key Vault Secrets User&quot; `<br>-Scope (Get-AzResource -Name &lt;vault-name&gt; -ResourceGroupName &lt;resource-group-name&gt;).ResourceId</pre><p>In Synapse Studio, add a linked service for the key vault. Use <strong>System Assigned Managed Identity</strong> for the authentication method.</p><p>Now, create the service principal for the Spark pool:</p><pre>$sp = New-AzADServicePrincipal -DisplayName &lt;service-principal-name&gt;</pre><p>Convert the values we need to secure strings:</p><pre>$tenantId = ConvertTo-SecureString (Get-AzContext).Tenant.Id -AsPlainText -Force<br>$clientId = ConvertTo-SecureString $sp.AppId -AsPlainText -Force<br>$clientSecret = ConvertTo-SecureString $sp.PasswordCredentials.SecretText -AsPlainText -Force</pre><p>And create the following secrets in the key vault:</p><pre>Set-AzKeyVaultSecret -VaultName &quot;&lt;vault-name&gt;&quot; -Name &quot;azure-tenant-id&quot; -SecretValue $tenantId<br>Set-AzKeyVaultSecret -VaultName &quot;&lt;vault-name&gt;&quot; -Name &quot;synw-notebook-sp-client-id&quot; -SecretValue $clientId<br>Set-AzKeyVaultSecret -VaultName &quot;&lt;vault-name&gt;&quot; -Name &quot;synw-notebook-sp-client-secret&quot; -SecretValue $clientSecret</pre><p>For the new service principal to be able to retrieve feature flags from the store, grant it <strong>App Configuration Data Reader</strong> on the store:</p><pre>New-AzRoleAssignment `<br>-ObjectId (Get-AzADServicePrincipal -DisplayName &lt;service-principal-name&gt;).Id `<br>-RoleDefinitionName &quot;App Configuration Data Reader&quot; `<br>-Scope (Get-AzResource -Name &lt;store-name&gt; -ResourceGroupName &lt;resource-group-name&gt;).ResourceId</pre><p>With the above completed (and once the Spark pool has finished installing the packages from the requirements file) we should now have all the infrastructure and access in place for the pool to communicate with the configuration store.</p><p>Now, download the utility and sample notebooks for querying your feature flag store:</p><ul><li><a href="https://raw.githubusercontent.com/bijancamp/synapse-feature-flagging/main/notebooks/GetFeatureFlag.ipynb">bijancamp/synapse-feature-flagging/notebooks/GetFeatureFlag.ipynb</a></li><li><a href="https://raw.githubusercontent.com/bijancamp/synapse-feature-flagging/main/notebooks/UseFeatureFlag.ipynb">bijancamp/synapse-feature-flagging/notebooks/UseFeatureFlag.ipynb</a></li></ul><p>In Synapse Studio, import these notebooks by going to the Develop Hub and clicking the “+” button and then “Import”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*a3xUD8Ft9uqPrLGZ.png" /></figure><p>With both notebooks imported, open the <strong>GetFeatureFlag</strong> notebook and replace &lt;store-name&gt;, &lt;vault-name&gt;, and &lt;vault-linked-service-name&gt; in the parameters cell with the names of your resources, and then publish the notebooks.</p><p>These notebooks are similar in design to the pipelines. The <strong>GetFeatureFlag</strong> notebook uses Microsoft Spark Utilities (MSSparkUtils) to retrieve the key vault secrets, ClientSecretCredential to create an object out of the secrets, and AzureAppConfigurationClient to retrieve the feature flag from the store. Like the pipeline, it returns a fallback value if an exception occurs when calling the store.</p><p>The <strong>UseFeatureFlag</strong> notebook calls the <strong>GetFeatureFlag</strong> notebook, passing in a value of <strong>cool-new-feature</strong> for the featureflag parameter.</p><h3>Trying It Out</h3><p>Back in your App Configuration resource, disable the feature flag.</p><p>Now in the <strong>UseFeatureFlag</strong> notebook in Synapse Studio, attach your Spark pool and click the “Run all” button. After it runs, it should display “Cool new feature not used”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/0*UVG13vLjMPYaPtVN.png" /></figure><p>Now enable the feature flag and run the notebook again. This time, it will print “Cool new feature used”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/0*mo7CjiRRsnJRBtet.png" /></figure><h3>Conclusion</h3><p>And there you have it! You have successfully utilized feature flags in Synapse without having to build your own feature management solution or rely on a non-Azure service. With this methodology, you can roll out and roll back features with greater control and ease.</p><p>Given that there are a multitude of ways to implement feature flags, how have you implemented feature flags in your Azure data analytics solutions? What challenges did you face and how did you overcome them? Share your thoughts and learnings in the comments!</p><p>Happy continuous integration and deployment! 🚀</p><p><em>Originally published at </em><a href="https://bijancamp.com/blog/feature-flags-azure-synapse/"><em>https://bijancamp.com</em></a><em> on July 1, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b42ae2649327" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>