Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Container Instances disk space pricing

This doesn't seem to be listed neither on the Microsoft portals, or be answered anywhere else - so I might have misunderstood how this is provisioned and/or calculated in Azure, but;

Instancing a container instance in Azure, with an image from my Azure Container Registry, how is disk space billed? I understand the whole memory/CPU billed-by-the-second, but what about the disk space taken up by the running instance?

The official docs seems to be very vague about this.

like image 381
Benjamin Ø. Avatar asked Mar 23 '18 17:03

Benjamin Ø.


People also ask

What are the 3 pricing models of Azure?

Azure Pricing Models Microsoft offers three main ways to pay for Azure VMs and other cloud resources: pay as you go, reserved instances, and spot instances.

Does Azure charge for OS disk?

They are charged at $0.05/GB per month for both Standard LRS and ZRS snapshot options of the storage occupied by the delta changes since the last snapshot. For example, you are using a managed disk with provisioned size of 128 GB and used size of 100 GB.

Is Azure container free?

Azure Kubernetes Service (AKS) is a free container service that simplifies the deployment, management, and operations of Kubernetes as a fully managed Kubernetes container orchestrator service.

Does Azure container instances scale?

Azure Container Apps manages automatic horizontal scaling through a set of declarative scaling rules. As a container app scales out, new instances of the container app are created on-demand. These instances are known as replicas.


1 Answers

When an Azure Container Instance is launched it has an amount of disk space available to the container. You have no control over this and are not explicitly charged for it.

Having just ran this command

az container create --image node:8.9.3-alpine -g "Test1" \
  -n test1 --command-line 'df -h'

The response shows...

Filesystem                Size      Used Available Use% Mounted on
overlay                  48.4G      2.8G     45.6G   6% /
tmpfs                   958.9M         0    958.9M   0% /dev
tmpfs                   958.9M         0    958.9M   0% /sys/fs/cgroup
/dev/sda1                48.4G      2.8G     45.6G   6% /dev/termination-log
tmpfs                   958.9M      4.0K    958.9M   0% /var/aci_metadata
/dev/sda1                48.4G      2.8G     45.6G   6% /etc/resolv.conf
/dev/sda1                48.4G      2.8G     45.6G   6% /etc/hostname
/dev/sda1                48.4G      2.8G     45.6G   6% /etc/hosts
shm                      64.0M         0     64.0M   0% /dev/shm
tmpfs                   958.9M         0    958.9M   0% /proc/kcore
tmpfs                   958.9M         0    958.9M   0% /proc/timer_list
tmpfs                   958.9M         0    958.9M   0% /proc/timer_stats
tmpfs                   958.9M         0    958.9M   0% /proc/sched_debug

So you should have 48gb of disk space to play with.

(I tried to test this with a Win Image, but got hit by a bug trying to get the information out)

like image 200
Michael B Avatar answered Nov 03 '22 19:11

Michael B