Create Azure Container Instances

 




 Azure Container Instances (ACI)  

Utilizing the Azure Portal (Graphical User Interface):


Begin by signing in to the Azure Portal: Navigate to portal.azure.com.


Next, create a resource: Click on the "Create a resource" option located in the top left corner of the page.



Now, search for "Container Instances": Once you find it, select the option and proceed by clicking on "Create".




Basics Tab:


Subscription: Here, you will need to choose the Azure subscription that you wish to utilize for this instance.


Resource Group: You have the option to either create a new resource group or select an existing one to organize your resources effectively.


Container Name: Enter a distinctive name for your container (for example, "mycontainer") to ensure it is easily identifiable.


Region: Select the geographical region where you want your container to be hosted.


Image Source: Choose from the options available: "Quick start image" for testing purposes, "Azure Container Registry" for accessing private images, or "Docker Hub" for public images such as nginx:latest.


Image Name: Input the specific name of the image you intend to use (for instance, nginx:latest).


OS Type: Decide on the operating system type by selecting either Linux or Windows.


Size: Modify the CPU and memory settings according to your requirements.


'






Networking Tab:


DNS Name Label: Enter a distinctive label (for example, webserver). This label will contribute to forming your public URL (for instance, webserver.eastus.azurecontainer.io).


Ports: Add port 80 to enable HTTP traffic.



Restart Policy: Select from the available options such as "Always," which ensures the container restarts continuously, "Never," which prevents any restarts, or "On failure," which allows for a restart only if the container encounters an error.

Monitoring Tab:

make sure to Uncheck the "Enable container instance logs" or you will get the error. 





Review + Create:



Take a moment to carefully review all your configuration settings.


Once you are satisfied, click the "Create" button to initiate the deployment process.



Access: After the deployment is complete, go to your container instance within the Azure Portal, copy the Fully Qualified Domain Name (FQDN), and then paste it into your web browser to access your application.





we can use a browser to access the Container instance using the FQDN link



Post a Comment

0 Comments