Skip to content

Neon GA PowerShell CLI Command lets #27669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

alluri02
Copy link
Member

@alluri02 alluri02 commented Apr 29, 2025

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • For SDK-based development mode, update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • For autorest-based development mode, include the changelog in the PR description.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@alluri02 alluri02 marked this pull request as ready for review May 6, 2025 10:24
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR prepares the Neon GA PowerShell CLI commands for general availability by adding example markdown files with placeholders, updating command documentation with new parameter details, and aligning API and module versions.

  • Added new example and help documentation files (e.g. Get-AzNeonPostgresCompute.md, Get-AzNeonPostgresBranch.md) with placeholders for titles, code, and outputs.
  • Updated command documentation for organization, project, branch, compute, endpoint, database, and role operations with new parameter additions and adjusted API versions in UX JSON and AssemblyInfo files.

Reviewed Changes

Copilot reviewed 74 out of 74 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
examples/*.md Added placeholder examples for various cmdlets.
docs/*.md Updated command syntax and parameter lists; added new parameters.
UX/Neon.Postgres/*.json Updated API version and refined command specifications.
README.md Updated commit id and module version information.
Properties/AssemblyInfo.cs Updated assembly version to align with GA release.

Comment on lines +1 to +21
### Example 1: {{ Add title here }}
```powershell
{{ Add code here }}
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
{{ Add code here }}
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```

{{ Add description here }}
Copy link
Preview

Copilot AI May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Replace placeholder text (e.g. '{{ Add title here }}', '{{ Add code here }}') with actual sample titles and code once available to ensure the examples are meaningful to end users.

Suggested change
### Example 1: {{ Add title here }}
```powershell
{{ Add code here }}
```
```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```
{{ Add description here }}
### Example 2: {{ Add title here }}
```powershell
{{ Add code here }}
```
```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```
{{ Add description here }}
### Example 1: Retrieve Compute Details for a Specific Neon Postgres Instance
```powershell
Get-AzNeonPostgresCompute -ResourceGroupName "MyResourceGroup" -ServerName "MyPostgresServer"
{
    "name": "MyPostgresServer",
    "status": "Running",
    "location": "East US",
    "sku": {
        "name": "GP_Gen5_4",
        "tier": "GeneralPurpose",
        "capacity": 4
    }
}

This example retrieves the compute details of a specific Neon Postgres server, including its name, status, location, and SKU information.

Example 2: List All Neon Postgres Compute Resources in a Resource Group

Get-AzNeonPostgresCompute -ResourceGroupName "MyResourceGroup"
[
    {
        "name": "PostgresServer1",
        "status": "Running",
        "location": "East US",
        "sku": {
            "name": "GP_Gen5_2",
            "tier": "GeneralPurpose",
            "capacity": 2
        }
    },
    {
        "name": "PostgresServer2",
        "status": "Stopped",
        "location": "West US",
        "sku": {
            "name": "GP_Gen5_4",
            "tier": "GeneralPurpose",
            "capacity": 4
        }
    }
]

This example lists all Neon Postgres compute resources in the specified resource group, displaying details such as name, status, location, and SKU for each server.

Copilot uses AI. Check for mistakes.

[-MarketplaceDetailSubscriptionStatus <String>] [-OfferDetailOfferId <String>] [-OfferDetailPlanId <String>]
[-OfferDetailPlanName <String>] [-OfferDetailPublisherId <String>] [-OfferDetailTermId <String>]
[-OfferDetailTermUnit <String>] [-PartnerOrganizationPropertyOrganizationId <String>]
[-PartnerOrganizationPropertyOrganizationName <String>] [-ProjectProperty <IProjectPropertiesUpdate>]
Copy link
Preview

Copilot AI May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Verify consistency of the 'ProjectProperty' type between Update and New command documentation (IProjectPropertiesUpdate vs IProjectProperties) to avoid confusion.

Suggested change
[-PartnerOrganizationPropertyOrganizationName <String>] [-ProjectProperty <IProjectPropertiesUpdate>]
[-PartnerOrganizationPropertyOrganizationName <String>] [-ProjectProperty <IProjectProperties>]

Copilot uses AI. Check for mistakes.

@@ -40,7 +40,7 @@ try-require:
- $(repo)/specification/liftrneon/resource-manager/readme.powershell.md

# For new RP, the version is 0.1.0
module-version: 0.1.0
module-version: 1.0.0
Copy link
Preview

Copilot AI May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Ensure that the module version in the README aligns with the assembly version and overall release plan for consistency.

Suggested change
module-version: 1.0.0
module-version: 2.3.4

Copilot uses AI. Check for mistakes.

Comment on lines +14 to +62
### [Get-AzNeonPostgresBranch](Get-AzNeonPostgresBranch.md)
Get a Branch

### [Get-AzNeonPostgresCompute](Get-AzNeonPostgresCompute.md)
List Compute resources by Branch

### [Get-AzNeonPostgresEndpoint](Get-AzNeonPostgresEndpoint.md)
List Endpoint resources by Branch

### [Get-AzNeonPostgresNeonDatabase](Get-AzNeonPostgresNeonDatabase.md)
List NeonDatabase resources by Branch

### [Get-AzNeonPostgresNeonRole](Get-AzNeonPostgresNeonRole.md)
List NeonRole resources by Branch

### [Get-AzNeonPostgresOrganization](Get-AzNeonPostgresOrganization.md)
Get a OrganizationResource

### [Get-AzNeonPostgresProject](Get-AzNeonPostgresProject.md)
Get a Project

### [Get-AzNeonPostgresProjectConnectionUri](Get-AzNeonPostgresProjectConnectionUri.md)
Action to retrieve the connection URI for the Neon Database.

### [New-AzNeonPostgresBranch](New-AzNeonPostgresBranch.md)
create a Branch

### [New-AzNeonPostgresOrganization](New-AzNeonPostgresOrganization.md)
create a OrganizationResource

### [New-AzNeonPostgresProject](New-AzNeonPostgresProject.md)
create a Project

### [Remove-AzNeonPostgresBranch](Remove-AzNeonPostgresBranch.md)
Delete a Branch

### [Remove-AzNeonPostgresOrganization](Remove-AzNeonPostgresOrganization.md)
Delete a OrganizationResource

### [Remove-AzNeonPostgresProject](Remove-AzNeonPostgresProject.md)
Delete a Project

### [Update-AzNeonPostgresBranch](Update-AzNeonPostgresBranch.md)
update a Branch

### [Update-AzNeonPostgresOrganization](Update-AzNeonPostgresOrganization.md)
update a OrganizationResource

### [Update-AzNeonPostgresProject](Update-AzNeonPostgresProject.md)
Copy link
Preview

Copilot AI May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Confirm that the grouping and order of cmdlet listings follow the established naming and presentation standards for easier discoverability.

Suggested change
### [Get-AzNeonPostgresBranch](Get-AzNeonPostgresBranch.md)
Get a Branch
### [Get-AzNeonPostgresCompute](Get-AzNeonPostgresCompute.md)
List Compute resources by Branch
### [Get-AzNeonPostgresEndpoint](Get-AzNeonPostgresEndpoint.md)
List Endpoint resources by Branch
### [Get-AzNeonPostgresNeonDatabase](Get-AzNeonPostgresNeonDatabase.md)
List NeonDatabase resources by Branch
### [Get-AzNeonPostgresNeonRole](Get-AzNeonPostgresNeonRole.md)
List NeonRole resources by Branch
### [Get-AzNeonPostgresOrganization](Get-AzNeonPostgresOrganization.md)
Get a OrganizationResource
### [Get-AzNeonPostgresProject](Get-AzNeonPostgresProject.md)
Get a Project
### [Get-AzNeonPostgresProjectConnectionUri](Get-AzNeonPostgresProjectConnectionUri.md)
Action to retrieve the connection URI for the Neon Database.
### [New-AzNeonPostgresBranch](New-AzNeonPostgresBranch.md)
create a Branch
### [New-AzNeonPostgresOrganization](New-AzNeonPostgresOrganization.md)
create a OrganizationResource
### [New-AzNeonPostgresProject](New-AzNeonPostgresProject.md)
create a Project
### [Remove-AzNeonPostgresBranch](Remove-AzNeonPostgresBranch.md)
Delete a Branch
### [Remove-AzNeonPostgresOrganization](Remove-AzNeonPostgresOrganization.md)
Delete a OrganizationResource
### [Remove-AzNeonPostgresProject](Remove-AzNeonPostgresProject.md)
Delete a Project
### [Update-AzNeonPostgresBranch](Update-AzNeonPostgresBranch.md)
update a Branch
### [Update-AzNeonPostgresOrganization](Update-AzNeonPostgresOrganization.md)
update a OrganizationResource
### [Update-AzNeonPostgresProject](Update-AzNeonPostgresProject.md)
### Get Cmdlets
#### [Get-AzNeonPostgresBranch](Get-AzNeonPostgresBranch.md)
Get a Branch
#### [Get-AzNeonPostgresCompute](Get-AzNeonPostgresCompute.md)
List Compute resources by Branch
#### [Get-AzNeonPostgresEndpoint](Get-AzNeonPostgresEndpoint.md)
List Endpoint resources by Branch
#### [Get-AzNeonPostgresNeonDatabase](Get-AzNeonPostgresNeonDatabase.md)
List NeonDatabase resources by Branch
#### [Get-AzNeonPostgresNeonRole](Get-AzNeonPostgresNeonRole.md)
List NeonRole resources by Branch
#### [Get-AzNeonPostgresOrganization](Get-AzNeonPostgresOrganization.md)
Get a OrganizationResource
#### [Get-AzNeonPostgresProject](Get-AzNeonPostgresProject.md)
Get a Project
#### [Get-AzNeonPostgresProjectConnectionUri](Get-AzNeonPostgresProjectConnectionUri.md)
Action to retrieve the connection URI for the Neon Database.
### New Cmdlets
#### [New-AzNeonPostgresBranch](New-AzNeonPostgresBranch.md)
create a Branch
#### [New-AzNeonPostgresOrganization](New-AzNeonPostgresOrganization.md)
create a OrganizationResource
#### [New-AzNeonPostgresProject](New-AzNeonPostgresProject.md)
create a Project
### Remove Cmdlets
#### [Remove-AzNeonPostgresBranch](Remove-AzNeonPostgresBranch.md)
Delete a Branch
#### [Remove-AzNeonPostgresOrganization](Remove-AzNeonPostgresOrganization.md)
Delete a OrganizationResource
#### [Remove-AzNeonPostgresProject](Remove-AzNeonPostgresProject.md)
Delete a Project
### Update Cmdlets
#### [Update-AzNeonPostgresBranch](Update-AzNeonPostgresBranch.md)
update a Branch
#### [Update-AzNeonPostgresOrganization](Update-AzNeonPostgresOrganization.md)
update a OrganizationResource
#### [Update-AzNeonPostgresProject](Update-AzNeonPostgresProject.md)

Copilot uses AI. Check for mistakes.

{{ Add code here }}
```

```output
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fill the examples

@msJinLei
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@msJinLei
Copy link
Contributor

msJinLei commented May 20, 2025

The reported issues for the md files


  "Az.NeonPostgres","New-AzNeonPostgresProject","2","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\New-AzNeonPostgresProject.md","Add description for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresBranch","1","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresBranch.md","Add title for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresBranch","1","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresBranch.md","Add code for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresBranch","1","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresBranch.md","Add description for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresBranch","2","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresBranch.md","Add title for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresBranch","2","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresBranch.md","Add code for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresBranch","2","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresBranch.md","Add description for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresProject","1","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresProject.md","Add title for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresProject","1","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresProject.md","Add code for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresProject","1","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresProject.md","Add description for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresProject","2","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresProject.md","Add title for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresProject","2","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresProject.md","Add code for the example. Remove any placeholders."
  "Az.NeonPostgres","Remove-AzNeonPostgresProject","2","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Remove-AzNeonPostgresProject.md","Add description for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresBranch","1","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresBranch.md","Add title for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresBranch","1","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresBranch.md","Add code for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresBranch","1","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresBranch.md","Add description for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresBranch","2","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresBranch.md","Add title for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresBranch","2","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresBranch.md","Add code for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresBranch","2","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresBranch.md","Add description for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresProject","1","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresProject.md","Add title for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresProject","1","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresProject.md","Add code for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresProject","1","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresProject.md","Add description for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresProject","2","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresProject.md","Add title for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresProject","2","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresProject.md","Add code for the example. Remove any placeholders."
  "Az.NeonPostgres","Update-AzNeonPostgresProject","2","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\NeonPostgres\NeonPostgres\help\Update-AzNeonPostgresProject.md","Add description for the example. Remove any placeholders."
  

Copy link

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures.
Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants