az appconfig feature
管理儲存在應用程式組態存放區中的功能旗標。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az appconfig feature delete |
刪除功能旗標。 |
Core | GA |
| az appconfig feature disable |
停用功能旗標以將其關閉以供使用。 |
Core | GA |
| az appconfig feature enable |
啟用功能旗標以開啟它以供使用。 |
Core | GA |
| az appconfig feature filter |
管理與應用程式組態存放區中儲存之功能旗標相關聯的篩選。 |
Core | GA |
| az appconfig feature filter add |
將篩選新增至功能旗標。 |
Core | GA |
| az appconfig feature filter delete |
從功能旗標刪除篩選。 |
Core | GA |
| az appconfig feature filter list |
列出功能旗標的所有篩選。 |
Core | GA |
| az appconfig feature filter show |
顯示功能旗標的篩選。 |
Core | GA |
| az appconfig feature filter update |
更新功能旗標的篩選。 |
Core | GA |
| az appconfig feature list |
列出功能旗標。 |
Core | GA |
| az appconfig feature lock |
鎖定功能旗標以禁止寫入作業。 |
Core | GA |
| az appconfig feature set |
設定功能旗標。 |
Core | GA |
| az appconfig feature show |
顯示功能旗標的的所有屬性。 |
Core | GA |
| az appconfig feature unlock |
解除鎖定功能以取得寫入作業。 |
Core | GA |
az appconfig feature delete
刪除功能旗標。
az appconfig feature delete [--auth-mode {key, login}]
[--connection-string]
[--endpoint]
[--feature]
[--key]
[--label]
[--name]
[--tags]
[--yes]
範例
使用應用程式組態存放區名稱刪除功能,而不需確認。
az appconfig feature delete -n MyAppConfiguration --feature color --label MyLabel --yes
使用連接字串刪除功能。
az appconfig feature delete --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --feature color --label MyLabel
使用應用程式組態存放區端點和您的 'az login' 認證來刪除功能。
az appconfig feature delete --endpoint https://myappconfiguration.azconfig.io --feature color --auth-mode login
刪除名稱為 “Beta” 但機碼為 “.appconfig.featureflag/MyApp1:Beta” 的功能。
az appconfig feature delete -n MyAppConfiguration --key .appconfig.featureflag/MyApp1:Beta --yes
刪除名稱為 「Beta」 但索引鍵為 「.appconfig.featureflag/MyApp1:Beta」 且標籤為 “tag1=value1” 和 “tag2=value2” 的功能。
az appconfig feature delete -n MyAppConfiguration --key .appconfig.featureflag/MyApp1:Beta --tags tag1=value1 tag2=value2 --yes
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
這個參數可用來指出數據作業的授權方式。 如果驗證模式為「金鑰」,請提供連接字串或存放區名稱,而您的帳戶存取金鑰將會擷取以進行授權。 如果驗證模式為 「login」,請提供 --endpoint 或 --name,且您的 “az login” 認證將用於授權。 您可以使用 az configure --defaults appconfig_auth_mode=<auth_mode>來設定預設驗證模式。 如需詳細資訊,請參閱https://learn.microsoft.com/azure/azure-app-configuration/concept-enable-rbac。
| 屬性 | 值 |
|---|---|
| 預設值: | key |
| 接受的值: | key, login |
應用程式組態存放區的存取金鑰和端點組合。 您可以使用 'az appconfig credential list' 找到。 用戶可以使用名稱AZURE_APPCONFIG_CONNECTION_STRING az configure --defaults appconfig_connection_string=<connection_string> 或環境變數來預設。
如果驗證模式為「登入」,請提供應用程式組態存放區的端點 URL。 您可以使用 「az appconfig show」 命令來擷取端點。 您可以使用 az configure --defaults appconfig_endpoint=<endpoint>來設定預設端點。
要刪除的功能名稱。 如果功能旗標索引鍵與預設索引鍵不同,請改為提供 --key 自變數。 支援星號做為篩選,例如 * 表示所有功能和 abc* 表示具有 abc 作為前置詞的功能。 不支援逗號分隔功能。 如果您的功能名稱包含逗號,請提供逸出字串。
功能旗標的索引鍵。 機碼必須以 “.appconfig.featureflag/” 前置詞開頭。 索引鍵不能包含 「%」 字元。 如果同時提供索引鍵和功能自變數,則只會使用索引鍵。 支援星號作為篩選條件,例如 “.appconfig.featureflag/” 表示所有功能和 “.appconfig.featureflag/abc” 表示具有 abc 作為前置詞的功能。 不支援逗號分隔功能。 如果您的功能名稱包含逗號,請提供逸出字串。
如果未指定任何標籤,則預設會刪除具有 Null 標籤的功能旗標。 支援星號作為篩選條件,例如 * 表示所有標籤和 abc* 表示具有 abc 作為前置詞的標籤。
應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。
如果未指定任何標籤,請刪除具有任何標籤的所有功能旗標。 支援以空格分隔的標記:key[=value] [key[=value] ...]。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az appconfig feature disable
停用功能旗標以將其關閉以供使用。
az appconfig feature disable [--auth-mode {key, login}]
[--connection-string]
[--endpoint]
[--feature]
[--key]
[--label]
[--name]
[--yes]
範例
使用應用程式組態存放區名稱停用功能。
az appconfig feature disable -n MyAppConfiguration --feature color --label test
使用連接字串強制停用功能。
az appconfig feature disable --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --feature color --label test --yes
停用名稱為 “Beta” 但機碼為 “.appconfig.featureflag/MyApp1:Beta” 的功能。
az appconfig feature disable -n MyAppConfiguration --key .appconfig.featureflag/MyApp1:Beta
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
這個參數可用來指出數據作業的授權方式。 如果驗證模式為「金鑰」,請提供連接字串或存放區名稱,而您的帳戶存取金鑰將會擷取以進行授權。 如果驗證模式為 「login」,請提供 --endpoint 或 --name,且您的 “az login” 認證將用於授權。 您可以使用 az configure --defaults appconfig_auth_mode=<auth_mode>來設定預設驗證模式。 如需詳細資訊,請參閱https://learn.microsoft.com/azure/azure-app-configuration/concept-enable-rbac。
| 屬性 | 值 |
|---|---|
| 預設值: | key |
| 接受的值: | key, login |
應用程式組態存放區的存取金鑰和端點組合。 您可以使用 'az appconfig credential list' 找到。 用戶可以使用名稱AZURE_APPCONFIG_CONNECTION_STRING az configure --defaults appconfig_connection_string=<connection_string> 或環境變數來預設。
如果驗證模式為「登入」,請提供應用程式組態存放區的端點 URL。 您可以使用 「az appconfig show」 命令來擷取端點。 您可以使用 az configure --defaults appconfig_endpoint=<endpoint>來設定預設端點。
要停用的功能名稱。 如果功能旗標索引鍵與預設索引鍵不同,請改為提供 --key 自變數。
功能旗標的索引鍵。 機碼必須以 “.appconfig.featureflag/” 前置詞開頭。 索引鍵不能包含 「%」 字元。 如果同時提供索引鍵和功能自變數,則只會使用索引鍵。 默認索引鍵是保留前置詞 “.appconfig.featureflag/” + 功能名稱。
如果未指定任何標籤,則預設會停用具有 Null 標籤的功能旗標。
應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az appconfig feature enable
啟用功能旗標以開啟它以供使用。
az appconfig feature enable [--auth-mode {key, login}]
[--connection-string]
[--endpoint]
[--feature]
[--key]
[--label]
[--name]
[--yes]
範例
使用應用程式組態存放區名稱啟用功能。
az appconfig feature enable -n MyAppConfiguration --feature color --label test
使用連接字串強制啟用功能。
az appconfig feature enable --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --feature color --label test --yes
啟用名稱為 “Beta” 但機碼為 “.appconfig.featureflag/MyApp1:Beta” 的功能。
az appconfig feature enable -n MyAppConfiguration --key .appconfig.featureflag/MyApp1:Beta
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
這個參數可用來指出數據作業的授權方式。 如果驗證模式為「金鑰」,請提供連接字串或存放區名稱,而您的帳戶存取金鑰將會擷取以進行授權。 如果驗證模式為 「login」,請提供 --endpoint 或 --name,且您的 “az login” 認證將用於授權。 您可以使用 az configure --defaults appconfig_auth_mode=<auth_mode>來設定預設驗證模式。 如需詳細資訊,請參閱https://learn.microsoft.com/azure/azure-app-configuration/concept-enable-rbac。
| 屬性 | 值 |
|---|---|
| 預設值: | key |
| 接受的值: | key, login |
應用程式組態存放區的存取金鑰和端點組合。 您可以使用 'az appconfig credential list' 找到。 用戶可以使用名稱AZURE_APPCONFIG_CONNECTION_STRING az configure --defaults appconfig_connection_string=<connection_string> 或環境變數來預設。
如果驗證模式為「登入」,請提供應用程式組態存放區的端點 URL。 您可以使用 「az appconfig show」 命令來擷取端點。 您可以使用 az configure --defaults appconfig_endpoint=<endpoint>來設定預設端點。
要啟用的功能名稱。 如果功能旗標索引鍵與預設索引鍵不同,請改為提供 --key 自變數。
功能旗標的索引鍵。 機碼必須以 “.appconfig.featureflag/” 前置詞開頭。 索引鍵不能包含 「%」 字元。 如果同時提供索引鍵和功能自變數,則只會使用索引鍵。 默認索引鍵是保留前置詞 “.appconfig.featureflag/” + 功能名稱。
如果未指定任何標籤,則預設會啟用具有 Null 標籤的功能旗標。
應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az appconfig feature list
列出功能旗標。
az appconfig feature list [--all]
[--auth-mode {key, login}]
[--connection-string]
[--endpoint]
[--feature]
[--fields {conditions, description, key, label, last_modified, locked, name, state}]
[--key]
[--label]
[--name]
[--tags]
[--top]
範例
列出所有功能旗標。
az appconfig feature list -n MyAppConfiguration
列出具有 Null 標籤的所有功能旗標。
az appconfig feature list -n MyAppConfiguration --label \0
列出任何標籤從 v1 開始的特定功能。 使用連接字串。
az appconfig feature list --feature color --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --label v1.*
列出所有具有任何標籤和查詢索引鍵、狀態和條件的功能。
az appconfig feature list --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --fields key state conditions
列出具有任何標籤的150個功能旗標。
az appconfig feature list --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --top 150
列出具有多個標籤的功能旗標。
az appconfig feature list --label test,prod,\0 -n MyAppConfiguration
列出以 「MyApp1」 開頭的所有功能。
az appconfig feature list -n MyAppConfiguration --key .appconfig.featureflag/MyApp1*
列出具有特定標籤的所有功能旗標。
az appconfig feature list -n MyAppConfiguration --tags tag1=value1 tag2=value2
列出具有空白值之標籤名稱 「tag1」 的所有功能旗標。
az appconfig feature list -n MyAppConfiguration --tags tag1=
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
列出所有功能旗標。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
這個參數可用來指出數據作業的授權方式。 如果驗證模式為「金鑰」,請提供連接字串或存放區名稱,而您的帳戶存取金鑰將會擷取以進行授權。 如果驗證模式為 「login」,請提供 --endpoint 或 --name,且您的 “az login” 認證將用於授權。 您可以使用 az configure --defaults appconfig_auth_mode=<auth_mode>來設定預設驗證模式。 如需詳細資訊,請參閱https://learn.microsoft.com/azure/azure-app-configuration/concept-enable-rbac。
| 屬性 | 值 |
|---|---|
| 預設值: | key |
| 接受的值: | key, login |
應用程式組態存放區的存取金鑰和端點組合。 您可以使用 'az appconfig credential list' 找到。 用戶可以使用名稱AZURE_APPCONFIG_CONNECTION_STRING az configure --defaults appconfig_connection_string=<connection_string> 或環境變數來預設。
如果驗證模式為「登入」,請提供應用程式組態存放區的端點 URL。 您可以使用 「az appconfig show」 命令來擷取端點。 您可以使用 az configure --defaults appconfig_endpoint=<endpoint>來設定預設端點。
要列出的功能名稱。 如果功能旗標索引鍵與預設索引鍵不同,請改為提供 --key 自變數。 支援星號做為篩選,例如 * 表示所有功能和 abc* 表示具有 abc 作為前置詞的功能。 不支援逗號分隔功能。 如果您的功能名稱包含逗號,請提供逸出字串。
自訂功能旗標的輸出欄位。
| 屬性 | 值 |
|---|---|
| 接受的值: | conditions, description, key, label, last_modified, locked, name, state |
功能旗標的索引鍵。 機碼必須以 “.appconfig.featureflag/” 前置詞開頭。 索引鍵不能包含 「%」 字元。 如果同時提供索引鍵和功能自變數,則只會使用索引鍵。 支援星號作為篩選條件,例如 “.appconfig.featureflag/” 表示所有功能和 “.appconfig.featureflag/abc” 表示具有 abc 作為前置詞的功能。 不支援逗號分隔功能。 如果您的功能名稱包含逗號,請提供逸出字串。
如果未指定任何標籤,請列出所有標籤。 支援星號作為篩選條件,例如 * 表示所有標籤和 abc* 表示具有 abc 作為前置詞的標籤。 針對 Null 標籤使用 『\0』。
應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。
如果未指定任何標籤,請列出具有任何標籤的所有功能旗標。 支援以空格分隔的標記:key[=value] [key[=value] ...]。
要傳回的項目數目上限。 必須是正整數。 預設為 100。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az appconfig feature lock
鎖定功能旗標以禁止寫入作業。
az appconfig feature lock [--auth-mode {key, login}]
[--connection-string]
[--endpoint]
[--feature]
[--key]
[--label]
[--name]
[--yes]
範例
使用應用程式組態存放區名稱鎖定功能。
az appconfig feature lock -n MyAppConfiguration --feature color --label test
使用連接字串強制鎖定功能。
az appconfig feature lock --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --feature color --label test --yes
鎖定名稱為 “Beta” 但機碼為 “.appconfig.featureflag/MyApp1:Beta” 的功能。
az appconfig feature lock -n MyAppConfiguration --key .appconfig.featureflag/MyApp1:Beta
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
這個參數可用來指出數據作業的授權方式。 如果驗證模式為「金鑰」,請提供連接字串或存放區名稱,而您的帳戶存取金鑰將會擷取以進行授權。 如果驗證模式為 「login」,請提供 --endpoint 或 --name,且您的 “az login” 認證將用於授權。 您可以使用 az configure --defaults appconfig_auth_mode=<auth_mode>來設定預設驗證模式。 如需詳細資訊,請參閱https://learn.microsoft.com/azure/azure-app-configuration/concept-enable-rbac。
| 屬性 | 值 |
|---|---|
| 預設值: | key |
| 接受的值: | key, login |
應用程式組態存放區的存取金鑰和端點組合。 您可以使用 'az appconfig credential list' 找到。 用戶可以使用名稱AZURE_APPCONFIG_CONNECTION_STRING az configure --defaults appconfig_connection_string=<connection_string> 或環境變數來預設。
如果驗證模式為「登入」,請提供應用程式組態存放區的端點 URL。 您可以使用 「az appconfig show」 命令來擷取端點。 您可以使用 az configure --defaults appconfig_endpoint=<endpoint>來設定預設端點。
要鎖定的功能名稱。 如果功能旗標索引鍵與預設索引鍵不同,請改為提供 --key 自變數。
功能旗標的索引鍵。 機碼必須以 “.appconfig.featureflag/” 前置詞開頭。 索引鍵不能包含 「%」 字元。 如果同時提供索引鍵和功能自變數,則只會使用索引鍵。 默認索引鍵是保留前置詞 “.appconfig.featureflag/” + 功能名稱。
如果未指定任何標籤,則預設會鎖定具有 Null 標籤的功能旗標。
應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az appconfig feature set
設定功能旗標。
az appconfig feature set [--auth-mode {key, login}]
[--connection-string]
[--description]
[--endpoint]
[--feature]
[--key]
[--label]
[--name]
[--requirement-type {All, Any}]
[--tags]
[--yes]
範例
使用標籤 MyLabel 設定功能旗標。
az appconfig feature set -n MyAppConfiguration --feature color --label MyLabel
使用連接字串設定具有 Null 標籤的功能旗標,並設定描述。
az appconfig feature set --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --feature color --description "This is a colorful feature"
使用您的 'az login' 認證來設定功能旗標。
az appconfig feature set --endpoint https://myappconfiguration.azconfig.io --feature color --label MyLabel --auth-mode login
設定名稱為 “Beta” 和自定義密鑰 “.appconfig.featureflag/MyApp1:Beta” 的功能旗標。
az appconfig feature set -n MyAppConfiguration --feature Beta --key .appconfig.featureflag/MyApp1:Beta
使用標籤 “tag1=value1” 和 “tag2=value2” 設定名稱為 “Beta” 和自定義索引鍵 “.appconfig.featureflag/MyApp1:Beta” 的功能旗標。
az appconfig feature set -n MyAppConfiguration --feature Beta --key .appconfig.featureflag/MyApp1:Beta --tags tag1=value1 tag2=value2
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
這個參數可用來指出數據作業的授權方式。 如果驗證模式為「金鑰」,請提供連接字串或存放區名稱,而您的帳戶存取金鑰將會擷取以進行授權。 如果驗證模式為 「login」,請提供 --endpoint 或 --name,且您的 “az login” 認證將用於授權。 您可以使用 az configure --defaults appconfig_auth_mode=<auth_mode>來設定預設驗證模式。 如需詳細資訊,請參閱https://learn.microsoft.com/azure/azure-app-configuration/concept-enable-rbac。
| 屬性 | 值 |
|---|---|
| 預設值: | key |
| 接受的值: | key, login |
應用程式組態存放區的存取金鑰和端點組合。 您可以使用 'az appconfig credential list' 找到。 用戶可以使用名稱AZURE_APPCONFIG_CONNECTION_STRING az configure --defaults appconfig_connection_string=<connection_string> 或環境變數來預設。
要設定的功能旗標描述。
如果驗證模式為「登入」,請提供應用程式組態存放區的端點 URL。 您可以使用 「az appconfig show」 命令來擷取端點。 您可以使用 az configure --defaults appconfig_endpoint=<endpoint>來設定預設端點。
要設定的功能旗標名稱。 功能名稱不能包含“%”或“:”字元。
功能旗標的索引鍵。 機碼必須以 “.appconfig.featureflag/” 前置詞開頭。 索引鍵不能包含 「%」 字元。 默認索引鍵是保留前置詞 “.appconfig.featureflag/” + 功能名稱。
如果未指定任何標籤,則預設會以 Null 標籤設定功能旗標。
應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。
需求類型會決定在評估功能狀態時,篩選是否應該使用「任何」或「全部」邏輯。
| 屬性 | 值 |
|---|---|
| 接受的值: | All, Any |
以空格分隔的標記:key[=value] [key[=value] ...]。使用 「清除現有的標記」。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az appconfig feature show
顯示功能旗標的的所有屬性。
az appconfig feature show [--auth-mode {key, login}]
[--connection-string]
[--endpoint]
[--feature]
[--fields {conditions, description, key, label, last_modified, locked, name, state}]
[--key]
[--label]
[--name]
範例
使用具有特定標籤的應用程式組態存放區名稱顯示功能旗標
az appconfig feature show -n MyAppConfiguration --feature color --label MyLabel
使用連接字串和欄位篩選顯示功能旗標
az appconfig feature show --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --feature color --fields key locked conditions state
使用應用程式組態存放區端點和您的 'az login' 認證來顯示功能旗標。
az appconfig feature show --endpoint https://myappconfiguration.azconfig.io --feature color --auth-mode login
顯示名稱為 “Beta” 但機碼為 “.appconfig.featureflag/MyApp1:Beta” 的功能。
az appconfig feature show -n MyAppConfiguration --key .appconfig.featureflag/MyApp1:Beta
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
這個參數可用來指出數據作業的授權方式。 如果驗證模式為「金鑰」,請提供連接字串或存放區名稱,而您的帳戶存取金鑰將會擷取以進行授權。 如果驗證模式為 「login」,請提供 --endpoint 或 --name,且您的 “az login” 認證將用於授權。 您可以使用 az configure --defaults appconfig_auth_mode=<auth_mode>來設定預設驗證模式。 如需詳細資訊,請參閱https://learn.microsoft.com/azure/azure-app-configuration/concept-enable-rbac。
| 屬性 | 值 |
|---|---|
| 預設值: | key |
| 接受的值: | key, login |
應用程式組態存放區的存取金鑰和端點組合。 您可以使用 'az appconfig credential list' 找到。 用戶可以使用名稱AZURE_APPCONFIG_CONNECTION_STRING az configure --defaults appconfig_connection_string=<connection_string> 或環境變數來預設。
如果驗證模式為「登入」,請提供應用程式組態存放區的端點 URL。 您可以使用 「az appconfig show」 命令來擷取端點。 您可以使用 az configure --defaults appconfig_endpoint=<endpoint>來設定預設端點。
要擷取的功能旗標名稱。 如果功能旗標索引鍵與預設索引鍵不同,請改為提供 --key 自變數。
自訂功能旗標的輸出欄位。
| 屬性 | 值 |
|---|---|
| 接受的值: | conditions, description, key, label, last_modified, locked, name, state |
功能旗標的索引鍵。 機碼必須以 “.appconfig.featureflag/” 前置詞開頭。 索引鍵不能包含 「%」 字元。 如果同時提供索引鍵和功能自變數,則只會使用索引鍵。 默認索引鍵是保留前置詞 “.appconfig.featureflag/” + 功能名稱。
如果未指定任何標籤,則顯示具有 Null 標籤的專案。 不支持篩選。
應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az appconfig feature unlock
解除鎖定功能以取得寫入作業。
az appconfig feature unlock [--auth-mode {key, login}]
[--connection-string]
[--endpoint]
[--feature]
[--key]
[--label]
[--name]
[--yes]
範例
使用應用程式組態存放區名稱解除鎖定功能。
az appconfig feature unlock -n MyAppConfiguration --feature color --label test
使用連接字串強制解除鎖定功能。
az appconfig feature unlock --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --feature color --label test --yes
解除鎖定名稱為 “Beta” 但機碼為 “.appconfig.featureflag/MyApp1:Beta” 的功能。
az appconfig feature unlock -n MyAppConfiguration --key .appconfig.featureflag/MyApp1:Beta
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
這個參數可用來指出數據作業的授權方式。 如果驗證模式為「金鑰」,請提供連接字串或存放區名稱,而您的帳戶存取金鑰將會擷取以進行授權。 如果驗證模式為 「login」,請提供 --endpoint 或 --name,且您的 “az login” 認證將用於授權。 您可以使用 az configure --defaults appconfig_auth_mode=<auth_mode>來設定預設驗證模式。 如需詳細資訊,請參閱https://learn.microsoft.com/azure/azure-app-configuration/concept-enable-rbac。
| 屬性 | 值 |
|---|---|
| 預設值: | key |
| 接受的值: | key, login |
應用程式組態存放區的存取金鑰和端點組合。 您可以使用 'az appconfig credential list' 找到。 用戶可以使用名稱AZURE_APPCONFIG_CONNECTION_STRING az configure --defaults appconfig_connection_string=<connection_string> 或環境變數來預設。
如果驗證模式為「登入」,請提供應用程式組態存放區的端點 URL。 您可以使用 「az appconfig show」 命令來擷取端點。 您可以使用 az configure --defaults appconfig_endpoint=<endpoint>來設定預設端點。
要解除鎖定的功能名稱。 如果功能旗標索引鍵與預設索引鍵不同,請改為提供 --key 自變數。
功能旗標的索引鍵。 機碼必須以 “.appconfig.featureflag/” 前置詞開頭。 索引鍵不能包含 「%」 字元。 如果同時提供索引鍵和功能自變數,則只會使用索引鍵。 默認索引鍵是保留前置詞 “.appconfig.featureflag/” + 功能名稱。
如果未指定任何標籤,則預設會以 Null 標籤解除鎖定功能旗標。
應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |