From f991ab0e6bdc81290fe7e38ecf61bc3f267418c7 Mon Sep 17 00:00:00 2001 From: Yitao Pan Date: Wed, 30 Jul 2025 16:59:29 +0800 Subject: [PATCH 1/4] fix session execute path examples --- src/containerapp/HISTORY.rst | 1 + src/containerapp/azext_containerapp/_help.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index e97d0ce733e..17f5f773579 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -5,6 +5,7 @@ Release History upcoming ++++++ * 'az containerapp session code-interpreter execute': Extend maximum supported value of `--timeout-in-seconds` from 60 to 220. +* 'az containerapp session code-interpreter': Fix `--path` in examples * 'az containerapp job create': Fix message with `--help` * 'az containerapp arc': Enable setup custom core dns for Openshift on Arc diff --git a/src/containerapp/azext_containerapp/_help.py b/src/containerapp/azext_containerapp/_help.py index f2786f04988..0981ee39744 100644 --- a/src/containerapp/azext_containerapp/_help.py +++ b/src/containerapp/azext_containerapp/_help.py @@ -2075,7 +2075,7 @@ - name: Upload a file to a session. text: | az containerapp session code-interpreter upload-file -n MySessionPool -g MyResourceGroup --identifier MySession \\ - --filepath example.txt --path / + --filepath example.txt --path test-directory """ helps['containerapp session code-interpreter show-file-content'] = """ @@ -2084,7 +2084,7 @@ examples: - name: Show content of file. text: az containerapp session code-interpreter show-file-content -n MySessionPool -g MyResourceGroup --identifier MySession \\ - --filename example.txt --path / + --filename example.txt --path test-directory """ helps['containerapp session code-interpreter show-file-metadata'] = """ @@ -2093,7 +2093,7 @@ examples: - name: Show the meta-data details of a file uploaded to a session. text: az containerapp session code-interpreter show-file-metadata -n MySessionPool -g MyResourceGroup --identifier MySession \\ - --filename example.txt --path / + --filename example.txt --path test-directory """ helps['containerapp session code-interpreter delete-file'] = """ @@ -2102,7 +2102,7 @@ examples: - name: Delete a file . text: az containerapp session code-interpreter delete-file -n MySessionPool -g MyResourceGroup --identifier MySession \\ - --filename example.txt --path / + --filename example.txt --path test-directory """ helps['containerapp session code-interpreter list-files'] = """ @@ -2111,7 +2111,7 @@ examples: - name: List files uploaded in a code-interpreter session. text: | - az containerapp session code-interpreter list-files -n MySessionPool -g MyResourceGroup --identifier MySession --path / + az containerapp session code-interpreter list-files -n MySessionPool -g MyResourceGroup --identifier MySession --path test-directory """ helps['containerapp java'] = """ From 91d823d8429266558ba0d958a4d41223120f816e Mon Sep 17 00:00:00 2001 From: Yitao Pan Date: Wed, 30 Jul 2025 17:07:31 +0800 Subject: [PATCH 2/4] fix --- src/containerapp/azext_containerapp/_help.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/containerapp/azext_containerapp/_help.py b/src/containerapp/azext_containerapp/_help.py index 0981ee39744..3adaec584e6 100644 --- a/src/containerapp/azext_containerapp/_help.py +++ b/src/containerapp/azext_containerapp/_help.py @@ -2075,7 +2075,7 @@ - name: Upload a file to a session. text: | az containerapp session code-interpreter upload-file -n MySessionPool -g MyResourceGroup --identifier MySession \\ - --filepath example.txt --path test-directory + --filepath example.txt --path my-directory """ helps['containerapp session code-interpreter show-file-content'] = """ @@ -2084,7 +2084,7 @@ examples: - name: Show content of file. text: az containerapp session code-interpreter show-file-content -n MySessionPool -g MyResourceGroup --identifier MySession \\ - --filename example.txt --path test-directory + --filename example.txt --path my-directory """ helps['containerapp session code-interpreter show-file-metadata'] = """ @@ -2093,7 +2093,7 @@ examples: - name: Show the meta-data details of a file uploaded to a session. text: az containerapp session code-interpreter show-file-metadata -n MySessionPool -g MyResourceGroup --identifier MySession \\ - --filename example.txt --path test-directory + --filename example.txt --path my-directory """ helps['containerapp session code-interpreter delete-file'] = """ @@ -2102,7 +2102,7 @@ examples: - name: Delete a file . text: az containerapp session code-interpreter delete-file -n MySessionPool -g MyResourceGroup --identifier MySession \\ - --filename example.txt --path test-directory + --filename example.txt --path my-directory """ helps['containerapp session code-interpreter list-files'] = """ @@ -2111,7 +2111,7 @@ examples: - name: List files uploaded in a code-interpreter session. text: | - az containerapp session code-interpreter list-files -n MySessionPool -g MyResourceGroup --identifier MySession --path test-directory + az containerapp session code-interpreter list-files -n MySessionPool -g MyResourceGroup --identifier MySession --path my-directory """ helps['containerapp java'] = """ From f33a4b5efbba8a14a2ab4aec20839ae8b9a16cac Mon Sep 17 00:00:00 2001 From: Yitao Pan Date: Thu, 31 Jul 2025 16:08:58 +0800 Subject: [PATCH 3/4] pull main and fix history --- src/containerapp/HISTORY.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index ba4dc69f283..81b0c9f29ce 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -8,11 +8,11 @@ upcoming 1.2.0b3 ++++++ * 'az containerapp job list': Fix only 20 items returned +* 'az containerapp session code-interpreter': Fix `--path` in examples 1.2.0b2 ++++++ * 'az containerapp session code-interpreter execute': Extend maximum supported value of `--timeout-in-seconds` from 60 to 220. -* 'az containerapp session code-interpreter': Fix `--path` in examples * 'az containerapp job create': Fix message with `--help` * 'az containerapp arc': Enable setup custom core dns for Openshift on Arc From c39fbb9e4b406351178f95979445e275314e8714 Mon Sep 17 00:00:00 2001 From: Yitao Pan Date: Thu, 31 Jul 2025 16:15:43 +0800 Subject: [PATCH 4/4] fix --- src/containerapp/HISTORY.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index 81b0c9f29ce..9d44e41b7cb 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -4,11 +4,11 @@ Release History =============== upcoming ++++++ +* 'az containerapp session code-interpreter': Fix `--path` in examples 1.2.0b3 ++++++ * 'az containerapp job list': Fix only 20 items returned -* 'az containerapp session code-interpreter': Fix `--path` in examples 1.2.0b2 ++++++