Get-AzMySqlConfiguration
取得伺服器組態的相關信息。
語法
Get-AzMySqlConfiguration
-ResourceGroupName <String>
-ServerName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzMySqlConfiguration
-Name <String>
-ResourceGroupName <String>
-ServerName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzMySqlConfiguration
-InputObject <IMySqlIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得伺服器組態的相關信息。
範例
範例 1:列出指定 MySql 伺服器中的所有組態
Get-AzMySqlConfiguration -ResourceGroupName PowershellMySqlTest -ServerName mysql-test
Name Type
---- ----
audit_log_enabled Microsoft.DBforMySQL/servers/configurations
audit_log_events Microsoft.DBforMySQL/servers/configurations
audit_log_exclude_users Microsoft.DBforMySQL/servers/configurations
audit_log_include_users Microsoft.DBforMySQL/servers/configurations
...
transaction_prealloc_size Microsoft.DBforMySQL/servers/configurations
tx_isolation Microsoft.DBforMySQL/servers/configurations
updatable_views_with_limit Microsoft.DBforMySQL/servers/configurations
wait_timeout Microsoft.DBforMySQL/servers/configurations
此 Cmdlet 會列出指定之 MySql 伺服器中的所有組態。
範例 2:依名稱取得指定的 MySql 組態
Get-AzMySqlConfiguration -Name time_zone -ResourceGroupName PowershellMySqlTest -ServerName mysql-test
Name Type
---- ----
time_zone Microsoft.DBforMySQL/servers/configurations
此 Cmdlet 會依名稱取得指定的 MySql 組態。
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
類型: | IMySqlIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
伺服器組態的名稱。
類型: | String |
別名: | ConfigurationName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。 名稱不區分大小寫。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ServerName
伺服器的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
目標訂用帳戶的標識碼。
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |