{"id":2135,"date":"2021-08-25T05:43:52","date_gmt":"2021-08-25T03:43:52","guid":{"rendered":"https:\/\/www.albertopassalacqua.com\/?p=2135"},"modified":"2021-09-07T19:05:57","modified_gmt":"2021-09-07T17:05:57","slug":"cfd-simulations-on-azure-batch-part-3","status":"publish","type":"post","link":"https:\/\/www.albertopassalacqua.com\/?p=2135","title":{"rendered":"CFD simulations on Azure Batch \u2013 Part 3"},"content":{"rendered":"\n<p><\/p><p style=\"text-align: justify;\">The first two parts of this series were dedicated to preparing a case to be executed without intervention and to install some useful tools to simplify operations with Azure Storage and Azure Batch. In part 3 I discuss the setup of an Azure Storage account and create a file share that we will use with Azure Batch.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create an Azure Storage account<\/h2>\n\n\n\n<p><\/p><p style=\"text-align: justify;\">The first step consists in creating an Azure Storage account. To do so, click on the search bar at the top of your Azure account page and type &#8220;storage&#8221;:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"142\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage1-1024x142.png\" alt=\"\" class=\"wp-image-2142\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage1-1024x142.png 1024w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage1-300x42.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage1-768x107.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage1-1140x159.png 1140w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage1.png 1467w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Select &#8220;Storage accounts&#8221;, which leads to the screen:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"362\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage2-1024x362.png\" alt=\"\" class=\"wp-image-2138\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage2-1024x362.png 1024w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage2-300x106.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage2-768x272.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage2-1536x543.png 1536w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage2-1140x403.png 1140w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage2.png 1705w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p><p style=\"text-align: justify;\">In this screen, click on &#8220;+Create&#8221;. The following page will open:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2139\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage3.png\" alt=\"\" width=\"825\" height=\"906\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage3.png 825w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage3-273x300.png 273w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage3-768x843.png 768w\" sizes=\"auto, (max-width: 825px) 100vw, 825px\" \/><\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"text-align: justify;\">The <strong>resource group<\/strong> shown in this figure was created in advance. If none is available, one can be created by clicking on &#8220;Create new&#8221;, under the corresponding text box for the resource group.<\/li><li style=\"text-align: justify;\">The <strong>storage account name<\/strong> must be a string with only lower-case characters and no spaces.&nbsp;<\/li><li style=\"text-align: justify;\">Choose the same <strong>region<\/strong> where you will have the Batch account.<\/li><li style=\"text-align: justify;\">For HPC applications, the recommended <strong>performance<\/strong> setting is &#8220;Premium&#8221;, which comes at a higher cost. If the simulations are not large and a little slower IO performance is acceptable, the Standard setting is also acceptable.<\/li><\/ul>\n\n\n\n<p><\/p><p style=\"text-align: justify;\">There are many other options concerning API access, security, encryption and networking. Examining these settings is out of the scope of this blog series, but I recommend reviewing them and reading the corresponding documentation to learn more and best configure the account.<\/p>\n\n\n\n<p><\/p><p style=\"text-align: justify;\">Clicking on &#8220;Review + create&#8221; shows a summary of the selected settings and allows the storage account to be created. It is worth noticing that at creation, no storage is configure yet: the file share I mentioned before still needs to be created.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create a file share<\/h2>\n\n\n\n<p style=\"text-align: justify;\">A file share can be created under the Azure Storage account by clicking on &#8220;File shares&#8221; in the sidebar and then on &#8220;+File share&#8221;:<\/p>\n<p><a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2140\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage4-1024x451.png\" alt=\"\" width=\"960\" height=\"423\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage4-1024x451.png 1024w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage4-300x132.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage4-768x339.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage4-1140x503.png 1140w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage4.png 1193w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">This will open the following setting page:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/StorageShare.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2143\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/StorageShare.png\" alt=\"\" width=\"566\" height=\"571\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/StorageShare.png 566w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/StorageShare-297x300.png 297w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/StorageShare-150x150.png 150w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/StorageShare-75x75.png 75w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/a>Insert the name of the file share and select the &#8220;Premium&#8221; tier for the highest performance available, if using a Premium storage account, or the &#8220;Transaction optimized&#8221; tier, if a &#8220;Standard&#8221; storage account is used. Creating the file share brings back to the list of file shares in the storage account.<\/p>\n<p style=\"text-align: justify;\">I recommend setting a quota by clicking on the name of the file share. This will open the following screen:<\/p>\n<p><a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2141\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage5-1024x298.png\" alt=\"\" width=\"960\" height=\"279\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage5-1024x298.png 1024w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage5-300x87.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage5-768x224.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage5-1536x447.png 1536w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage5-1140x332.png 1140w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage5.png 1706w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Click on &#8220;Edit quota&#8221; and insert the desired size in the dialog:<\/p>\n<p><a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2144\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage6.png\" alt=\"\" width=\"737\" height=\"241\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage6.png 737w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2021\/08\/Storage6-300x98.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">The file share is now ready. I will show how to use it in Azure Batch in the next part.<\/p>\n<p>Stay tuned! \ud83d\ude42<\/p>\n\n\n\n<p><em>This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM\u00ae and OpenCFD\u00ae trade marks. Alberto Passalacqua is neither associated to OpenCFD Ltd nor to Microsoft and did not receive funding from them to write this article. All registered trade marks belong to their legal owners.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first two parts of this series were dedicated to preparing a case to be executed without intervention and to install some useful tools to simplify operations with Azure Storage and Azure Batch. In part 3 I discuss the setup of an Azure Storage account and create a file share that we will use with Azure Batch. Create an Azure Storage account The first step consists in creating an Azure Storage account. To do so, click on the search bar at the top of your Azure account page and type &#8220;storage&#8221;: Select &#8220;Storage accounts&#8221;, which leads to the screen: In this screen, click on &#8220;+Create&#8221;. The following page will open: The resource group shown in this figure was created in advance. If none is available, one can be created by clicking on &#8220;Create new&#8221;, under the corresponding text box for the resource group. The storage account name must be a string with only lower-case characters and no spaces.&nbsp; Choose the same region where you will have the Batch account. For HPC applications, the recommended performance setting is &#8220;Premium&#8221;, which comes at a higher cost. If the simulations are not large and a little slower IO performance is acceptable, the Standard setting is also acceptable. There are many other options concerning API access, security, encryption and networking. Examining these settings is out of the scope of this blog series, but I recommend reviewing them and reading the corresponding documentation to learn more and best configure the account. Clicking on &#8220;Review + create&#8221; shows a summary of the selected settings and allows the storage account to be created. It is worth noticing that at creation, no storage is configure yet: the file share I mentioned before still needs to be created. Create a file share A file share can be created under the Azure Storage account by clicking on &#8220;File shares&#8221; in the sidebar and then on &#8220;+File share&#8221;: This will open the following setting page: Insert the name of the file share and select the &#8220;Premium&#8221; tier for the highest performance available, if using a Premium storage account, or the &#8220;Transaction optimized&#8221; tier, if a &#8220;Standard&#8221; storage account is used. Creating the file share brings back to the list of file shares in the storage account. I recommend setting a quota by clicking on the name of the file share. This will open the following screen: Click on &#8220;Edit quota&#8221; and insert the desired size in the dialog: The file share is now ready. I will show how to use it in Azure Batch in the next part. Stay tuned! \ud83d\ude42<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-2135","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/2135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2135"}],"version-history":[{"count":5,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/2135\/revisions"}],"predecessor-version":[{"id":2224,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/2135\/revisions\/2224"}],"wp:attachment":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}