az postgres flexible-server
Note
This reference is part of the rdbms-connect extension for the Azure CLI (version 2.19.0 or higher). The extension will automatically install the first time you run an az postgres flexible-server command. Learn more about extensions.
Manage Azure Database for PostgreSQL Flexible Servers.
Name | Description | Type | Status |
---|---|---|---|
az postgres flexible-server connect |
Connect to a flexible server. |
Extension | GA |
az postgres flexible-server execute |
Connect to a flexible server. |
Extension | GA |
Connect to a flexible server.
az postgres flexible-server connect --admin-user
--name
[--admin-password]
[--database-name]
[--interactive]
[--querytext]
The login username of the administrator.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
The login password of the administrator.
The name of a database.
Pass this parameter to connect to database in interactive mode.
Argument 'querytext' has been deprecated and will be removed in a future release. Use 'execute' instead.
A query to run against the flexible server.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Connect to a flexible server.
az postgres flexible-server execute --admin-password
--admin-user
--name
[--database-name]
[--file-path]
[--querytext]
The login password of the administrator.
The login username of the administrator.
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
The name of a database.
The path of the sql file to execute.
A query to run against the flexible server.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI feedback
Azure CLI is an open source project. Select a link to provide feedback: