<?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>Azure 404 Error &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/tag/azure-404-error/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Tue, 10 Jul 2018 07:41:36 +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>Azure 404 Error &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Fix for 404 ResourceNotFound Error After Uploading to Azure Container</title>
		<link>https://www.sibeeshpassion.com/fix-for-404-resourcenotfound-error-after-uploading-to-azure-container/</link>
					<comments>https://www.sibeeshpassion.com/fix-for-404-resourcenotfound-error-after-uploading-to-azure-container/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Sat, 27 May 2017 09:18:15 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Azure 404 Error]]></category>
		<category><![CDATA[Azure Container]]></category>
		<category><![CDATA[Azure ResourceNotFound]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=12406</guid>

					<description><![CDATA[[toc] Introduction Here, in this post we are going to a see how we can resolve the error 404 ResourceNotFound Error After Uploading to Azure CDN . It is obvious that you may feel very sad, if you are unable to see the image you recently uploaded to Azure container. But, you don&#8217;t need to worry about it, as the fix for this error is very simple and in this post I am going to show you that. I hope you will like this. Now let&#8217;s begin. Background I recently created a new container in my Azure storage account and [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[toc]</p>
<h3>Introduction</h3>
<p>Here, in this post we are going to a see how we can resolve the error 404 <em>ResourceNotFound Error After Uploading to Azure CDN </em>. It is obvious that you may feel very sad, if you are unable to see the image you recently uploaded to <a href="http://sibeeshpassion.com/category/Azure" target="_blank">Azure </a>container. But, you don&#8217;t need to worry about it, as the fix for this error is very simple and in this post I am going to show you that. I hope you will like this. Now let&#8217;s begin.</p>
<h3>Background</h3>
<p>I recently created a new container in my Azure storage account and uploaded one image in it. And when I was just opening that image in my browser, I was just getting an error as preceding.</p>
<p>[xml]<br />
This XML file does not appear to have any style information associated with it. The document tree is shown below.<br />
<Error><br />
<Code>ResourceNotFound</Code><br />
<Message><br />
The specified resource does not exist. RequestId:36bdbcfb-0001-0022-44c6-d60b93000000 Time:2017-05-27T08:55:09.8382429Z<br />
</Message><br />
</Error><br />
[/xml]</p>
<p>I was able to download that image and the problem exists only when I open it in the browser. Then I came to know about the Access policy of Azure containers. Here we are going to see a bit introduction about that policy. </p>
<h3>Solution for Azure 404 Error</h3>
<p>Step 1: Login to your Azure Portal and navigate to your container.<br />
Step 2: Now, click on the three dots (&#8230;) and then Access Policy.<br />
Step 3: Select the access type you prefer.</p>
<div id="attachment_12408" style="width: 603px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Option-to-see-Azure-Container-Policy.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-12408" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Option-to-see-Azure-Container-Policy.png" alt="Option to see Azure Container Policy" width="593" height="210" class="size-full wp-image-12408" srcset="/wp-content/uploads/2017/05/Option-to-see-Azure-Container-Policy.png 593w, /wp-content/uploads/2017/05/Option-to-see-Azure-Container-Policy-300x106.png 300w, /wp-content/uploads/2017/05/Option-to-see-Azure-Container-Policy-400x142.png 400w" sizes="(max-width: 593px) 100vw, 593px" /></a><p id="caption-attachment-12408" class="wp-caption-text">Option to see Azure Container Policy</p></div>
<p>According to Microsoft, Access Policy specifies whether data in the container may be accessed publicly. By default, container data is private to the account owner. Use &#8216;Blob&#8217; to allow public read access for blobs. Use &#8216;Container&#8217; to allow public read and list access to the entire container.</p>
<p>So here I am going to give the policy as Blob.</p>
<div id="attachment_12409" style="width: 553px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/05/Change-the-Azure-Access-Policy-to-Blob.png"><img decoding="async" aria-describedby="caption-attachment-12409" src="http://sibeeshpassion.com/wp-content/uploads/2017/05/Change-the-Azure-Access-Policy-to-Blob.png" alt="Change the Azure Access Policy to Blob" width="543" height="214" class="size-full wp-image-12409" srcset="/wp-content/uploads/2017/05/Change-the-Azure-Access-Policy-to-Blob.png 543w, /wp-content/uploads/2017/05/Change-the-Azure-Access-Policy-to-Blob-300x118.png 300w, /wp-content/uploads/2017/05/Change-the-Azure-Access-Policy-to-Blob-400x158.png 400w" sizes="(max-width: 543px) 100vw, 543px" /></a><p id="caption-attachment-12409" class="wp-caption-text">Change the Azure Access Policy to Blob</p></div>
<p>You can always do this with some C# code as well.</p>
<p>[csharp]<br />
public static void SetPublicContainerPermissions(CloudBlobContainer container)<br />
{<br />
    BlobContainerPermissions perm = container.GetPermissions();<br />
    perm.PublicAccess = BlobContainerPublicAccessType.Blob;<br />
    container.SetPermissions(perm);<br />
}<br />
[/csharp]</p>
<p>Here is the above example, we are accessing the permissions and assigning the Blob access type. You can always use &#8216;Container&#8217; if you want to limit the access to container. In any case, if you need to remove the permission to anonymous users, you can use <em>BlobContainerPublicAccessType.Off</em>. Once you are done, please reload the URL again the browser, I am sure you will be able to see your image. Happy Uploading!.</p>
<h3>Conclusion</h3>
<p>Did I miss anything that you may think which is needed? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<h3>Your turn. What do you think?</h3>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/fix-for-404-resourcenotfound-error-after-uploading-to-azure-container/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
