Skip to content

The repository hosts an example application in the form of Azure Container Instance that can be deployed in a few minutes by Azure Custom Deployment (ARM / BICEP) or Terraform.

Notifications You must be signed in to change notification settings

ph4s3r/deploy-a-continer-instance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Azure Container Instance on Private VNET

The repository hosts an example application in the form of Azure Container Instance that can be deployed in a few minutes by Azure Custom Deployment (ARM / BICEP) or Terraform.

References

Container Instance ARM and BICEP template

Container Instance Terraform documentation

Deployment Options

ARM via Azure Portal

  1. Prerequisites are an existing resource group and a vnet with a subnet having a delegation to container groups.
  2. After checking out the repo or just downloading the template and parameters files, set your desired deployment options in parameters.json.
  3. go to

Deploy a custom template in Azure (or if on the Azure Portal already, search for "Deploy a custom template" in the search bar)

  1. Upload the template file and parameters file, then select desired subscription and location, however the location should match in parameters.json
  2. Deploy and test connectivity

ARM / BICEP via az cli

az deployment group create \
  --name aci-testapp-deployment \
  --resource-group rg-testapps-uk \
  --template-file template.bicep \
  --parameters @parameters.json

ARM/BICEP via Powershell

  New-AzResourceGroupDeployment -Name aci-testapp-deployment -ResourceGroupName rg-testapps-uk -TemplateFile template.bicep -TemplateParameterFile parameters.json

Terraform

  1. The deployment is manual with terraform cli. Subscription ID should be set before deployment for the logged in user.
  2. Set the desired deployment options in a .tfvars file (example provided)
  3. Deploy with terraform init && terraform apply -var-file=testdeployment.tfvars
  4. Test connectivity

About

The repository hosts an example application in the form of Azure Container Instance that can be deployed in a few minutes by Azure Custom Deployment (ARM / BICEP) or Terraform.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published