Microsoft.ContainerInstance (stable:2025-09-01)

2025/09/26 • 35 new, 35 deleted methods

ContainerGroups_List (new)
Description Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
string ,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_ListByResourceGroup (new)
Description Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
string ,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Get (new)
Description Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_CreateOrUpdate (new)
Description Create or update container groups with specified configurations.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
containerGroup: string ,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (201)

{
$schema: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Update (new)
Description Updates container group tags with specified values.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
Resource:
{
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
zones:
[
string ,
]
,
}
,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Delete (new)
Description Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Restart (new)
Description Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Stop (new)
Description Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Start (new)
Description Starts all containers in a container group. Compute resources will be allocated and billing will start.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Operations_List (new)
Description List the operations for Azure Container Instance service.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.ContainerInstance/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
properties: object ,
origin: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Location_ListUsage (new)
Description Get the usage for a subscription
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
unit: string ,
currentValue: integer ,
limit: integer ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Containers_ListLogs (new)
Description Get the logs for a specified container instance in a specified resource group and container group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
containerName: string ,
tail: integer ,
timestamps: boolean ,
}

⚐ Response (200)

{
content: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Containers_ExecuteCommand (new)
Description Executes a command for a specific container instance in a specified resource group and container group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
containerName: string ,
containerExecRequest:
{
command: string ,
terminalSize:
{
rows: integer ,
cols: integer ,
}
,
}
,
}

⚐ Response (200)

{
webSocketUri: string ,
password: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Containers_Attach (new)
Description Attach to the output stream of a specific container instance in a specified resource group and container group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
containerName: string ,
}

⚐ Response (200)

