az storage logging

Manage storage service logging information.

Commands

az storage logging off

Turn off logging for a storage account.

az storage logging show

Show logging settings for a storage account.

az storage logging update

Update logging settings for a storage account.

az storage logging off

Turn off logging for a storage account.

az storage logging off [--account-key]
                       [--account-name]
                       [--connection-string]
                       [--sas-token]
                       [--services]
                       [--subscription]
                       [--timeout]

Examples

Turn off logging for a storage account.

az storage logging off --account-name MyAccount

Optional Parameters

--account-key

Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY.

--account-name

Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit.

--connection-string

Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING.

--sas-token

A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN.

--services

The storage services from which to retrieve logging info: (b)lob (q)ueue (t)able. Can be combined.

default value: bqt
--subscription

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

--timeout

Request timeout in seconds. Applies to each call to the service.

az storage logging show

Show logging settings for a storage account.

az storage logging show [--account-key]
                        [--account-name]
                        [--connection-string]
                        [--query-examples]
                        [--sas-token]
                        [--services]
                        [--subscription]
                        [--timeout]

Examples

Show logging settings for a storage account. (autogenerated)

az storage logging show --account-name MyAccount --services qt

Optional Parameters

--account-key

Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY.

--account-name

Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit.

--connection-string

Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--sas-token

A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN.

--services

The storage services from which to retrieve logging info: (b)lob (q)ueue (t)able. Can be combined.

default value: bqt
--subscription

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

--timeout

Request timeout in seconds. Applies to each call to the service.

az storage logging update

Update logging settings for a storage account.

az storage logging update --log
                          --retention
                          --services
                          [--account-key]
                          [--account-name]
                          [--connection-string]
                          [--sas-token]
                          [--subscription]
                          [--timeout]
                          [--version]

Required Parameters

--log

The operations for which to enable logging: (r)ead (w)rite (d)elete. Can be combined.

--retention

Number of days for which to retain logs. 0 to disable.

--services

The storage service(s) for which to update logging info: (b)lob (q)ueue (t)able. Can be combined.

Optional Parameters

--account-key

Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY.

--account-name

Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit.

--connection-string

Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING.

--sas-token

A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN.

--subscription

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

--timeout

Request timeout in seconds. Applies to each call to the service.

--version

Version of the logging schema.