Container Groups - Create Or Update
Create or update container groups with specified configurations.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}?api-version=2023-05-01
Name | In | Required | Type | Description |
---|---|---|---|---|
container
|
path | True |
string |
The name of the container group. |
resource
|
path | True |
string |
The name of the resource group. |
subscription
|
path | True |
string |
Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client API version |
Name | Required | Type | Description |
---|---|---|---|
properties.containers | True |
The containers within the container group. |
|
properties.osType | True |
The operating system type required by the containers in the container group. |
|
identity |
The identity of the container group, if configured. |
||
location |
string |
The resource location. |
|
properties.confidentialComputeProperties |
The properties for confidential container group |
||
properties.diagnostics |
The diagnostic information for a container group. |
||
properties.dnsConfig |
The DNS config information for a container group. |
||
properties.encryptionProperties |
The encryption properties for a container group. |
||
properties.extensions |
extensions used by virtual kubelet |
||
properties.imageRegistryCredentials |
The image registry credentials by which the container group is created from. |
||
properties.initContainers |
The init containers for a container group. |
||
properties.ipAddress |
The IP address type of the container group. |
||
properties.priority |
The priority of the container group. |
||
properties.restartPolicy |
Restart policy for all containers within the container group.
|
||
properties.sku |
The SKU for a container group. |
||
properties.subnetIds |
The subnet resource IDs for a container group. |
||
properties.volumes |
Volume[] |
The list of volumes that can be mounted by containers in this container group. |
|
tags |
object |
The resource tags. |
|
zones |
string[] |
The zones for the container group. |
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
201 Created |
Created - the container group is created. |
|
Other Status Codes |
Error response describing why the operation failed. |
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Name | Description |
---|---|
user_impersonation | Impersonate your user account |
Confidential |
Container |
Container |
Container |
Container |
Sample request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1?api-version=2023-05-01
{
"location": "westeurope",
"properties": {
"containers": [
{
"name": "accdemo",
"properties": {
"command": [],
"environmentVariables": [],
"image": "confiimage",
"ports": [
{
"port": 8000
}
],
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5
}
},
"securityContext": {
"privileged": false,
"capabilities": {
"add": [
"CAP_NET_ADMIN"
]
}
}
}
}
],
"imageRegistryCredentials": [],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 8000
}
],
"type": "Public"
},
"osType": "Linux",
"sku": "Confidential",
"confidentialComputeProperties": {
"ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
}
}
}
Sample response
{
"properties": {
"sku": "Confidential",
"provisioningState": "Succeeded",
"containers": [
{
"name": "accdemo",
"properties": {
"image": "confiimage",
"command": [],
"ports": [
{
"port": 8000
}
],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1.5,
"cpu": 1
}
},
"securityContext": {
"privileged": false,
"capabilities": {
"add": [
"CAP_NET_ADMIN"
]
}
}
}
}
],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 8000
}
],
"type": "Public"
},
"initContainers": [],
"imageRegistryCredentials": [],
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Running"
},
"confidentialComputeProperties": {
"ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "westeurope"
}
{
"properties": {
"sku": "Confidential",
"provisioningState": "Succeeded",
"containers": [
{
"name": "accdemo",
"properties": {
"image": "confiimage",
"command": [],
"ports": [
{
"port": 8000
}
],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1.5,
"cpu": 1
}
},
"securityContext": {
"privileged": false,
"capabilities": {
"add": [
"CAP_NET_ADMIN"
]
}
}
}
}
],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 8000
}
],
"type": "Public"
},
"initContainers": [],
"imageRegistryCredentials": [],
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Running"
},
"confidentialComputeProperties": {
"ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "westeurope"
}
Sample request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1?api-version=2023-05-01
{
"location": "eastus2",
"properties": {
"containers": [
{
"name": "demo1",
"properties": {
"command": [],
"environmentVariables": [],
"image": "nginx",
"ports": [
{
"port": 80
}
],
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5
}
}
}
}
],
"imageRegistryCredentials": [],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 80
}
],
"type": "Private"
},
"osType": "Linux",
"subnetIds": [
{
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-rg-vnet/subnets/test-subnet"
}
],
"extensions": [
{
"name": "kube-proxy",
"properties": {
"extensionType": "kube-proxy",
"version": "1.0",
"settings": {
"clusterCidr": "10.240.0.0/16",
"kubeVersion": "v1.9.10"
},
"protectedSettings": {
"kubeConfig": "<kubeconfig encoded string>"
}
}
},
{
"name": "vk-realtime-metrics",
"properties": {
"extensionType": "realtime-metrics",
"version": "1.0"
}
}
]
}
}
Sample response
{
"properties": {
"sku": "Standard",
"provisioningState": "Pending",
"containers": [
{
"name": "demo1",
"properties": {
"image": "nginx",
"command": [],
"ports": [
{
"port": 80
}
],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1.5,
"cpu": 1
}
}
}
}
],
"initContainers": [],
"extensions": [
{
"name": "kube-proxy",
"properties": {
"extensionType": "kube-proxy",
"version": "1.0",
"settings": {
"clusterCidr": "10.240.0.0/16",
"kubeVersion": "v1.9.10"
}
}
},
{
"name": "vk-realtime-metrics",
"properties": {
"extensionType": "realtime-metrics",
"version": "1.0"
}
}
],
"imageRegistryCredentials": [],
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Pending"
},
"subnetIds": [
{
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-rg-vnet/subnets/test-subnet"
}
]
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "eastus2"
}
{
"properties": {
"sku": "Standard",
"provisioningState": "Pending",
"containers": [
{
"name": "demo1",
"properties": {
"image": "nginx",
"command": [],
"ports": [
{
"port": 80
}
],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1.5,
"cpu": 1
}
}
}
}
],
"initContainers": [],
"extensions": [
{
"name": "kube-proxy",
"properties": {
"extensionType": "kube-proxy",
"version": "1.0",
"settings": {
"clusterCidr": "10.240.0.0/16",
"kubeVersion": "v1.9.10"
}
}
},
{
"name": "vk-realtime-metrics",
"properties": {
"extensionType": "realtime-metrics",
"version": "1.0"
}
}
],
"imageRegistryCredentials": [],
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Running"
},
"subnetIds": [
{
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-rg-vnet/subnets/test-subnet"
}
]
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "eastus2"
}
Sample request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1?api-version=2023-05-01
{
"location": "west us",
"identity": {
"type": "SystemAssigned, UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {}
}
},
"properties": {
"containers": [
{
"name": "demo1",
"properties": {
"command": [],
"environmentVariables": [],
"image": "nginx",
"ports": [
{
"port": 80
}
],
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5,
"gpu": {
"count": 1,
"sku": "K80"
}
}
},
"volumeMounts": [
{
"name": "volume1",
"mountPath": "/mnt/volume1",
"readOnly": false
},
{
"name": "volume2",
"mountPath": "/mnt/volume2",
"readOnly": false
},
{
"name": "volume3",
"mountPath": "/mnt/volume3",
"readOnly": true
}
]
}
}
],
"diagnostics": {
"logAnalytics": {
"workspaceId": "workspaceid",
"workspaceKey": "workspaceKey",
"logType": "ContainerInsights",
"metadata": {
"test-key": "test-metadata-value"
},
"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace"
}
},
"subnetIds": [
{
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]"
}
],
"dnsConfig": {
"nameServers": [
"1.1.1.1"
],
"searchDomains": "cluster.local svc.cluster.local",
"options": "ndots:2"
},
"imageRegistryCredentials": [],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 80
}
],
"type": "Public",
"dnsNameLabel": "dnsnamelabel1",
"autoGeneratedDomainNameLabelScope": "Unsecure"
},
"osType": "Linux",
"volumes": [
{
"name": "volume1",
"azureFile": {
"shareName": "shareName",
"storageAccountName": "accountName",
"storageAccountKey": "accountKey"
}
},
{
"name": "volume2",
"emptyDir": {}
},
{
"name": "volume3",
"secret": {
"secretKey1": "SecretValue1InBase64",
"secretKey2": "SecretValue2InBase64"
}
}
]
}
}
Sample response
{
"id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"location": "WestUs",
"zones": [
"1"
],
"name": "demo1",
"properties": {
"containers": [
{
"name": "demo1",
"properties": {
"command": [],
"environmentVariables": [],
"image": "nginx",
"ports": [
{
"port": 80
}
],
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5,
"gpu": {
"count": 1,
"sku": "K80"
}
}
},
"volumeMounts": [
{
"name": "volume1",
"mountPath": "/mnt/volume1",
"readOnly": false
},
{
"name": "volume2",
"mountPath": "/mnt/volume2",
"readOnly": false
},
{
"name": "volume3",
"mountPath": "/mnt/volume3",
"readOnly": true
}
]
}
}
],
"diagnostics": {
"logAnalytics": {
"workspaceId": "workspaceid"
}
},
"dnsConfig": {
"nameServers": [
"1.1.1.1"
],
"searchDomains": "cluster.local svc.cluster.local",
"options": "ndots:2"
},
"imageRegistryCredentials": [],
"ipAddress": {
"ip": "10.0.0.1",
"ports": [
{
"port": 80,
"protocol": "TCP"
}
],
"type": "Public",
"dnsNameLabel": "dnsnamelabel1",
"autoGeneratedDomainNameLabelScope": "Unsecure",
"fqdn": "dnsnamelabel1.azure-container.io"
},
"osType": "Linux",
"provisioningState": "Succeeded",
"volumes": [
{
"name": "volume1",
"azureFile": {
"shareName": "shareName",
"storageAccountName": "accountName"
}
},
{
"name": "volume2",
"emptyDir": {}
},
{
"name": "volume3",
"secret": {}
}
]
},
"type": "Microsoft.ContainerInstance/containerGroups"
}
{
"id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"location": "WestUs",
"zones": [
"1"
],
"name": "demo1",
"properties": {
"containers": [
{
"name": "demo1",
"properties": {
"command": [],
"environmentVariables": [],
"image": "nginx",
"ports": [
{
"port": 80
}
],
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5,
"gpu": {
"count": 1,
"sku": "K80"
}
}
},
"volumeMounts": [
{
"name": "volume1",
"mountPath": "/mnt/volume1",
"readOnly": false
},
{
"name": "volume2",
"mountPath": "/mnt/volume2",
"readOnly": false
},
{
"name": "volume3",
"mountPath": "/mnt/volume3",
"readOnly": true
}
]
}
}
],
"dnsConfig": {
"nameServers": [
"1.1.1.1"
]
},
"imageRegistryCredentials": [],
"ipAddress": {
"ip": "10.0.0.1",
"ports": [
{
"port": 80,
"protocol": "TCP"
}
],
"type": "Public",
"dnsNameLabel": "dnsnamelabel1",
"autoGeneratedDomainNameLabelScope": "Unsecure",
"fqdn": "dnsnamelabel1.azure-container.io"
},
"osType": "Linux",
"provisioningState": "Succeeded",
"volumes": [
{
"name": "volume1",
"azureFile": {
"shareName": "shareName",
"storageAccountName": "accountName"
}
},
{
"name": "volume2",
"emptyDir": {}
},
{
"name": "volume3",
"secret": {}
}
]
},
"type": "Microsoft.ContainerInstance/containerGroups"
}
Sample request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1?api-version=2023-05-01
{
"properties": {
"sku": "Standard",
"containers": [
{
"name": "test-container-001",
"properties": {
"image": "alpine:latest",
"command": [
"/bin/sh",
"-c",
"sleep 10"
],
"resources": {
"requests": {
"memoryInGB": 1,
"cpu": 1
}
}
}
}
],
"restartPolicy": "Never",
"osType": "Linux",
"priority": "Spot"
},
"location": "eastus"
}
Sample response
{
"properties": {
"sku": "Standard",
"provisioningState": "Succeeded",
"containers": [
{
"name": "test-container-001",
"properties": {
"image": "alpine:latest",
"command": [
"/bin/sh",
"-c",
"sleep 10"
],
"ports": [],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1,
"cpu": 1
}
}
}
}
],
"initContainers": [],
"restartPolicy": "Never",
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Succeeded"
},
"priority": "Spot"
},
"id": "/subscriptions/subId/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "eastus"
}
{
"properties": {
"sku": "Standard",
"provisioningState": "Created",
"containers": [
{
"name": "test-container-001",
"properties": {
"image": "alpine:latest",
"command": [
"/bin/sh",
"-c",
"sleep 10"
],
"ports": [],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1,
"cpu": 1
}
}
}
}
],
"initContainers": [],
"restartPolicy": "Never",
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Created"
},
"priority": "Spot"
},
"id": "/subscriptions/subId/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "eastus"
}
Sample request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1?api-version=2023-05-01
{
"location": "eastus2",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity": {}
}
},
"properties": {
"containers": [
{
"name": "demo1",
"properties": {
"command": [],
"environmentVariables": [],
"image": "nginx",
"ports": [
{
"port": 80
}
],
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5
}
}
}
}
],
"imageRegistryCredentials": [],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 80
}
],
"type": "Public"
},
"osType": "Linux",
"encryptionProperties": {
"vaultBaseUrl": "https://testkeyvault.vault.azure.net",
"keyName": "test-key",
"keyVersion": "<key version>",
"identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity"
}
}
}
Sample response
{
"properties": {
"sku": "Standard",
"encryptionProperties": {
"vaultBaseUrl": "https://testkeyvault.vault.azure.net/",
"keyName": "test-key",
"keyVersion": "<key version>",
"identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity"
},
"provisioningState": "Pending",
"containers": [
{
"name": "demo1",
"properties": {
"image": "nginx",
"command": [],
"ports": [
{
"port": 80
}
],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1.5,
"cpu": 1
}
}
}
}
],
"initContainers": [],
"imageRegistryCredentials": [],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 80
}
],
"type": "Public"
},
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Pending"
}
},
"identity": {
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity": {
"principalId": "<principal id>",
"clientId": "<client id>"
}
},
"tenantId": "<tenant id>",
"type": "UserAssigned"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "eastus2"
}
{
"properties": {
"sku": "Standard",
"encryptionProperties": {
"vaultBaseUrl": "https://testkeyvault.vault.azure.net/",
"keyName": "test-key",
"keyVersion": "key version",
"identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity"
},
"provisioningState": "Running",
"containers": [
{
"name": "demo1",
"properties": {
"image": "nginx",
"command": [],
"ports": [
{
"port": 80
}
],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1.5,
"cpu": 1
}
}
}
}
],
"initContainers": [],
"imageRegistryCredentials": [],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 80
}
],
"type": "Public"
},
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Pending"
}
},
"identity": {
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity": {
"principalId": "<principal id>",
"clientId": "<client id>"
}
},
"tenantId": "<tenant id>",
"type": "UserAssigned"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "eastus2"
}
Name | Description |
---|---|
Azure |
The properties of the Azure File volume. Azure File shares are mounted as volumes. |
Cloud |
An error response from the Container Instance service. |
Cloud |
An error response from the Container Instance service. |
Confidential |
The properties for confidential container group |
Container |
A container instance. |
Container |
The container execution command, for liveness or readiness probe |
Container |
A container group. |
Container |
Container group diagnostic information. |
Container |
Identity for the container group. |
Container |
Specifies if the IP is exposed to the public internet or private VNET. |
Container |
The protocol associated with the port. |
Container |
The priority of the container group. |
Container |
The instance view of the container group. Only valid in response. |
Container |
Restart policy for all containers within the container group.
|
Container |
The container group SKU. |
Container |
Container group subnet information. |
Container |
The container Http Get settings, for liveness or readiness probe |
Container |
The protocol associated with the port. |
Container |
The port exposed on the container instance. |
Container |
The container probe, for liveness or readiness |
Container |
The container instance state. |
Deployment |
Extension sidecars to be added to the deployment. |
Dns |
DNS configuration for the container group. |
dns |
The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant. |
Empty |
The empty directory volume. |
Encryption |
The container group encryption properties. |
Environment |
The environment variable to set within the container instance. |
Event |
A container group or container instance event. |
Git |
Represents a volume that is populated with the contents of a git repository |
Gpu |
The GPU resource. |
Gpu |
The SKU of the GPU resource. |
Http |
The HTTP header. |
Image |
Image registry credential. |
Init |
The init container definition. |
Init |
The instance view of the init container. Only valid in response. |
Instance |
The instance view of the container instance. Only valid in response. |
Ip |
IP address for the container group. |
Log |
Container group log analytics information. |
Log |
The log type to be used. |
Operating |
The operating system type required by the containers in the container group. |
Port |
The port exposed on the container group. |
Resource |
The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the container group. |
Resource |
The resource limits. |
Resource |
The resource requests. |
Resource |
The resource requirements. |
Scheme |
The scheme. |
Security |
The capabilities to add or drop from a container. |
Security |
The security context for the container. |
User |
The list of user identities associated with the container group. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. |
Volume |
The properties of the volume. |
Volume |
The properties of the volume mount. |
The properties of the Azure File volume. Azure File shares are mounted as volumes.
Name | Type | Description |
---|---|---|
readOnly |
boolean |
The flag indicating whether the Azure File shared mounted as a volume is read-only. |
shareName |
string |
The name of the Azure File share to be mounted as a volume. |
storageAccountKey |
string |
The storage account access key used to access the Azure File share. |
storageAccountName |
string |
The name of the storage account that contains the Azure File share. |
An error response from the Container Instance service.
Name | Type | Description |
---|---|---|
error |
An error response from the Container Instance service. |
An error response from the Container Instance service.
Name | Type | Description |
---|---|---|
code |
string |
An identifier for the error. Codes are invariant and are intended to be consumed programmatically. |
details |
A list of additional details about the error. |
|
message |
string |
A message describing the error, intended to be suitable for display in a user interface. |
target |
string |
The target of the particular error. For example, the name of the property in error. |
The properties for confidential container group
Name | Type | Description |
---|---|---|
ccePolicy |
string |
The base64 encoded confidential compute enforcement policy |
A container instance.
Name | Type | Description |
---|---|---|
name |
string |
The user-provided name of the container instance. |
properties.command |
string[] |
The commands to execute within the container instance in exec form. |
properties.environmentVariables |
The environment variables to set in the container instance. |
|
properties.image |
string |
The name of the image used to create the container instance. |
properties.instanceView |
The instance view of the container instance. Only valid in response. |
|
properties.livenessProbe |
The liveness probe. |
|
properties.ports |
The exposed ports on the container instance. |
|
properties.readinessProbe |
The readiness probe. |
|
properties.resources |
The resource requirements of the container instance. |
|
properties.securityContext |
The container security properties. |
|
properties.volumeMounts |
The volume mounts available to the container instance. |
The container execution command, for liveness or readiness probe
Name | Type | Description |
---|---|---|
command |
string[] |
The commands to execute within the container. |
A container group.
Name | Type | Description |
---|---|---|
id |
string |
The resource id. |
identity |
The identity of the container group, if configured. |
|
location |
string |
The resource location. |
name |
string |
The resource name. |
properties.confidentialComputeProperties |
The properties for confidential container group |
|
properties.containers |
The containers within the container group. |
|
properties.diagnostics |
The diagnostic information for a container group. |
|
properties.dnsConfig |
The DNS config information for a container group. |
|
properties.encryptionProperties |
The encryption properties for a container group. |
|
properties.extensions |
extensions used by virtual kubelet |
|
properties.imageRegistryCredentials |
The image registry credentials by which the container group is created from. |
|
properties.initContainers |
The init containers for a container group. |
|
properties.instanceView |
The instance view of the container group. Only valid in response. |
|
properties.ipAddress |
The IP address type of the container group. |
|
properties.osType |
The operating system type required by the containers in the container group. |
|
properties.priority |
The priority of the container group. |
|
properties.provisioningState |
string |
The provisioning state of the container group. This only appears in the response. |
properties.restartPolicy |
Restart policy for all containers within the container group.
|
|
properties.sku |
The SKU for a container group. |
|
properties.subnetIds |
The subnet resource IDs for a container group. |
|
properties.volumes |
Volume[] |
The list of volumes that can be mounted by containers in this container group. |
tags |
object |
The resource tags. |
type |
string |
The resource type. |
zones |
string[] |
The zones for the container group. |
Container group diagnostic information.
Name | Type | Description |
---|---|---|
logAnalytics |
Container group log analytics information. |
Identity for the container group.
Name | Type | Description |
---|---|---|
principalId |
string |
The principal id of the container group identity. This property will only be provided for a system assigned identity. |
tenantId |
string |
The tenant id associated with the container group. This property will only be provided for a system assigned identity. |
type |
The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the container group. |
|
userAssignedIdentities |
<string,
User |
The list of user identities associated with the container group. |
Specifies if the IP is exposed to the public internet or private VNET.
Value | Description |
---|---|
Private | |
Public |
The protocol associated with the port.
Value | Description |
---|---|
TCP | |
UDP |
The priority of the container group.
Value | Description |
---|---|
Regular | |
Spot |
The instance view of the container group. Only valid in response.
Name | Type | Description |
---|---|---|
events |
Event[] |
The events of this container group. |
state |
string |
The state of the container group. Only valid in response. |
Restart policy for all containers within the container group.
Always
Always restartOnFailure
Restart on failureNever
Never restart
Value | Description |
---|---|
Always | |
Never | |
OnFailure |
The container group SKU.
Value | Description |
---|---|
Confidential | |
Dedicated | |
Standard |
Container group subnet information.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID of virtual network and subnet. |
name |
string |
Friendly name for the subnet. |
The container Http Get settings, for liveness or readiness probe
Name | Type | Description |
---|---|---|
httpHeaders |
The HTTP headers. |
|
path |
string |
The path to probe. |
port |
integer |
The port number to probe. |
scheme |
The scheme. |
The protocol associated with the port.
Value | Description |
---|---|
TCP | |
UDP |
The port exposed on the container instance.
Name | Type | Description |
---|---|---|
port |
integer |
The port number exposed within the container group. |
protocol |
The protocol associated with the port. |
The container probe, for liveness or readiness
Name | Type | Description |
---|---|---|
exec |
The execution command to probe |
|
failureThreshold |
integer |
The failure threshold. |
httpGet |
The Http Get settings to probe |
|
initialDelaySeconds |
integer |
The initial delay seconds. |
periodSeconds |
integer |
The period seconds. |
successThreshold |
integer |
The success threshold. |
timeoutSeconds |
integer |
The timeout seconds. |
The container instance state.
Name | Type | Description |
---|---|---|
detailStatus |
string |
The human-readable status of the container instance state. |
exitCode |
integer |
The container instance exit codes correspond to those from the |
finishTime |
string |
The date-time when the container instance state finished. |
startTime |
string |
The date-time when the container instance state started. |
state |
string |
The state of the container instance. |
Extension sidecars to be added to the deployment.
Name | Type | Description |
---|---|---|
name |
string |
Name of the extension. |
properties.extensionType |
string |
Type of extension to be added. |
properties.protectedSettings |
object |
Protected settings for the extension. |
properties.settings |
object |
Settings for the extension. |
properties.version |
string |
Version of the extension being used. |
DNS configuration for the container group.
Name | Type | Description |
---|---|---|
nameServers |
string[] |
The DNS servers for the container group. |
options |
string |
The DNS options for the container group. |
searchDomains |
string |
The DNS search domains for hostname lookup in the container group. |
The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.
Value | Description |
---|---|
Noreuse | |
ResourceGroupReuse | |
SubscriptionReuse | |
TenantReuse | |
Unsecure |
The empty directory volume.
The container group encryption properties.
Name | Type | Description |
---|---|---|
identity |
string |
The keyvault managed identity. |
keyName |
string |
The encryption key name. |
keyVersion |
string |
The encryption key version. |
vaultBaseUrl |
string |
The keyvault base url. |
The environment variable to set within the container instance.
Name | Type | Description |
---|---|---|
name |
string |
The name of the environment variable. |
secureValue |
string |
The value of the secure environment variable. |
value |
string |
The value of the environment variable. |
A container group or container instance event.
Name | Type | Description |
---|---|---|
count |
integer |
The count of the event. |
firstTimestamp |
string |
The date-time of the earliest logged event. |
lastTimestamp |
string |
The date-time of the latest logged event. |
message |
string |
The event message. |
name |
string |
The event name. |
type |
string |
The event type. |
Represents a volume that is populated with the contents of a git repository
Name | Type | Description |
---|---|---|
directory |
string |
Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. |
repository |
string |
Repository URL |
revision |
string |
Commit hash for the specified revision. |
The GPU resource.
Name | Type | Description |
---|---|---|
count |
integer |
The count of the GPU resource. |
sku |
The SKU of the GPU resource. |
The SKU of the GPU resource.
Value | Description |
---|---|
K80 | |
P100 | |
V100 |
The HTTP header.
Name | Type | Description |
---|---|---|
name |
string |
The header name. |
value |
string |
The header value. |
Image registry credential.
Name | Type | Description |
---|---|---|
identity |
string |
The identity for the private registry. |
identityUrl |
string |
The identity URL for the private registry. |
password |
string |
The password for the private registry. |
server |
string |
The Docker image registry server without a protocol such as "http" and "https". |
username |
string |
The username for the private registry. |
The init container definition.
Name | Type | Description |
---|---|---|
name |
string |
The name for the init container. |
properties.command |
string[] |
The command to execute within the init container in exec form. |
properties.environmentVariables |
The environment variables to set in the init container. |
|
properties.image |
string |
The image of the init container. |
properties.instanceView |
The instance view of the init container. Only valid in response. |
|
properties.securityContext |
The container security properties. |
|
properties.volumeMounts |
The volume mounts available to the init container. |
The instance view of the init container. Only valid in response.
Name | Type | Description |
---|---|---|
currentState |
The current state of the init container. |
|
events |
Event[] |
The events of the init container. |
previousState |
The previous state of the init container. |
|
restartCount |
integer |
The number of times that the init container has been restarted. |
The instance view of the container instance. Only valid in response.
Name | Type | Description |
---|---|---|
currentState |
Current container instance state. |
|
events |
Event[] |
The events of the container instance. |
previousState |
Previous container instance state. |
|
restartCount |
integer |
The number of times that the container instance has been restarted. |
IP address for the container group.
Name | Type | Default value | Description |
---|---|---|---|
autoGeneratedDomainNameLabelScope | Unsecure |
The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant. |
|
dnsNameLabel |
string |
The Dns name label for the IP. |
|
fqdn |
string |
The FQDN for the IP. |
|
ip |
string |
The IP exposed to the public internet. |
|
ports |
Port[] |
The list of ports exposed on the container group. |
|
type |
Specifies if the IP is exposed to the public internet or private VNET. |
Container group log analytics information.
Name | Type | Description |
---|---|---|
logType |
The log type to be used. |
|
metadata |
object |
Metadata for log analytics. |
workspaceId |
string |
The workspace id for log analytics |
workspaceKey |
string |
The workspace key for log analytics |
workspaceResourceId |
string |
The workspace resource id for log analytics |
The log type to be used.
Value | Description |
---|---|
ContainerInsights | |
ContainerInstanceLogs |
The operating system type required by the containers in the container group.
Value | Description |
---|---|
Linux | |
Windows |
The port exposed on the container group.
Name | Type | Description |
---|---|---|
port |
integer |
The port number. |
protocol |
The protocol associated with the port. |
The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the container group.
Value | Description |
---|---|
None | |
SystemAssigned | |
SystemAssigned, UserAssigned | |
UserAssigned |
The resource limits.
Name | Type | Description |
---|---|---|
cpu |
number |
The CPU limit of this container instance. |
gpu |
The GPU limit of this container instance. |
|
memoryInGB |
number |
The memory limit in GB of this container instance. |
The resource requests.
Name | Type | Description |
---|---|---|
cpu |
number |
The CPU request of this container instance. |
gpu |
The GPU request of this container instance. |
|
memoryInGB |
number |
The memory request in GB of this container instance. |
The resource requirements.
Name | Type | Description |
---|---|---|
limits |
The resource limits of this container instance. |
|
requests |
The resource requests of this container instance. |
The scheme.
Value | Description |
---|---|
http | |
https |
The capabilities to add or drop from a container.
Name | Type | Description |
---|---|---|
add |
string[] |
The capabilities to add to the container. |
drop |
string[] |
The capabilities to drop from the container. |
The security context for the container.
Name | Type | Description |
---|---|---|
allowPrivilegeEscalation |
boolean |
A boolean value indicating whether the init process can elevate its privileges |
capabilities |
The capabilities to add or drop from a container. |
|
privileged |
boolean |
The flag to determine if the container permissions is elevated to Privileged. |
runAsGroup |
integer |
Sets the User GID for the container. |
runAsUser |
integer |
Sets the User UID for the container. |
seccompProfile |
string |
a base64 encoded string containing the contents of the JSON in the seccomp profile |
The list of user identities associated with the container group. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
Name | Type | Description |
---|---|---|
clientId |
string |
The client id of user assigned identity. |
principalId |
string |
The principal id of user assigned identity. |
The properties of the volume.
Name | Type | Description |
---|---|---|
azureFile |
The Azure File volume. |
|
emptyDir |
The empty directory volume. |
|
gitRepo |
The git repo volume. |
|
name |
string |
The name of the volume. |
secret |
object |
The secret volume. |
The properties of the volume mount.
Name | Type | Description |
---|---|---|
mountPath |
string |
The path within the container where the volume should be mounted. Must not contain colon (:). |
name |
string |
The name of the volume mount. |
readOnly |
boolean |
The flag indicating whether the volume mount is read-only. |