Skip to main content

containers

Creates, updates, deletes, gets or lists a containers resource.

Overview

Namecontainers
TypeResource
Idazure.container_instances.containers

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
execute_commandexecsubscriptionId, resourceGroupName, containerGroupName, containerNameExecutes a command for a specific container instance in a specified resource group and container group.
attachexecsubscriptionId, resourceGroupName, containerGroupName, containerNameAttach to the output stream of a specific container instance in a specified resource group and container group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
containerGroupNamestringThe name of the container group.
containerNamestringThe name of the container instance.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Lifecycle Methods

Executes a command for a specific container instance in a specified resource group and container group.

EXEC azure.container_instances.containers.execute_command 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@containerGroupName='{{ containerGroupName }}' --required,
@containerName='{{ containerName }}' --required
@@json=
'{
"command": "{{ command }}",
"terminalSize": "{{ terminalSize }}"
}'
;