{"id":1244,"date":"2024-03-10T13:03:55","date_gmt":"2024-03-10T13:03:55","guid":{"rendered":"https:\/\/bogdanburuiana.com\/?p=1244"},"modified":"2024-06-14T06:50:03","modified_gmt":"2024-06-14T06:50:03","slug":"migrating-my-wordpress-blog-to-azure","status":"publish","type":"post","link":"https:\/\/bogdanburuiana.com\/index.php\/2024\/03\/10\/migrating-my-wordpress-blog-to-azure\/","title":{"rendered":"Migrating My WordPress Blog to Azure &#8211; I"},"content":{"rendered":"\n<p>In this post, I&#8217;ll walk you through the journey of migrating my WordPress blog to Microsoft Azure. We&#8217;ll explore why Azure is a prime choice for hosting WordPress sites, focusing on the advantages of scalability, security, and improved performance. I&#8217;ll detail each step from setting up the initial environment in the Azure portal to selecting the right hosting plan and finalizing the migration process. <\/p>\n\n\n\n<figure data-wp-context=\"{&quot;uploadedSrc&quot;:&quot;\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_1-2.jpg&quot;,&quot;figureClassNames&quot;:&quot;wp-block-image size-large&quot;,&quot;figureStyles&quot;:null,&quot;imgClassNames&quot;:&quot;wp-image-1248&quot;,&quot;imgStyles&quot;:null,&quot;targetWidth&quot;:2521,&quot;targetHeight&quot;:1389,&quot;scaleAttr&quot;:false,&quot;ariaLabel&quot;:&quot;Enlarge image&quot;,&quot;alt&quot;:&quot;&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"564\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"\/wp-content\/uploads\/2024\/06\/Screenshot_1-2-1024x564.jpg\" alt=\"\" class=\"wp-image-1248\" srcset=\"\/wp-content\/uploads\/2024\/06\/Screenshot_1-2-1024x564.jpg 1024w, \/wp-content\/uploads\/2024\/06\/Screenshot_1-2-300x165.jpg 300w, \/wp-content\/uploads\/2024\/06\/Screenshot_1-2-768x423.jpg 768w, \/wp-content\/uploads\/2024\/06\/Screenshot_1-2-1536x846.jpg 1536w, \/wp-content\/uploads\/2024\/06\/Screenshot_1-2-2048x1128.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge image\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"context.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"context.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p><strong>Choose Your Azure Environment<\/strong><\/p>\n\n\n\n<p>First, you need to navigate to the Azure portal. Once there, start creating a WordPress instance on Azure\u2019s App Service. This service is optimized for performance and security, making it a great choice for hosting WordPress.<\/p>\n\n\n\n<p><strong>Set Up Project Details<\/strong><\/p>\n\n\n\n<p>Subscription: Select the Azure subscription you want to use for billing purposes.<br>Resource Group: Create a new resource group or select an existing one. This is where all the resources related to your WordPress site will be managed.<\/p>\n\n\n\n<p><strong>Configure Hosting Details<\/strong><\/p>\n\n\n\n<p>Region: Choose the region closest to your user base to minimize latency and improve load times. For instance, if most of your audience is in the US, &#8216;East US 2&#8217; might be a good choice.<br>Instance Details: Provide a unique name for your web app, which will also be part of your default domain name on Azure.<\/p>\n\n\n\n<p><strong>Select a Hosting Plan<\/strong><\/p>\n\n\n\n<p>Azure offers various hosting plans depending on your needs:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-group alignwide is-nowrap is-layout-flex wp-container-core-group-is-layout-1 wp-block-group-is-layout-flex\">\n<p><strong>Free:<\/strong> Best for trial purposes. Limited to 60 CPU minutes per day. <\/p>\n\n\n\n<p><strong>Basic<\/strong>: Ideal for hobby or research sites with more CPU and storage. <\/p>\n\n\n\n<p><strong>Standard:<\/strong> Geared towards general-purpose production use, offering more power and storage options. <\/p>\n\n\n\n<p><strong>Premium: <\/strong>Designed for heavy workload production apps, featuring more powerful CPUs and additional storage.<\/p>\n<\/div>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-link-color wp-elements-0383042e63cd9da05e3a6208f85026c1\">For a typical WordPress blog, the Basic or Standard plan should suffice unless you expect high traffic or need extensive database use. <\/p>\n\n\n\n<p><strong>WordPress Setup<\/strong><\/p>\n\n\n\n<p>Admin Account: Set up your WordPress admin username and password. This will be used to manage your WordPress site from the dashboard. Database Configuration: Depending on your hosting plan, you might opt for an included MySQL database or connect to an external database service.<\/p>\n\n\n\n<p><strong>Review and Create<\/strong><\/p>\n\n\n\n<p>Before finalizing, review all your settings to make sure everything is correct. Then, click on \u2018Create\u2019 to deploy your WordPress site on Azure.<\/p>\n\n\n\n<p><br><strong>Post-Deployment<\/strong><\/p>\n\n\n\n<p>Once your site is deployed, you can access your WordPress admin panel by navigating to the URL provided by Azure. From there, you can start customizing your site with themes, plugins, and uploading content.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;uploadedSrc&quot;:&quot;\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_6.jpg&quot;,&quot;figureClassNames&quot;:&quot;wp-block-image size-large&quot;,&quot;figureStyles&quot;:null,&quot;imgClassNames&quot;:&quot;wp-image-1260&quot;,&quot;imgStyles&quot;:null,&quot;targetWidth&quot;:2253,&quot;targetHeight&quot;:919,&quot;scaleAttr&quot;:false,&quot;ariaLabel&quot;:&quot;Enlarge image&quot;,&quot;alt&quot;:&quot;&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"418\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"\/wp-content\/uploads\/2024\/06\/Screenshot_6-1024x418.jpg\" alt=\"\" class=\"wp-image-1260\" srcset=\"\/wp-content\/uploads\/2024\/06\/Screenshot_6-1024x418.jpg 1024w, \/wp-content\/uploads\/2024\/06\/Screenshot_6-300x122.jpg 300w, \/wp-content\/uploads\/2024\/06\/Screenshot_6-768x313.jpg 768w, \/wp-content\/uploads\/2024\/06\/Screenshot_6-1536x627.jpg 1536w, \/wp-content\/uploads\/2024\/06\/Screenshot_6-2048x835.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge image\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"context.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"context.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p><br><strong>Consider Additional Features<\/strong><\/p>\n\n\n\n<p>Azure provides options for scaling up or out, adding custom domains, and enabling other features like CDN for faster content delivery globally. Consider these options based on your site\u2019s performance and growth.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;uploadedSrc&quot;:&quot;\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_2.jpg&quot;,&quot;figureClassNames&quot;:&quot;wp-block-image size-large&quot;,&quot;figureStyles&quot;:null,&quot;imgClassNames&quot;:&quot;wp-image-1262&quot;,&quot;imgStyles&quot;:null,&quot;targetWidth&quot;:918,&quot;targetHeight&quot;:1271,&quot;scaleAttr&quot;:false,&quot;ariaLabel&quot;:&quot;Enlarge image&quot;,&quot;alt&quot;:&quot;&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"1024\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"\/wp-content\/uploads\/2024\/06\/Screenshot_2-740x1024.jpg\" alt=\"\" class=\"wp-image-1262\" srcset=\"\/wp-content\/uploads\/2024\/06\/Screenshot_2-740x1024.jpg 740w, \/wp-content\/uploads\/2024\/06\/Screenshot_2-217x300.jpg 217w, \/wp-content\/uploads\/2024\/06\/Screenshot_2-768x1063.jpg 768w, \/wp-content\/uploads\/2024\/06\/Screenshot_2.jpg 918w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge image\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"context.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"context.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>There are  several recommended addons that can significantly boost your site&#8217;s efficiency. Here&#8217;s what you need to know about each option:<\/p>\n\n\n\n<p><strong>Azure Email Service:<\/strong><br><em>What it does: This service supports high-volume email needs, such as transactional, bulk, and marketing emails.<\/em><br><em>When to use it: If your site sends newsletters, user confirmations, or promotional emails, this addon will be beneficial.<\/em><\/p>\n\n\n\n<p><strong>Azure CDN (Content Delivery Network):<\/strong><br><em>What it does: Improves your site&#8217;s performance, availability, and security by caching content in locations close to your users, reducing load times.<br>When to use it: Highly recommended if you have a global audience to ensure faster loading times and reduced latency.<\/em><\/p>\n\n\n\n<p><strong>Azure Front Door :<\/strong><br><em>What it does: Provides dynamic site acceleration that improves content delivery speeds by caching content at the nearest edge server.<br>When to use it: Useful for sites with dynamic content or high traffic, ensuring quick delivery and enhanced user experience.<\/em><\/p>\n\n\n\n<p><strong>Azure Blob Storage:<\/strong><br><em>What it does: Allows you to store and access large amounts of unstructured data such as images, videos, and other files, offloading the heavy lifting from your server.<br>When to use it: Essential if your site handles a lot of media content, improving performance and scalability.<\/em><\/p>\n\n\n\n<p>And done &#8211; the portal is working &#8211; we will continue migrating the existing one in a future post.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;uploadedSrc&quot;:&quot;\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_7.jpg&quot;,&quot;figureClassNames&quot;:&quot;wp-block-image size-large&quot;,&quot;figureStyles&quot;:null,&quot;imgClassNames&quot;:&quot;wp-image-1267&quot;,&quot;imgStyles&quot;:null,&quot;targetWidth&quot;:2261,&quot;targetHeight&quot;:1197,&quot;scaleAttr&quot;:false,&quot;ariaLabel&quot;:&quot;Enlarge image&quot;,&quot;alt&quot;:&quot;&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"542\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"\/wp-content\/uploads\/2024\/06\/Screenshot_7-1024x542.jpg\" alt=\"\" class=\"wp-image-1267\" srcset=\"\/wp-content\/uploads\/2024\/06\/Screenshot_7-1024x542.jpg 1024w, \/wp-content\/uploads\/2024\/06\/Screenshot_7-300x159.jpg 300w, \/wp-content\/uploads\/2024\/06\/Screenshot_7-768x407.jpg 768w, \/wp-content\/uploads\/2024\/06\/Screenshot_7-1536x813.jpg 1536w, \/wp-content\/uploads\/2024\/06\/Screenshot_7-2048x1084.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge image\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"context.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"context.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this post, I&#8217;ll walk you through the journey of migrating my WordPress blog to Microsoft Azure. We&#8217;ll explore why Azure is a prime choice for hosting WordPress sites, focusing on the advantages of scalability, security, and improved performance. I&#8217;ll detail each step from setting up the initial environment in the Azure portal to selecting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/posts\/1244"}],"collection":[{"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/comments?post=1244"}],"version-history":[{"count":16,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/posts\/1244\/revisions"}],"predecessor-version":[{"id":1268,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/posts\/1244\/revisions\/1268"}],"wp:attachment":[{"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/media?parent=1244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/categories?post=1244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bogdanburuiana.com\/index.php\/wp-json\/wp\/v2\/tags?post=1244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}