az neon postgres neon-database
Note
This reference is part of the neon extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az neon postgres neon-database command. Learn more about extensions.
Manage Neon Postgres databases within Azure.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az neon postgres neon-database create |
Create a NeonDatabase. |
Extension | GA |
| az neon postgres neon-database delete |
Delete a NeonDatabase. |
Extension | GA |
| az neon postgres neon-database list |
List all Neon Postgres databases associated with a specific branch. |
Extension | GA |
az neon postgres neon-database create
Create a NeonDatabase.
az neon postgres neon-database create --branch-name
--name --neon-database-name
--organization-name
--project-name
--resource-group
[--attributes]
[--branch-id]
[--database-name]
[--entity-name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--owner-name]
[--project-id]
Required Parameters
The name of the Branch.
The name of the NeonDatabase.
Name of the Neon Organizations resource.
The name of the Project.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Additional attributes for the entity Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
The ID of the branch this database belongs to.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Name of the database.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Name of the resource.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
The name of the role that owns the database.
| Property | Value |
|---|---|
| Parameter group: | Properties Arguments |
The ID of the project this database belongs to.
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 neon postgres neon-database delete
Delete a NeonDatabase.
az neon postgres neon-database delete [--branch-name]
[--ids]
[--name --neon-database-name]
[--organization-name]
[--project-name]
[--resource-group]
[--subscription]
[--yes]
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 the Branch.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The name of the NeonDatabase.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of the Neon Organizations resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The name of the Project.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
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.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az neon postgres neon-database list
List all Neon Postgres databases associated with a specific branch.
az neon postgres neon-database list --branch-id
--organization-name
--project-id
--resource-group
[--max-items]
[--next-token]
Examples
List Neon Databases under a Branch
az neon postgres neon-database list --resource-group rgneon --organization-name org-test-cli --project-id old-frost-16758796 --branch-id br-spring-field-a8vje3tr
Required Parameters
Id of the Neon branch.
Name of the Neon organization. If value is blank it's asked from the tty.
Id of the Neon project.
Name of the Azure resource group.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Token to specify where to start paginating. This is the token value from a previously truncated response.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
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 |