Share via


az support in-subscription file

Note

This reference is part of the support extension for the Azure CLI (version 2.57.0 or higher). The extension will automatically install the first time you run an az support in-subscription file command. Learn more about extensions.

File operations for a specified subscription.

Commands

Name Description Type Status
az support in-subscription file list

List all the Files information under a workspace for an Azure subscription.

Extension GA
az support in-subscription file show

Get details of a specific file in a work space.

Extension GA
az support in-subscription file upload

Uploads a file to a workspace for the specified subscription.

Extension GA

az support in-subscription file list

List all the Files information under a workspace for an Azure subscription.

az support in-subscription file list --file-workspace-name
                                     [--max-items]
                                     [--next-token]

Examples

List all the files within a file-workspace for a specified subscription (different from the account subscription)

az support in-subscription file list --file-workspace-name "TestFileWorkspaceName" --subscription "TestSubscription"

List all the files within a file-workspace for a specified subscription (same as the account subscription)

az support in-subscription file list --file-workspace-name "TestFileWorkspaceName"

Required Parameters

--file-workspace-name

File Workspace Name.

Optional Parameters

--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az support in-subscription file show

Get details of a specific file in a work space.

az support in-subscription file show --file-name
                                     --file-workspace-name

Examples

Show a file within a file-workspace for a specified subscription (different from the account subscription)

az support in-subscription file show --subscription "TestSubscription" --file-workspace-name "TestWorkspaceName" --file-name "FileName"

Show a file within a file-workspace for a specified subscription (same as the account subscription)

az support in-subscription file show --file-workspace-name "TestWorkspaceName" --file-name "FileName"

Required Parameters

--file-name

File Name.

--file-workspace-name

File Workspace Name.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az support in-subscription file upload

Uploads a file to a workspace for the specified subscription.

az support in-subscription file upload --file-path
                                       --file-workspace-name

Examples

Upload a file to a file workspace (different from the account subscription).

az support in-subscription file upload \
  --file-workspace-name "TestFileWorkspaceName" \
  --file-path "C:/Users/TestUsers/TestFolder/ExampleFile.txt" \
  --subscription "TestSubscription"

Upload a file to a to an Azure support ticket (different from the account subscription).

az support in-subscription file upload \
  --file-workspace-name "2300000000000358" \
  --file-path "C:/Users/TestUsers/TestFolder/ExampleFile.txt" \
  --subscription "TestSubscription"

Upload a file to a file workspace (same as the account subscription).

az support in-subscription file upload \
  --file-workspace-name "TestFileWorkspaceName" \
  --file-path "C:/Users/TestUsers/TestFolder/ExampleFile.txt"

Upload a file to an Azure support ticket (same as the account subscription).

az support in-subscription file upload \
  --file-workspace-name "2300000000000358" \
  --file-path "C:/Users/TestUsers/TestFolder/ExampleFile.txt"

Required Parameters

--file-path

File Path.

--file-workspace-name

File Workspace Name.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.