containers
Creates, updates, deletes, gets or lists a containers resource.
Overview
| Name | containers |
| Type | Resource |
| Id | azure.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
execute_command | exec | subscriptionId, resourceGroupName, containerGroupName, containerName | Executes a command for a specific container instance in a specified resource group and container group. | |
attach | exec | subscriptionId, resourceGroupName, containerGroupName, containerName | Attach 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.
| Name | Datatype | Description |
|---|---|---|
containerGroupName | string | The name of the container group. |
containerName | string | The name of the container instance. |
resourceGroupName | string | The name of the resource group. |
subscriptionId | string | Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
Lifecycle Methods
- execute_command
- attach
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 }}"
}'
;
Attach to the output stream of a specific container instance in a specified resource group and container group.
EXEC azure.container_instances.containers.attach
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@containerGroupName='{{ containerGroupName }}' --required,
@containerName='{{ containerName }}' --required
;