Edit

Share via


Update-AzNeonPostgresProject

This cmdlet is part of a Preview module. Preview versions aren't recommended for use in production environments. For more information, see https://aka.ms/azps-refstatus.

update a Project

Syntax

UpdateExpanded (Default)

Update-AzNeonPostgresProject
    -Name <String>
    -OrganizationName <String>
    -ResourceGroupName <String>
    [-SubscriptionId <String>]
    [-Attribute <IAttributes[]>]
    [-BranchAttribute <IAttributes[]>]
    [-BranchDatabase <INeonDatabaseProperties[]>]
    [-BranchDatabaseName <String>]
    [-BranchEndpoint <IEndpointProperties[]>]
    [-BranchEntityName <String>]
    [-BranchParentId <String>]
    [-BranchProjectId <String>]
    [-BranchRole <INeonRoleProperties[]>]
    [-BranchRoleName <String>]
    [-Database <INeonDatabaseProperties[]>]
    [-DefaultEndpointSettingAutoscalingLimitMaxCu <Single>]
    [-DefaultEndpointSettingAutoscalingLimitMinCu <Single>]
    [-Endpoint <IEndpointProperties[]>]
    [-EntityName <String>]
    [-HistoryRetention <Int32>]
    [-PgVersion <Int32>]
    [-RegionId <String>]
    [-Role <INeonRoleProperties[]>]
    [-Storage <Int64>]
    [-DefaultProfile <PSObject>]
    [-AsJob]
    [-NoWait]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

UpdateViaIdentityOrganizationExpanded

Update-AzNeonPostgresProject
    -Name <String>
    -OrganizationInputObject <INeonPostgresIdentity>
    [-Attribute <IAttributes[]>]
    [-BranchAttribute <IAttributes[]>]
    [-BranchDatabase <INeonDatabaseProperties[]>]
    [-BranchDatabaseName <String>]
    [-BranchEndpoint <IEndpointProperties[]>]
    [-BranchEntityName <String>]
    [-BranchParentId <String>]
    [-BranchProjectId <String>]
    [-BranchRole <INeonRoleProperties[]>]
    [-BranchRoleName <String>]
    [-Database <INeonDatabaseProperties[]>]
    [-DefaultEndpointSettingAutoscalingLimitMaxCu <Single>]
    [-DefaultEndpointSettingAutoscalingLimitMinCu <Single>]
    [-Endpoint <IEndpointProperties[]>]
    [-EntityName <String>]
    [-HistoryRetention <Int32>]
    [-PgVersion <Int32>]
    [-RegionId <String>]
    [-Role <INeonRoleProperties[]>]
    [-Storage <Int64>]
    [-DefaultProfile <PSObject>]
    [-AsJob]
    [-NoWait]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

UpdateViaIdentityExpanded

Update-AzNeonPostgresProject
    -InputObject <INeonPostgresIdentity>
    [-Attribute <IAttributes[]>]
    [-BranchAttribute <IAttributes[]>]
    [-BranchDatabase <INeonDatabaseProperties[]>]
    [-BranchDatabaseName <String>]
    [-BranchEndpoint <IEndpointProperties[]>]
    [-BranchEntityName <String>]
    [-BranchParentId <String>]
    [-BranchProjectId <String>]
    [-BranchRole <INeonRoleProperties[]>]
    [-BranchRoleName <String>]
    [-Database <INeonDatabaseProperties[]>]
    [-DefaultEndpointSettingAutoscalingLimitMaxCu <Single>]
    [-DefaultEndpointSettingAutoscalingLimitMinCu <Single>]
    [-Endpoint <IEndpointProperties[]>]
    [-EntityName <String>]
    [-HistoryRetention <Int32>]
    [-PgVersion <Int32>]
    [-RegionId <String>]
    [-Role <INeonRoleProperties[]>]
    [-Storage <Int64>]
    [-DefaultProfile <PSObject>]
    [-AsJob]
    [-NoWait]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

update a Project

Examples

Example 1: Update the properties of an existing Neon project resource within Azure

Update-AzNeonPostgresProject -Name "dawn-breeze-86932057" -OrganizationName "NeonDemoOrgPS1" -ResourceGroupName "neonrg" -SubscriptionId "00000000-0000-0000-0000-000000000000" -BranchDatabaseName "updated-db" -BranchEntityName "updated-entity" -BranchParentId "parent-branch-id" -BranchRoleName "admin" -PgVersion 17 -RegionId "centraluseuap" -Storage 10240 -HistoryRetention 7

Update the properties of an existing Neon project resource within Azure.

Parameters

-AsJob

Run the command as a job

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Attribute

Additional attributes for the entity

Parameter properties

Type:

IAttributes[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BranchAttribute

Additional attributes for the entity

Parameter properties

Type:

IAttributes[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BranchDatabase

Neon Databases associated with the branch

Parameter properties

Type:

INeonDatabaseProperties[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BranchDatabaseName

Database name associated with the branch

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BranchEndpoint

Endpoints associated with the branch

Parameter properties

Type:

IEndpointProperties[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BranchEntityName

Name of the resource

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BranchParentId

The ID of the parent branch

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BranchProjectId

The ID of the project this branch belongs to

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BranchRole

Roles associated with the branch

Parameter properties

Type:

INeonRoleProperties[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BranchRoleName

Role name associated with the branch

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Database

Neon Databases associated with the project

Parameter properties

Type:

INeonDatabaseProperties[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultEndpointSettingAutoscalingLimitMaxCu

Maximum compute units for autoscaling.

Parameter properties

Type:Single
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultEndpointSettingAutoscalingLimitMinCu

Minimum compute units for autoscaling.

Parameter properties

Type:Single
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Endpoint

Endpoints associated with the project

Parameter properties

Type:

IEndpointProperties[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EntityName

Name of the resource

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HistoryRetention

The retention period for project history in seconds.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Identity Parameter

Parameter properties

Type:INeonPostgresIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateViaIdentityExpanded
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

The name of the Project

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:ProjectName

Parameter sets

UpdateExpanded
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
UpdateViaIdentityOrganizationExpanded
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NoWait

Run the command asynchronously

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OrganizationInputObject

Identity Parameter

Parameter properties

Type:INeonPostgresIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateViaIdentityOrganizationExpanded
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-OrganizationName

Name of the Neon Organizations resource

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PgVersion

Postgres version for the project

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RegionId

Region where the project is created

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroupName

The name of the resource group. The name is case insensitive.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Role

Roles associated with the project

Parameter properties

Type:

INeonRoleProperties[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Storage

Data Storage bytes per hour for the project

Parameter properties

Type:Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

The ID of the target subscription. The value must be an UUID.

Parameter properties

Type:String
Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

INeonPostgresIdentity

Outputs

IProject