Articles → MICROSOFT AZURE → Container Groups In Azure

Container Groups In Azure






Purpose





How To Create Multiple Containers Using The Container Group?




apiVersion: 2019-12-01
location: eastus
name: demogroup
properties:
  containers:
  - name: demoapp
    properties:
      image: nginx
      resources:
        requests:
          cpu: 1
          memoryInGb: 1.5
      ports:
      - port: 80
  osType: Linux
  ipAddress:
    type: Public
    ports:
    - protocol: tcp
      port: 80
type: Microsoft.ContainerInstance/containerGroups




Picture showing the yml file for creating the container group in Azure
Click to Enlarge



Picture showing an option for uploading the yml file in azure cloud shell
Click to Enlarge



az container create --resource-group rg --file deployment.yml




Picture showing the container instance created once the yml file is executed
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Sunday, May 16, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250