{
webSocketUri: string ,
password: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Location_ListCachedImages (new)
Description Get the list of cached images on specific OS type for a subscription in a region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
osType: string ,
image: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Location_ListCapabilities (new)
Description Get the list of CPU/memory/GPU capabilities of a region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
resourceType: string ,
osType: string ,
location: string ,
ipAddressType: string ,
gpu: string ,
capabilities:
{
maxMemoryInGB: number ,
maxCpu: number ,
maxGpuCount: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_GetOutboundNetworkDependenciesEndpoints (new)
Description Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_Get (new)
Description Get the properties of the specified NGroups resource.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
ngroupsName: string ,
}

⚐ Response (200)

{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_CreateOrUpdate (new)
Description Create or update a NGroups resource.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
resourceGroupName: string ,
ngroupsName: string ,
NGroup:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_Update (new)
Description Update a specified NGroups resource.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
resourceGroupName: string ,
ngroupsName: string ,
NGroup:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_Delete (new)
Description Deletes the NGroups resource.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
resourceGroupName: string ,
ngroupsName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_Start (new)
Description Starts all container groups in the specified NGroups resource. Compute resources will be allocated and billing will start.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/start
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
ngroupsName: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_Stop (new)
Description Stops all container groups in the specified NGroups resource. Compute resources will be deallocated and billing will stop.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/stop
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
ngroupsName: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_Restart (new)
Description Restarts all container groups in the specified NGroups resource in place. If container image has updates, new image will be downloaded.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/restart
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
ngroupsName: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_ListByResourceGroup (new)
Description Gets a list of all NGroups resources under a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_List (new)
Description Gets a list of all NGroups resources under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/ngroups
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfiles_ListBySubscription (new)
Description Gets a list of all container group profiles under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfiles_ListByResourceGroup (new)
Description Gets a list of all container group profiles under a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfile_CreateOrUpdate (new)
Description Create a CGProfile if it doesn't exist or update an existing CGProfile.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
ContainerGroupProfile:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-correlation-request-id: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
x-ms-correlation-request-id: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
CGProfile_Update (new)
Description Update a specified container group profile.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
properties:
{
tags: object ,
}
,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-correlation-request-id: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
CGProfile_Get (new)
Description Get the properties of the specified container group profile.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
api-version: string ,
}

⚐ Response (200)

{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfile_Delete (new)
Description Deletes a container group profile.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
CGProfile_ListAllRevisions (new)
Description Get a list of all the revisions of the specified container group profile in the given subscription and resource group. This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfile_GetByRevisionNumber (new)
Description Gets the properties of the specified revision of the container group profile in the given subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
revisionNumber: string ,
api-version: string ,
}

⚐ Response (200)

{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_List (removed)
Description Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
string ,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_ListByResourceGroup (removed)
Description Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
string ,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Get (removed)
Description Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_CreateOrUpdate (removed)
Description Create or update container groups with specified configurations.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
containerGroup: string ,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (201)

{
$schema: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Update (removed)
Description Updates container group tags with specified values.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
Resource:
{
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
zones:
[
string ,
]
,
}
,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Delete (removed)
Description Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Restart (removed)
Description Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Stop (removed)
Description Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_Start (removed)
Description Starts all containers in a container group. Compute resources will be allocated and billing will start.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Operations_List (removed)
Description List the operations for Azure Container Instance service.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.ContainerInstance/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
properties: object ,
origin: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Location_ListUsage (removed)
Description Get the usage for a subscription
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
unit: string ,
currentValue: integer ,
limit: integer ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Containers_ListLogs (removed)
Description Get the logs for a specified container instance in a specified resource group and container group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
containerName: string ,
tail: integer ,
timestamps: boolean ,
}

⚐ Response (200)

{
content: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Containers_ExecuteCommand (removed)
Description Executes a command for a specific container instance in a specified resource group and container group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
containerName: string ,
containerExecRequest:
{
command: string ,
terminalSize:
{
rows: integer ,
cols: integer ,
}
,
}
,
}

⚐ Response (200)

{
webSocketUri: string ,
password: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Containers_Attach (removed)
Description Attach to the output stream of a specific container instance in a specified resource group and container group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
containerName: string ,
}

⚐ Response (200)

{
webSocketUri: string ,
password: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Location_ListCachedImages (removed)
Description Get the list of cached images on specific OS type for a subscription in a region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
osType: string ,
image: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Location_ListCapabilities (removed)
Description Get the list of CPU/memory/GPU capabilities of a region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities
{
subscriptionId: string ,
location: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
resourceType: string ,
osType: string ,
location: string ,
ipAddressType: string ,
gpu: string ,
capabilities:
{
maxMemoryInGB: number ,
maxCpu: number ,
maxGpuCount: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ContainerGroups_GetOutboundNetworkDependenciesEndpoints (removed)
Description Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
containerGroupName: string ,
}

⚐ Response (200)

{
$schema: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_Get (removed)
Description Get the properties of the specified NGroups resource.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
ngroupsName: string ,
}

⚐ Response (200)

{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_CreateOrUpdate (removed)
Description Create or update a NGroups resource.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
resourceGroupName: string ,
ngroupsName: string ,
NGroup:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_Update (removed)
Description Update a specified NGroups resource.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
resourceGroupName: string ,
ngroupsName: string ,
NGroup:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_Delete (removed)
Description Deletes the NGroups resource.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
resourceGroupName: string ,
ngroupsName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_Start (removed)
Description Starts all container groups in the specified NGroups resource. Compute resources will be allocated and billing will start.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/start
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
ngroupsName: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_Stop (removed)
Description Stops all container groups in the specified NGroups resource. Compute resources will be deallocated and billing will stop.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/stop
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
ngroupsName: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_Restart (removed)
Description Restarts all container groups in the specified NGroups resource in place. If container image has updates, new image will be downloaded.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}/restart
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
ngroupsName: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_ListByResourceGroup (removed)
Description Gets a list of all NGroups resources under a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_List (removed)
Description Gets a list of all NGroups resources under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/ngroups
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfiles_ListBySubscription (removed)
Description Gets a list of all container group profiles under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfiles_ListByResourceGroup (removed)
Description Gets a list of all container group profiles under a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfile_CreateOrUpdate (removed)
Description Create a CGProfile if it doesn't exist or update an existing CGProfile.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
ContainerGroupProfile:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-correlation-request-id: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
x-ms-correlation-request-id: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
CGProfile_Update (removed)
Description Update a specified container group profile.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
properties:
{
tags: object ,
}
,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-correlation-request-id: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
CGProfile_Get (removed)
Description Get the properties of the specified container group profile.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
api-version: string ,
}

⚐ Response (200)

{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfile_Delete (removed)
Description Deletes a container group profile.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
CGProfile_ListAllRevisions (removed)
Description Get a list of all the revisions of the specified container group profile in the given subscription and resource group. This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
CGProfile_GetByRevisionNumber (removed)
Description Gets the properties of the specified revision of the container group profile in the given subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}
{
subscriptionId: string ,
resourceGroupName: string ,
containerGroupProfileName: string ,
revisionNumber: string ,
api-version: string ,
}

⚐ Response (200)

{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
sku: enum ,
encryptionProperties:
{
vaultBaseUrl: string ,
keyName: string ,
keyVersion: string ,
identity: string ,
}
,
containers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
resources:
{
requests:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
limits:
{
memoryInGB: number ,
cpu: number ,
gpu:
{
count: integer ,
sku: enum ,
}
,
}
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
livenessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
readinessProbe:
{
exec:
{
command:
[
string ,
]
,
}
,
httpGet:
{
path: string ,
port: integer ,
scheme: enum ,
httpHeaders:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
initialDelaySeconds: integer ,
periodSeconds: integer ,
failureThreshold: integer ,
successThreshold: integer ,
timeoutSeconds: integer ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
configMap:
{
keyValuePairs: object ,
}
,
}
,
}
,
]
,
initContainers:
[
{
name: string ,
properties:
{
image: string ,
command:
[
string ,
]
,
environmentVariables:
[
{
name: string ,
value: string ,
secureValue: string ,
secureValueReference: string ,
}
,
]
,
instanceView:
{
restartCount: integer ,
currentState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
previousState:
{
state: string ,
startTime: string ,
exitCode: integer ,
finishTime: string ,
detailStatus: string ,
}
,
events:
[
{
count: integer ,
firstTimestamp: string ,
lastTimestamp: string ,
name: string ,
message: string ,
type: string ,
}
,
]
,
}
,
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
}
,
}
,
]
,
extensions:
[
{
name: string ,
properties:
{
extensionType: string ,
version: string ,
settings: object ,
protectedSettings: object ,
}
,
}
,
]
,
imageRegistryCredentials:
[
{
server: string ,
username: string ,
password: string ,
passwordReference: string ,
identity: string ,
identityUrl: string ,
}
,
]
,
restartPolicy: enum ,
shutdownGracePeriod: string ,
ipAddress:
{
ports:
[
{
protocol: enum ,
port: integer ,
}
,
]
,
type: enum ,
ip: string ,
dnsNameLabel: string ,
autoGeneratedDomainNameLabelScope: enum ,
fqdn: string ,
}
,
timeToLive: string ,
osType: enum ,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
emptyDir: object ,
secret: object ,
secretReference: object ,
gitRepo:
{
directory: string ,
repository: string ,
revision: string ,
}
,
}
,
]
,
diagnostics:
{
logAnalytics:
{
workspaceId: string ,
workspaceKey: string ,
logType: enum ,
metadata: object ,
workspaceResourceId: string ,
}
,
}
,
priority: enum ,
confidentialComputeProperties:
{
ccePolicy: string ,
}
,
securityContext:
{
privileged: boolean ,
allowPrivilegeEscalation: boolean ,
capabilities:
{
add:
[
string ,
]
,
drop:
[
string ,
]
,
}
,
runAsGroup: integer ,
runAsUser: integer ,
seccompProfile: string ,
}
,
revision: integer ,
registeredRevisions:
[
integer ,
]
,
useKrypton: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}