<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Data Lake Archives - AzureOps</title>
	<atom:link href="https://azureops.org/articles/category/azure/data-lake/feed/" rel="self" type="application/rss+xml" />
	<link>https://azureops.org/articles/category/azure/data-lake/</link>
	<description>Notable things about Cloud, Data and DevOps.</description>
	<lastBuildDate>Sat, 04 May 2024 13:48:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/azureops.org/wp-content/uploads/2021/04/cropped-android-chrome-512x512-1.png?fit=32%2C32&#038;ssl=1</url>
	<title>Data Lake Archives - AzureOps</title>
	<link>https://azureops.org/articles/category/azure/data-lake/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">190208641</site>	<item>
		<title>Automatically Delete Old Files from Azure Storage Account</title>
		<link>https://azureops.org/articles/automatically-delete-old-files-from-azure-storage-account/</link>
		
		<dc:creator><![CDATA[Kunal Rathi]]></dc:creator>
		<pubDate>Sun, 25 Jun 2023 10:25:09 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Data Lake]]></category>
		<category><![CDATA[Storage Account]]></category>
		<guid isPermaLink="false">https://azureops.org/?p=6057</guid>

					<description><![CDATA[<p>Follow these quick steps to periodically delete old files from Azure storage account.</p>
<p>The post <a href="https://azureops.org/articles/automatically-delete-old-files-from-azure-storage-account/">Automatically Delete Old Files from Azure Storage Account</a> appeared first on <a href="https://azureops.org">AzureOps</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><a href="https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview" target="_blank" rel="noreferrer noopener">Azure storage accounts</a> are a type of cloud storage offered by Microsoft Azure that allows users to store and manage data in various formats, such as files, blobs, tables, and queues. These storage accounts can be accessed from anywhere in the world and can be integrated with other Azure services to build scalable, reliable, and cost-effective solutions. Additionally, they offer features such as data encryption, redundancy, and automatic tiering to ensure data is secure and easily accessible. This article describes how to Automatically Delete old files from Azure Storage Account.</p>



<h3 class="wp-block-heading">Follow the below steps to enable the Automatic Deletion of Blobs from Azure Storage Account.</h3>



<p class="wp-block-paragraph">1. Connect to the Azure storage account on which you need to enable the automatic blob deletion process. </p>



<p class="wp-block-paragraph">2. Click on Lifecycle management under the Data management section, as shown in the image below.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="1200" height="586" data-attachment-id="6059" data-permalink="https://azureops.org/articles/automatically-delete-old-files-from-azure-storage-account/attachment/2/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/2.jpg?fit=1328%2C649&amp;ssl=1" data-orig-size="1328,649" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Create new lifecycle management rule in Azure storage account" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/2.jpg?fit=1200%2C586&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/2.jpg?resize=1200%2C586&#038;ssl=1" alt="Automatically Delete Blogs from Azure Storage Account" class="wp-image-6059" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/2.jpg?resize=1200%2C586&amp;ssl=1 1200w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/2.jpg?resize=450%2C220&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/2.jpg?resize=600%2C293&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/2.jpg?resize=300%2C147&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/2.jpg?resize=768%2C375&amp;ssl=1 768w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/2.jpg?w=1328&amp;ssl=1 1328w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<p class="wp-block-paragraph">3. Click on Add a rule button to create a new deletion policy.<br>4. Provide a name to the rule and select the Rule scope. If you want to apply a filter to limit the rule to specific blobs, you can do it with the &#8216;Limit blobs with filters&#8217; option. </p>



<figure class="is-style-default wp-block-image size-large is-resized"><a href="https://marketplace.visualstudio.com/items?itemName=AzureOps.ssiscatalogerpro&amp;ssr=false#overview" target="_blank" rel="noopener"><img data-recalc-dims="1" decoding="async" width="1200" height="148" data-attachment-id="4839" data-permalink="https://azureops.org/articles/azure-data-studio-for-sql-developers/scmw-horizontal-ad/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?fit=1326%2C163&amp;ssl=1" data-orig-size="1326,163" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SCMW-horizontal-ad" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?fit=1200%2C148&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=1200%2C148&#038;ssl=1" alt="" class="wp-image-4839" style="object-fit:cover;width:811px;height:99px" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=1200%2C148&amp;ssl=1 1200w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=450%2C55&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=600%2C74&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=300%2C37&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=768%2C94&amp;ssl=1 768w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?w=1326&amp;ssl=1 1326w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></figure>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" decoding="async" width="1032" height="754" data-attachment-id="6060" data-permalink="https://azureops.org/articles/automatically-delete-old-files-from-azure-storage-account/attachment/3/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/3.jpg?fit=1032%2C754&amp;ssl=1" data-orig-size="1032,754" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="3" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/3.jpg?fit=1032%2C754&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/3.jpg?resize=1032%2C754&#038;ssl=1" alt="How to automatically delete blobs from Azure data lake." class="wp-image-6060" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/3.jpg?w=1032&amp;ssl=1 1032w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/3.jpg?resize=450%2C329&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/3.jpg?resize=600%2C438&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/3.jpg?resize=300%2C219&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/3.jpg?resize=849%2C620&amp;ssl=1 849w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/3.jpg?resize=768%2C561&amp;ssl=1 768w" sizes="(max-width: 1032px) 100vw, 1032px" /></figure>



<p class="wp-block-paragraph">5. Specify the Blob type and Blob subtypes and click Next.</p>



<p class="wp-block-paragraph">6. To automatically delete blobs, you can create a rule and click &#8220;Add&#8221;. For instance, if you wish to remove blobs that are over 14 days old, you can specify a rule as demonstrated in the image below. Additionally, you have the option to transfer old files to cool storage instead of deleting them.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1032" height="738" data-attachment-id="6115" data-permalink="https://azureops.org/articles/automatically-delete-old-files-from-azure-storage-account/4-2/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/4.jpg?fit=1032%2C738&amp;ssl=1" data-orig-size="1032,738" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="4" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/4.jpg?fit=1032%2C738&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/4.jpg?resize=1032%2C738&#038;ssl=1" alt="set a rule to Automatically Delete Blogs from Azure Storage Account." class="wp-image-6115" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/4.jpg?w=1032&amp;ssl=1 1032w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/4.jpg?resize=450%2C322&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/4.jpg?resize=600%2C429&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/4.jpg?resize=300%2C215&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/4.jpg?resize=867%2C620&amp;ssl=1 867w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/06/4.jpg?resize=768%2C549&amp;ssl=1 768w" sizes="(max-width: 1032px) 100vw, 1032px" /></figure>



<p class="wp-block-paragraph">That&#8217;s it, we have successfully set a rule to Automatically Delete old files from Azure Storage Account.</p>



<p class="has-background wp-block-paragraph" style="background-color:#bcefca"><strong>Pro tips:</strong><br>1. Be careful with above settings to delete older files in case of delta lake files.<br>2. <a href="https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/" target="_blank" rel="noreferrer noopener">Learn</a> how to mount and unmount a data lake storage in Databricks.</p>



<h2 class="wp-block-heading">See more</h2>



<iframe width="700" height="394" src="https://www.youtube.com/embed/t2h6xNVFQkc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="is-style-fill wp-block-button"><a class="wp-block-button__link has-white-color has-blush-light-purple-gradient-background has-text-color has-background has-link-color wp-element-button" href="https://azureops.org/product/ssis-catalog-migration-wizard-pro/" target="_blank" rel="noreferrer noopener">Download Now</a></div>
</div>

    <div class="xs_social_share_widget xs_share_url after_content 		main_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content">

		
        <ul>
			        </ul>
    </div> 
<p>The post <a href="https://azureops.org/articles/automatically-delete-old-files-from-azure-storage-account/">Automatically Delete Old Files from Azure Storage Account</a> appeared first on <a href="https://azureops.org">AzureOps</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">6057</post-id>	</item>
		<item>
		<title>Mount and Unmount Data Lake in Databricks</title>
		<link>https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/</link>
		
		<dc:creator><![CDATA[Pavan Bangad]]></dc:creator>
		<pubDate>Wed, 17 Aug 2022 08:00:00 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Data Lake]]></category>
		<category><![CDATA[Databricks]]></category>
		<category><![CDATA[databricks unmount]]></category>
		<category><![CDATA[databricks unmount storage account]]></category>
		<category><![CDATA[dbutils.fs.mount]]></category>
		<category><![CDATA[dbutils.fs.unmount]]></category>
		<category><![CDATA[mount unmount in databricks]]></category>
		<guid isPermaLink="false">https://azureops.org/?p=3015</guid>

					<description><![CDATA[<p>Mounting object storage to Databricks fie system allows easy access to object storage as if they were on the local file system. In this article, we will see how to mount and unmount data lake in Databricks.</p>
<p>The post <a href="https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/">Mount and Unmount Data Lake in Databricks</a> appeared first on <a href="https://azureops.org">AzureOps</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Databricks is a unified big data processing and analytics cloud platform that transforms and processes huge volumes of data. Apache Spark is the building block of Databricks, an in-memory analytics engine for big data and machine learning. Databricks can connect to various sources for data ingestion. This article will show how to mount and unmount data lake in Databricks.</p>



<p class="has-pale-cyan-blue-background-color has-background wp-block-paragraph"><strong>Pre-requisites</strong>:<br>To mount a location, you would need the following:<br>1. Databricks service in Azure, GCP, or AWS cloud.<br>2. A Databricks cluster.<br>3. A basic understanding of Databricks and how to create notebooks.</p>



<h3 class="wp-block-heading">What is Mounting in Databricks?</h3>



<p class="wp-block-paragraph">Mounting object storage to DBFS allows easy access to object storage as if they were on the local file system. Once a location e.g., blob storage or Amazon S3 bucket is mounted, we can use the same mount location to access the external drive.</p>



<p class="wp-block-paragraph">Generally, we use <code>dbutils.fs.mount</code>() command to mount a location in Databricks.</p>



<h3 class="wp-block-heading">How to mount a data lake in Databricks?</h3>



<p class="wp-block-paragraph">Let us now see how to mount Azure data lake gen2 in Databricks.</p>



<p class="wp-block-paragraph">First thing first, let&#8217;s create blob storage and container. Blob storage should look like in the below image.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1200" height="332" data-attachment-id="3033" data-permalink="https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/2-blob-storage/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?fit=1896%2C524&amp;ssl=1" data-orig-size="1896,524" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="2.blob-storage" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?fit=1200%2C332&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?resize=1200%2C332&#038;ssl=1" alt="" class="wp-image-3033" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?resize=1200%2C332&amp;ssl=1 1200w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?resize=450%2C124&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?resize=600%2C166&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?resize=300%2C83&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?resize=768%2C212&amp;ssl=1 768w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?resize=1536%2C425&amp;ssl=1 1536w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/2.blob-storage.jpg?w=1896&amp;ssl=1 1896w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<p class="wp-block-paragraph">New Container should look like in the below image.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1200" height="350" data-attachment-id="3034" data-permalink="https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/7-container_files/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?fit=1897%2C554&amp;ssl=1" data-orig-size="1897,554" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="7.-container_files" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?fit=1200%2C350&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?resize=1200%2C350&#038;ssl=1" alt="" class="wp-image-3034" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?resize=1200%2C350&amp;ssl=1 1200w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?resize=450%2C131&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?resize=600%2C175&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?resize=300%2C88&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?resize=768%2C224&amp;ssl=1 768w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?resize=1536%2C449&amp;ssl=1 1536w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-container_files.jpg?w=1897&amp;ssl=1 1897w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<p class="wp-block-paragraph">To mount an ADLS gen2 we will need the below details to connect to a location.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; title: ; notranslate">
ContainerName = &quot;yourcontainerName&quot;
azure_blobstorage_name = &quot;blobstoragename&quot;
mountpointname = &quot;/mnt/azureops&quot;
secret_key =&quot;xxxxxxxxxxx&quot;
</pre></div>


<p class="has-ast-global-color-3-color has-text-color wp-block-paragraph">Once we have this information, we can use below code snippet to connect the data lake with Databricks.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; title: ; notranslate">
dbutils.fs.mount(source = f&quot;wasbs://{ContainerName}@{azure_blobstorage_name}.blob.core.windows.net&quot;,mount_point = Mountpointname ,extra_configs = {&quot;fs.azure.account.key.&quot;+azure_blobstorage_name+&quot;.blob.core.windows.net&quot;:secret_key})
</pre></div>


<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1200" height="313" data-attachment-id="3029" data-permalink="https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/4-mount_storage_account/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?fit=1810%2C472&amp;ssl=1" data-orig-size="1810,472" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="4.-mount_storage_account" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?fit=1200%2C313&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?resize=1200%2C313&#038;ssl=1" alt="Mount and unmount data lake in Databricks" class="wp-image-3029" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?resize=1200%2C313&amp;ssl=1 1200w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?resize=450%2C117&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?resize=600%2C156&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?resize=300%2C78&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?resize=768%2C200&amp;ssl=1 768w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?resize=1536%2C401&amp;ssl=1 1536w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/4.-mount_storage_account.jpg?w=1810&amp;ssl=1 1810w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<h3 class="wp-block-heading">How to check all the mount points in Databricks?</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; title: ; notranslate">
dbutils.fs.mounts()
</pre></div>


<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1200" height="205" data-attachment-id="3028" data-permalink="https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/1-mounts_location/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?fit=1837%2C314&amp;ssl=1" data-orig-size="1837,314" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="1.mounts_location" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?fit=1200%2C205&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?resize=1200%2C205&#038;ssl=1" alt="Check mount points in Databricks" class="wp-image-3028" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?resize=1200%2C205&amp;ssl=1 1200w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?resize=450%2C77&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?resize=600%2C103&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?resize=300%2C51&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?resize=768%2C131&amp;ssl=1 768w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?resize=1536%2C263&amp;ssl=1 1536w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/1.mounts_location.jpg?w=1837&amp;ssl=1 1837w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<h3 class="wp-block-heading">How to unmount a location?</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; title: ; notranslate">
dbutils.fs.unmount(mount_point)
</pre></div>


<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1200" height="145" data-attachment-id="3030" data-permalink="https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/6-unmount/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?fit=1802%2C217&amp;ssl=1" data-orig-size="1802,217" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="6.-unmount" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?fit=1200%2C145&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?resize=1200%2C145&#038;ssl=1" alt="Unmount data lake in Databricks" class="wp-image-3030" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?resize=1200%2C145&amp;ssl=1 1200w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?resize=450%2C54&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?resize=600%2C72&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?resize=300%2C36&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?resize=768%2C92&amp;ssl=1 768w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?resize=1536%2C185&amp;ssl=1 1536w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/6.-unmount.jpg?w=1802&amp;ssl=1 1802w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<h3 class="wp-block-heading">Let&#8217;s use all the above commands in action.</h3>



<p class="wp-block-paragraph">The objective is to add a mount point if it does not exist.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; title: ; notranslate">
if all(mount.mountPoint != archival_mount_name for mount in dbutils.fs.mounts()):
     dbutils.fs.mount(source = f&quot;wasbs://{ContainerName}@{azure_blobstorage_name}.blob.core.windows.net&quot;,mount_point = Mountpointname ,extra_configs = {&quot;fs.azure.account.key.&quot;+azure_blobstorage_name+&quot;.blob.core.windows.net&quot;:archival_secret_key})
</pre></div>


<figure class="wp-block-image size-large is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" data-attachment-id="3037" data-permalink="https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/7-usecase/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?fit=1819%2C339&amp;ssl=1" data-orig-size="1819,339" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="7.-usecase" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?fit=1200%2C224&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?resize=1200%2C224&#038;ssl=1" alt="" class="wp-image-3037" width="1200" height="224" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?resize=1200%2C224&amp;ssl=1 1200w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?resize=450%2C84&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?resize=600%2C112&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?resize=300%2C56&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?resize=768%2C143&amp;ssl=1 768w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?resize=1536%2C286&amp;ssl=1 1536w, https://i0.wp.com/azureops.org/wp-content/uploads/2022/08/7.-usecase.jpg?w=1819&amp;ssl=1 1819w" sizes="(max-width: 1200px) 100vw, 1200px" /></figure>



<figure class="is-style-default wp-block-image size-large is-resized"><a href="https://marketplace.visualstudio.com/items?itemName=AzureOps.ssiscatalogerpro&amp;ssr=false#overview" target="_blank" rel="noopener"><img data-recalc-dims="1" decoding="async" width="1200" height="148" data-attachment-id="4839" data-permalink="https://azureops.org/articles/azure-data-studio-for-sql-developers/scmw-horizontal-ad/" data-orig-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?fit=1326%2C163&amp;ssl=1" data-orig-size="1326,163" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SCMW-horizontal-ad" data-image-description="" data-image-caption="" data-large-file="https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?fit=1200%2C148&amp;ssl=1" src="https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=1200%2C148&#038;ssl=1" alt="" class="wp-image-4839" style="object-fit:cover;width:811px;height:99px" srcset="https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=1200%2C148&amp;ssl=1 1200w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=450%2C55&amp;ssl=1 450w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=600%2C74&amp;ssl=1 600w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=300%2C37&amp;ssl=1 300w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?resize=768%2C94&amp;ssl=1 768w, https://i0.wp.com/azureops.org/wp-content/uploads/2023/01/SCMW-horizontal-ad.png?w=1326&amp;ssl=1 1326w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></figure>



<p class="has-background wp-block-paragraph" style="background-color:#bcefca"><strong>Pro tips:</strong><br>1. Instead of using a storage account key, we can also mount a location using a SAS token URL or service principal<br>2. Databricks provide a free community version where you can learn and explore Databricks. You can signup <a href="https://community.cloud.databricks.com/login.html" target="_blank" rel="noreferrer noopener">here</a>.<br>3. If you’re aiming to obtain the Databricks certified Data Engineer Associate certification, take a look at&nbsp;<a href="https://azureops.org/articles/databricks-certified-data-engineer-associate/" target="_blank" rel="noreferrer noopener">these</a>&nbsp;helpful tips.</p>



<p class="wp-block-paragraph">Notebook Reference</p>



<div class="wp-block-file"><a id="wp-block-file--media-74f16533-875a-4100-a0b9-bb8d329e82f0" href="https://azureops.org/wp-content/uploads/2022/08/mount_unmount.zip">mount_unmount</a><a href="https://azureops.org/wp-content/uploads/2022/08/mount_unmount.zip" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-74f16533-875a-4100-a0b9-bb8d329e82f0">Download</a></div>



<h2 class="wp-block-heading">See more</h2>



<iframe width="700" height="394" src="https://www.youtube.com/embed/t2h6xNVFQkc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="is-style-fill wp-block-button"><a class="wp-block-button__link has-white-color has-blush-light-purple-gradient-background has-text-color has-background has-link-color wp-element-button" href="https://azureops.org/product/ssis-catalog-migration-wizard-pro/" target="_blank" rel="noreferrer noopener">Download Now</a></div>
</div>

    <div class="xs_social_share_widget xs_share_url after_content 		main_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content">

		
        <ul>
			        </ul>
    </div> 
<p>The post <a href="https://azureops.org/articles/mount-and-unmount-data-lake-in-databricks/">Mount and Unmount Data Lake in Databricks</a> appeared first on <a href="https://azureops.org">AzureOps</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3015</post-id>	</item>
	</channel>
</rss>
