Share via


az storage account file-service-properties

管理記憶體帳戶中檔案服務的屬性。

命令

名稱 Description 類型 狀態
az storage account file-service-properties show

在記憶體帳戶中顯示檔案服務的屬性。

核心 GA
az storage account file-service-properties update

更新記憶體帳戶中檔案服務的屬性。

核心 GA

az storage account file-service-properties show

在記憶體帳戶中顯示檔案服務的屬性。

az storage account file-service-properties show --account-name
                                                [--resource-group]

範例

在記憶體帳戶中顯示檔案服務的屬性。

az storage account file-service-properties show -n mystorageaccount -g MyResourceGroup

必要參數

--account-name -n

儲存體帳戶名稱。

選擇性參數

--resource-group -g

資源群組的名稱。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az storage account file-service-properties update

更新記憶體帳戶中檔案服務的屬性。

az storage account file-service-properties update --account-name
                                                  [--add]
                                                  [--auth-methods]
                                                  [--channel-encryption]
                                                  [--delete-retention-days]
                                                  [--enable-delete-retention {false, true}]
                                                  [--enable-smb-multichannel {false, true}]
                                                  [--force-string]
                                                  [--kerb-ticket-encryption]
                                                  [--remove]
                                                  [--resource-group]
                                                  [--set]
                                                  [--versions]

範例

啟用虛刪除原則,並將記憶體帳戶中的檔案服務刪除保留天數設定為 100。

az storage account file-service-properties update --enable-delete-retention true --delete-retention-days 100 -n mystorageaccount -g MyResourceGroup

停用檔案服務的虛刪除原則。

az storage account file-service-properties update --enable-delete-retention false -n mystorageaccount -g MyResourceGroup

啟用檔案服務的SMB多重通道設定。

az storage account file-service-properties update --enable-smb-multichannel -n mystorageaccount -g MyResourceGroup

停用檔案服務的SMB多重通道設定。

az storage account file-service-properties update --enable-smb-multichannel false -n mystorageaccount -g MyResourceGroup

設定檔案服務的安全SMB設定。

az storage account file-service-properties update --versions SMB2.1;SMB3.0;SMB3.1.1 --auth-methods NTLMv2;Kerberos --kerb-ticket-encryption RC4-HMAC;AES-256 --channel-encryption AES-128-CCM;AES-128-GCM;AES-256-GCM -n mystorageaccount -g MyResourceGroup

必要參數

--account-name -n

儲存體帳戶名稱。

選擇性參數

--add

藉由指定路徑和索引鍵值組,將物件加入物件清單。 範例:--add property.listProperty <key=value, string or JSON string>

預設值: []
--auth-methods

伺服器支援的SMB驗證方法。 有效值為 NTLMv2、Kerberos。 應該以具有分隔符 『;』 的字串傳遞。

--channel-encryption

伺服器支援的SMB通道加密。 有效值為 AES-128-CCM、AES-128-GCM、AES-256-GCM。 應該以具有分隔符 『;』 的字串傳遞。

--delete-retention-days

指出應保留已刪除專案的天數。 指定的最小值可以是 1,最大值可以是 365。

--enable-delete-retention

啟用共用虛刪除的檔案服務屬性。

接受的值: false, true
--enable-smb-multichannel --mc

設定檔案服務的SMB多重通道設定。 僅適用於 進階版 檔案 儲存體。

接受的值: false, true
--force-string

使用 'set' 或 'add' 時,請保留字串常值,而不是嘗試轉換成 JSON。

預設值: False
--kerb-ticket-encryption -k

伺服器支援的 Kerberos 票證加密。 有效值為 RC4-HMAC、AES-256。 應該以具有分隔符 『;』 的字串傳遞。

--remove

從清單中移除屬性或專案。 範例: --remove property.list <indexToRemove>--remove propertyToRemove

預設值: []
--resource-group -g

資源群組的名稱。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--set

指定要設定的屬性路徑和值,以更新物件。 範例:--set property1.property2=<value>

預設值: []
--versions

伺服器支援的SMB通訊協定版本。 有效值為SMB2.1、SMB3.0、SMB3.1.1。 應該以具有分隔符 『;』 的字串傳遞。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。