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.
Commands
| 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 |
az postgres flexible-server connect
Connect to a flexible server.
az postgres flexible-server connect --admin-user
--name
[--admin-password]
[--database-name]
[--interactive]
[--querytext]
Required Parameters
The login username of the administrator.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The login password of the administrator.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
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.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az postgres flexible-server execute
Connect to a flexible server.
az postgres flexible-server execute --admin-password
--admin-user
--name
[--database-name]
[--file-path]
[--querytext]
Required Parameters
The login password of the administrator.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
The login username of the administrator.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |