az neon postgres project
Note
This reference is part of the neon extension for the Azure CLI (version 2.70.0 or higher). The extension will automatically install the first time you run an az neon postgres project command. Learn more about extensions.
The projects command allows you to list, create, update, delete, and retrieve information about Neon projects.
Commands
Name | Description | Type | Status |
---|---|---|---|
az neon postgres project create |
Creates a Neon Project resource. |
Extension | Preview |
az neon postgres project delete |
Deletes a Neon Project resource. |
Extension | Experimental |
az neon postgres project get-connection-uri |
Action to retrieve the connection URI for the Neon Database. |
Extension | GA |
az neon postgres project list |
List Neon Projects associated with Neon Organization resource. |
Extension | Preview |
az neon postgres project show |
Get details of a Neon Project resource. |
Extension | Preview |
az neon postgres project update |
Updates a Neon Project resource. |
Extension | Preview |
az neon postgres project wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az neon postgres project create
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Creates a Neon Project resource.
az neon postgres project create --organization-name
--resource-group
[--branch]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--pg-version]
[--region]
Examples
Create Neon Project
az neon postgres project create --resource-group rgneon --organization-name neon-org --project-name neon-project --region eastus2 --pg-version 17 --branch "{branch-name:main, role-name:owner_role,database-name:neondb}"
Required Parameters
The name of the Neon Organization resource. If value is blank it's asked from the tty.
The name of the Azure resource group.
Optional Parameters
The Branch properties of the project. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
The name of the Neon Project resource.
Do not wait for the long-running operation to finish.
The PostgreSQL version for the Neon Database, with a default of 17.
The region where the project is created.
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.
az neon postgres project delete
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Deletes a Neon Project resource.
az neon postgres project delete [--ids]
[--organization-name]
[--project-id]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete Neon Project
az neon postgres project delete --resource-group rgneon --organization-name org-cli-test --project-id old-frost-16758796
Optional Parameters
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.
The Name of Neon Organization resource.
The id of the Neon Project resource.
The name of the Azure resource group.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
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.
az neon postgres project get-connection-uri
Action to retrieve the connection URI for the Neon Database.
az neon postgres project get-connection-uri [--branch-id]
[--database-name]
[--endpoint-id]
[--ids]
[--is-pooled {0, 1, f, false, n, no, t, true, y, yes}]
[--organization-name]
[--project-id]
[--project-name]
[--resource-group]
[--role-name]
[--subscription]
Examples
Get Database Connection URI
az neon postgres project get-connection-uri --resource-group rgneon --organization-name test-org --project-name entity-name --project-id old-frost-16758796 --branch-id br-spring-field-a8vje3tr --database-name neondb --role-name owner_role --endpoint-id ep-purple-voice-a84wphbw --is-pooled false
Optional Parameters
Branch Id associated with this connection.
Database name associated with this connection.
The endpoint Id with this connection.
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.
Indicates if the connection is pooled.
Name of the Neon Organizations resource.
Project Id associated with this connection.
The name of the Project.
The name of the Azure resource group.
The role name used for authentication.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
az neon postgres project list
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List Neon Projects associated with Neon Organization resource.
List Neon Project associated with your Neon Organization resource, including those shared with you.
az neon postgres project list --organization-name
--resource-group
[--max-items]
[--next-token]
Examples
List Neon Projects within an Organization
az neon postgres project list --resource-group rgneon --organization-name org-cli-test
Required Parameters
The name of the Neon Organization resource.
The name of the Azure resource group.
Optional Parameters
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.
Token to specify where to start paginating. This is the token value from a previously truncated response.
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.
az neon postgres project show
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get details of a Neon Project resource.
az neon postgres project show [--ids]
[--organization-name]
[--project-id]
[--resource-group]
[--subscription]
Examples
Show Neon Project Deatils
az neon postgres project show --resource-group rgneon --organization-name org-cli-test --project-id old-frost-16758796
Optional Parameters
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.
The name of the Neon Organization resource.
The id of the Neon Project resource.
The name of the Azure resource group.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
az neon postgres project update
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Updates a Neon Project resource.
az neon postgres project update [--add]
[--branch]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--organization-name]
[--pg-version]
[--region]
[--remove]
[--resource-group]
[--set]
[--subscription]
Examples
Neon Project Update
az neon postgres project update --resource-group rgneon --organization-name neon-org --project-name neon-project --region eastus2 --pg-version 18
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
The Branch properties of the project. This is optional Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
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.
The name of the Project.
Do not wait for the long-running operation to finish.
Name of the Neon Organizations resource.
Postgres version for the project.
Region where the project is created.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
The name of the Azure resource group.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
az neon postgres project wait
Place the CLI in a waiting state until a condition is met.
az neon postgres project wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--organization-name]
[--project-id]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
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.
Polling interval in seconds.
The name of the Neon Organization resource.
The id of the Neon Project resource.
The name of the Azure resource group.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
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.