az containerapp session code-interpreter
Note
This reference is part of the containerapp extension for the Azure CLI (version 2.62.0 or higher). The extension will automatically install the first time you run an az containerapp session code-interpreter command. Learn more about extensions.
Commands to interact with and manage code interpreter sessions.
Commands
Name | Description | Type | Status |
---|---|---|---|
az containerapp session code-interpreter delete-file |
Delete a file uploaded to a code interpreter session. |
Extension | GA |
az containerapp session code-interpreter execute |
Execute code in a code interpreter session. |
Extension | GA |
az containerapp session code-interpreter list-files |
List files uploaded to a code interpreter session. |
Extension | GA |
az containerapp session code-interpreter show-file-content |
Show the content a file uploaded to a code interpreter session. |
Extension | GA |
az containerapp session code-interpreter show-file-metadata |
Shows the meta-data content a file uploaded to a code interpreter session. |
Extension | GA |
az containerapp session code-interpreter upload-file |
Upload a file to a code interpreter session . |
Extension | GA |
az containerapp session code-interpreter delete-file
Delete a file uploaded to a code interpreter session.
az containerapp session code-interpreter delete-file --filename
--identifier
--resource-group
[--ids]
[--name]
[--no-wait]
[--path]
[--session-pool-location]
[--subscription]
[--yes]
Examples
Delete a file .
az containerapp session code-interpreter delete-file -n MySessionPool -g MyResourceGroup --identifier MySession \ --filename example.txt --path /
Required Parameters
The file to delete or show from the session.
Property | Value |
---|---|
Parameter group: | file Arguments |
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The Session Pool name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
The path of files in the session.
Property | Value |
---|---|
Parameter group: | file Arguments |
The location of the session pool.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az containerapp session code-interpreter execute
Execute code in a code interpreter session.
az containerapp session code-interpreter execute --code
--identifier
--resource-group
[--ids]
[--name]
[--no-wait]
[--session-pool-location]
[--subscription]
[--timeout-in-seconds]
Examples
Execute a simple hello world.
az containerapp session code-interpreter execute -n MySessionPool -g MyResourceGroup --identifier MySession \
--code 'print("'"Hello world"'")' --timeout-in-seconds 30 --session-pool-location eastasia
Required Parameters
The code to execute in the code interpreter session.
Property | Value |
---|---|
Parameter group: | execute Arguments |
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The Session Pool name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
The location of the session pool.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Duration in seconds code in session can run prior to timing out 1 - 220 secs, e.g. 30.
Property | Value |
---|---|
Parameter group: | execute Arguments |
Default value: | 60 |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az containerapp session code-interpreter list-files
List files uploaded to a code interpreter session.
az containerapp session code-interpreter list-files --identifier
--resource-group
[--ids]
[--name]
[--path]
[--session-pool-location]
[--subscription]
Examples
List files uploaded in a code-interpreter session.
az containerapp session code-interpreter list-files -n MySessionPool -g MyResourceGroup --identifier MySession --path /
Required Parameters
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The Session Pool name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The path of files in the session.
Property | Value |
---|---|
Parameter group: | file Arguments |
The location of the session pool.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az containerapp session code-interpreter show-file-content
Show the content a file uploaded to a code interpreter session.
az containerapp session code-interpreter show-file-content --filename
--identifier
--resource-group
[--ids]
[--name]
[--path]
[--session-pool-location]
[--subscription]
Examples
Show content of file.
az containerapp session code-interpreter show-file-content -n MySessionPool -g MyResourceGroup --identifier MySession \ --filename example.txt --path /
Required Parameters
The file to delete or show from the session.
Property | Value |
---|---|
Parameter group: | file Arguments |
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The Session Pool name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The path of files in the session.
Property | Value |
---|---|
Parameter group: | file Arguments |
The location of the session pool.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az containerapp session code-interpreter show-file-metadata
Shows the meta-data content a file uploaded to a code interpreter session.
az containerapp session code-interpreter show-file-metadata --filename
--identifier
--resource-group
[--ids]
[--name]
[--path]
[--session-pool-location]
[--subscription]
Examples
Show the meta-data details of a file uploaded to a session.
az containerapp session code-interpreter show-file-metadata -n MySessionPool -g MyResourceGroup --identifier MySession \ --filename example.txt --path /
Required Parameters
The file to delete or show from the session.
Property | Value |
---|---|
Parameter group: | file Arguments |
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The Session Pool name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The path of files in the session.
Property | Value |
---|---|
Parameter group: | file Arguments |
The location of the session pool.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az containerapp session code-interpreter upload-file
Upload a file to a code interpreter session .
az containerapp session code-interpreter upload-file --filepath
--identifier
--resource-group
[--ids]
[--name]
[--no-wait]
[--path]
[--session-pool-location]
[--subscription]
Examples
Upload a file to a session.
az containerapp session code-interpreter upload-file -n MySessionPool -g MyResourceGroup --identifier MySession \
--filepath example.txt --path /
Required Parameters
The local path to the file to upload to the session.
Property | Value |
---|---|
Parameter group: | file Arguments |
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The Session Pool name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
The path of files in the session.
Property | Value |
---|---|
Parameter group: | file Arguments |
The location of the session pool.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |