{"id":15685,"date":"2020-08-07T08:07:06","date_gmt":"2020-08-07T08:07:06","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=15685"},"modified":"2020-08-07T08:07:07","modified_gmt":"2020-08-07T08:07:07","slug":"deploy-a-container-instance-in-azure","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/","title":{"rendered":"Deploy a container instance in Azure"},"content":{"rendered":"\n<p>Use Azure Container Instances to run serverless Docker containers in Azure with simplicity and speed. Deploy an application to a container instance on-demand when you don&#8217;t need a full container orchestration platform like Azure Kubernetes Service.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-a-container-instance\"><strong>Create a container instance<\/strong><\/h3>\n\n\n\n<p>Firstly, log in to azure portal and then Select the\u00a0<strong>Create a resource<\/strong>\u00a0>\u00a0<strong>Containers<\/strong>\u00a0>\u00a0<strong>Container Instances<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-01.png\" alt=\"Begin creating a new container instance in the Azure portal\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>On the&nbsp;<strong>Basics<\/strong>&nbsp;page, enter the following values in the&nbsp;<strong>Resource group<\/strong>,&nbsp;<strong>Container name<\/strong>, and&nbsp;<strong>Container image<\/strong>&nbsp;text boxes. Leave the other values at their defaults, then select&nbsp;<strong>OK<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Resource group:&nbsp;<strong>Create new<\/strong>&nbsp;&gt;&nbsp;<code>myresourcegroup<\/code><\/li><li>Container name:&nbsp;<code>mycontainer<\/code><\/li><li>Image source:&nbsp;<strong>Quickstart images<\/strong><\/li><li>Container image:&nbsp;<code>mcr.microsoft.com\/azuredocs\/aci-helloworld<\/code>&nbsp;(Linux)<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-03.png\" alt=\"Configuring basic settings for a new container instance in the Azure portal\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>For this quickstart, you use default settings to deploy the public Microsoft&nbsp;<code>aci-helloworld<\/code>&nbsp;image. This sample Linux image packages a small web app written in Node.js that serves a static HTML page. You can also bring your own container images stored in Azure Container Registry, Docker Hub, or other registries.<\/p>\n\n\n\n<p>On the&nbsp;<strong>Networking<\/strong>&nbsp;page, specify a&nbsp;<strong>DNS name label<\/strong>&nbsp;for your container. The name must be unique within the Azure region where you create the container instance. Your container will be publicly reachable at&nbsp;<code>&lt;dns-name-label&gt;.&lt;region&gt;.azurecontainer.io<\/code>. If you receive a &#8220;DNS name label not available&#8221; error message, try a different DNS name label.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-04.png\" alt=\"Configuring network settings for a new container instance in the Azure portal\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>Leave the other settings at their defaults, then select&nbsp;<strong>Review + create<\/strong>.<\/p>\n\n\n\n<p>When the validation completes, you&#8217;re shown a summary of the container&#8217;s settings. Select&nbsp;<strong>Create<\/strong>&nbsp;to submit your container deployment request.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-05.png\" alt=\"Settings summary for a new container instance in the Azure portal\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>When deployment starts, a notification appears to indicate the deployment is in progress. Another notification is displayed when the container group has been deployed.<\/p>\n\n\n\n<p>Open the overview for the container group by navigating to&nbsp;<strong>Resource Groups<\/strong>&nbsp;&gt;&nbsp;<strong>myresourcegroup<\/strong>&nbsp;&gt;&nbsp;<strong>mycontainer<\/strong>. Take note of the&nbsp;<strong>FQDN<\/strong>&nbsp;(the fully qualified domain name) of the container instance, as well its&nbsp;<strong>Status<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-06.png\" alt=\"Container group overview in the Azure portal\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>Once its&nbsp;<strong>Status<\/strong>&nbsp;is&nbsp;<em>Running<\/em>, navigate to the container&#8217;s FQDN in your browser.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-07.png\" alt=\"App deployed using Azure Container Instances viewed in browser\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>Congratulations! By configuring just a few settings, you&#8217;ve deployed a publicly accessible application in Azure Container Instances.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"view-container-logs\"><strong>View container logs<\/strong><\/h3>\n\n\n\n<p>Viewing the logs for a container instance is helpful when troubleshooting issues with your container or the application it runs.<\/p>\n\n\n\n<p>To view the container&#8217;s logs, under&nbsp;<strong>Settings<\/strong>, select&nbsp;<strong>Containers<\/strong>, then&nbsp;<strong>Logs<\/strong>. You should see the HTTP GET request generated when you viewed the application in your browser.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-11.png\" alt=\"Container logs in the Azure portal\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"clean-up-resources\"><strong>Clean up resources<\/strong><\/h3>\n\n\n\n<p>When you&#8217;re done with the container, select&nbsp;<strong>Overview<\/strong>&nbsp;for the&nbsp;<em>mycontainer<\/em>&nbsp;container instance, then select&nbsp;<strong>Delete<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-09.png\" alt=\"Deleting the container instance in the Azure portal\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>Select&nbsp;<strong>Yes<\/strong>&nbsp;when the confirmation dialog appears.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-10.png\" alt=\"Delete confirmation of a container instance in the Azure portal\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-architect-technologies-az-303-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png\" alt=\"free practice test for AZ- 303\" class=\"wp-image-13928\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png 960w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5-750x117.png 750w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-303-microsoft-azure-architect-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Go back to home page <\/strong><\/a><\/p>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference documentation &#8211; <\/strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/container-instances-quickstart-portal\">Quickstart<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/container-instances-quickstart-portal\" target=\"_blank\" rel=\"noreferrer noopener\">:<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/container-instances-quickstart-portal\"> Deploy a container instance in Azure using the Azure portal<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use Azure Container Instances to run serverless Docker containers in Azure with simplicity and speed. Deploy an application to a container instance on-demand when you don&#8217;t need a full container orchestration platform like Azure Kubernetes Service. Create a container instance Firstly, log in to azure portal and then Select the\u00a0Create a resource\u00a0>\u00a0Containers\u00a0>\u00a0Container Instances. On the&nbsp;Basics&nbsp;page,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-15685","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Deploy a container instance in Azure - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Deploy a container instance in Azure. Crack the exam now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploy a container instance in Azure - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Deploy a container instance in Azure. Crack the exam now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-07T08:07:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-01.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/\",\"name\":\"Deploy a container instance in Azure - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-08-07T08:07:06+00:00\",\"dateModified\":\"2020-08-07T08:07:07+00:00\",\"description\":\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Deploy a container instance in Azure. Crack the exam now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deploy a container instance in Azure\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deploy a container instance in Azure - Testprep Training Tutorials","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Deploy a container instance in Azure. Crack the exam now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/","og_locale":"en_US","og_type":"article","og_title":"Deploy a container instance in Azure - Testprep Training Tutorials","og_description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Deploy a container instance in Azure. Crack the exam now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-08-07T08:07:07+00:00","og_image":[{"url":"https:\/\/docs.microsoft.com\/en-us\/azure\/container-instances\/media\/container-instances-quickstart-portal\/qs-portal-01.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/","name":"Deploy a container instance in Azure - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-08-07T08:07:06+00:00","dateModified":"2020-08-07T08:07:07+00:00","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Deploy a container instance in Azure. Crack the exam now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/deploy-a-container-instance-in-azure\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Deploy a container instance in Azure"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/15685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=15685"}],"version-history":[{"count":1,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/15685\/revisions"}],"predecessor-version":[{"id":15686,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/15685\/revisions\/15686"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=15685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=15685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=15685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}