<?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>PowerShell &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/category/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Fri, 20 May 2022 18:33:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>PowerShell &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Get Azure Blob Storage Blob Metadata Using PowerShell</title>
		<link>https://www.sibeeshpassion.com/get-azure-blob-storage-blob-metadata-using-powershell/</link>
					<comments>https://www.sibeeshpassion.com/get-azure-blob-storage-blob-metadata-using-powershell/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Fri, 20 May 2022 16:15:54 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Azure Storage]]></category>
		<category><![CDATA[Get blob metadata using PowerShell]]></category>
		<category><![CDATA[powershell]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=14572</guid>

					<description><![CDATA[Here we will see how you can get the metadata of each blob available in your Azure storage account using PowerShell.]]></description>
										<content:encoded><![CDATA[
<p>This is going to be a quick blog post. Here we will see how you can get the metadata of each blob available in your Azure storage account using PowerShell. Here I assume that you have access to your storage account and you will be asked to log in. Let&#8217;s get started. </p>



<h2 class="wp-block-heading">PowerShell command to get the metadata</h2>



<p><a href="https://gist.github.com/SibeeshVenu/a735db3439ca50305a5141ab83d26892" target="_blank" rel="noreferrer noopener">Here</a> is the command to get the metadata of all of your blobs in your storage account. </p>



<script src="https://gist.github.com/SibeeshVenu/a735db3439ca50305a5141ab83d26892.js"></script>



<p>Set your execution policy to Process if you get any policy errors. </p>



<pre class="wp-block-code"><code>Set-ExecutionPolicy -ExecutionPolicy ByPass -Scope Process</code></pre>



<p>If you get an authorization error as follows, make sure to add a role assignment of <strong>Storage Blob Data Contributor</strong>. You can do this via Access Control (IAM) of your storage account. Read more about this role <a href="https://docs.microsoft.com/en-us/azure/storage/blobs/assign-azure-role-data-access?tabs=portal" target="_blank" rel="noreferrer noopener">here</a>.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>PowerShell AuthorizationPermissionMismatch Error</p><cite>Get-AzStorageContainer : This request is not authorized to perform this operation using this permission.<br>RequestId:405a7e1a-f01e-004f-3acd-6a1168000000<br>Time:2022-05-18T15:38:30.5034936Z<br>Status: 403 (This request is not authorized to perform this operation using this permission.)<br>ErrorCode: AuthorizationPermissionMismatch<br>Content:<br>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;&lt;Error&gt;&lt;Code&gt;AuthorizationPermissionMismatch&lt;/Code&gt;&lt;Message&gt;This request is not authorized to perform this operation using<br>this permission.</cite></blockquote>



<p>Once you add the role, you can try running your PowerShell command after a few minutes. Please make sure to provide the values to the variables <strong>$containerName, $subscriptionid, $storageAccName</strong>. Happy coding with PowerShell!</p>



<h2 class="wp-block-heading">About the Author</h2>



<p>I am yet another developer who is passionate about writing and video creation. I have written close to 500 blogs on my&nbsp;<a rel="noreferrer noopener" href="https://sibeeshpassion.com/" target="_blank">blog</a>. If you like this content, consider following me here,</p>



<ul class="wp-block-list"><li><a href="https://github.com/SibeeshVenu">GitHub</a></li><li><a href="https://medium.com/@sibeeshvenu">medium</a></li><li><a href="https://twitter.com/sibeeshvenu">Twitter</a></li></ul>



<h2 class="wp-block-heading">Your turn. What do you think?</h2>



<p>Thanks a lot for reading. Did I miss anything that you may think is needed in this article? Could you find this post useful? Kindly do not forget to share your feedback.</p>



<p>Kindest Regards</p>



<p>Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/get-azure-blob-storage-blob-metadata-using-powershell/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
