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.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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 | Preview |
az containerapp session code-interpreter execute |
Execute code in a code interpreter session. |
Extension | Preview |
az containerapp session code-interpreter list-files |
List files uploaded to a code interpreter session. |
Extension | Preview |
az containerapp session code-interpreter show-file-content |
Show the content a file uploaded to a code interpreter session. |
Extension | Preview |
az containerapp session code-interpreter show-file-metadata |
Shows the meta-data content a file uploaded to a code interpreter session. |
Extension | Preview |
az containerapp session code-interpreter upload-file |
Upload a file to a code interpreter session . |
Extension | Preview |
az containerapp session code-interpreter delete-file
Command group 'containerapp session code-interpreter' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a file uploaded to a code interpreter session.
az containerapp session code-interpreter delete-file --filename
--identifier
--resource-group
[--ids]
[--name]
[--no-wait]
[--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
Required Parameters
The file to delete or show from the session.
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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.
The Session Pool name.
Do not wait for the long-running operation to finish.
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
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp session code-interpreter execute
Command group 'containerapp session code-interpreter' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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.
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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.
The Session Pool name.
Do not wait for the long-running operation to finish.
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
.
Duration in seconds code in session can run prior to timing out 0 - 60 secs, e.g. 30.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp session code-interpreter list-files
Command group 'containerapp session code-interpreter' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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
Required Parameters
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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.
The Session Pool name.
The path to list files from the session.
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
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp session code-interpreter show-file-content
Command group 'containerapp session code-interpreter' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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]
[--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
Required Parameters
The file to delete or show from the session.
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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.
The Session Pool name.
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
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp session code-interpreter show-file-metadata
Command group 'containerapp session code-interpreter' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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]
[--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
Required Parameters
The file to delete or show from the session.
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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.
The Session Pool name.
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
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp session code-interpreter upload-file
Command group 'containerapp session code-interpreter' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Upload a file to a code interpreter session .
az containerapp session code-interpreter upload-file --filepath
--identifier
--resource-group
[--ids]
[--name]
[--no-wait]
[--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
Required Parameters
The local path to the file to upload to the session.
The Session Identifier.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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.
The Session Pool name.
Do not wait for the long-running operation to finish.
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
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI