{"id":24497,"date":"2021-04-17T01:49:47","date_gmt":"2021-04-17T01:49:47","guid":{"rendered":"http:\/\/matthewjrodgers.com\/?p=24497"},"modified":"2021-04-17T01:49:49","modified_gmt":"2021-04-17T01:49:49","slug":"microsoft-azure-automate-the-configuration-of-a-web-server","status":"publish","type":"post","link":"https:\/\/matthewjrodgers.com\/?p=24497","title":{"rendered":"Microsoft Azure: Automate the configuration of a web server"},"content":{"rendered":"\n<p>Using\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/learn\/modules\/automate-virtual-machine-software-installation-configuration\" target=\"_blank\">this<\/a>\u00a0walkthrough I automated the configuration of a web server using my personal Microsoft Azure subscription.\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/learn\/modules\/automate-virtual-machine-software-installation-configuration\/5-exercise-automate-configuration-web-server?pivots=windows-cloud\" target=\"_blank\">This<\/a>\u00a0page shows the last steps involved. Here are screenshots showcasing the major parts of my instance.<\/p>\n\n\n\n<p>Create the virtual machine<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"251\" src=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-create-1024x251.png\" alt=\"\" class=\"wp-image-24498\" srcset=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-create-1024x251.png 1024w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-create-300x74.png 300w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-create-768x188.png 768w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-create-982x241.png 982w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-create-400x98.png 400w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-create.png 1092w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Use the\u00a0<code>az vm extension<\/code>\u00a0command to run a PowerShell script which installs and configures Microsoft Internet Information Services with PHP<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"581\" src=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-extension-set-1024x581.png\" alt=\"\" class=\"wp-image-24499\" srcset=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-extension-set-1024x581.png 1024w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-extension-set-300x170.png 300w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-extension-set-768x436.png 768w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-extension-set-982x557.png 982w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-extension-set-400x227.png 400w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/az-vm-extension-set.png 1101w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Here is the PHP info page after the script has finished<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"505\" src=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/php-info-page-1024x505.png\" alt=\"\" class=\"wp-image-24500\" srcset=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/php-info-page-1024x505.png 1024w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/php-info-page-300x148.png 300w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/php-info-page-768x379.png 768w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/php-info-page-1536x757.png 1536w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/php-info-page-982x484.png 982w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/php-info-page-400x197.png 400w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/php-info-page.png 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Lastly, I delete the resource group which will delete all contents I created for this project<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"520\" height=\"38\" src=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/delete-the-resource-group.png\" alt=\"\" class=\"wp-image-24501\" srcset=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/delete-the-resource-group.png 520w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/delete-the-resource-group-300x22.png 300w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/04\/delete-the-resource-group-400x29.png 400w\" sizes=\"(max-width: 520px) 100vw, 520px\" \/><\/figure>\n\n\n\n<p>And that\u2019s it for this post! Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using\u00a0this\u00a0walkthrough I automated the configuration of a web server using my personal Microsoft Azure subscription.\u00a0This\u00a0page shows the last steps involved. Here are screenshots showcasing the major parts of my instance. Create the virtual machine Use the\u00a0az vm extension\u00a0command to run a PowerShell script which installs and configures Microsoft Internet Information Services with PHP Here is&hellip; <a href=\"https:\/\/matthewjrodgers.com\/?p=24497\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Microsoft Azure: Automate the configuration of a web server<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[5,4],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/posts\/24497"}],"collection":[{"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24497"}],"version-history":[{"count":1,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/posts\/24497\/revisions"}],"predecessor-version":[{"id":24502,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/posts\/24497\/revisions\/24502"}],"wp:attachment":[{"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}