Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bin
obj
.vs
generated
internal
exports
tools
test/*-TestResults.xml
license.txt
/*.ps1
/*.psd1
/*.ps1xml
/*.psm1
/*.snk
/*.csproj
/*.nuspec
Comment on lines +9 to +16
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

These root-level ignore patterns for the AutoRest module folder will prevent committing key module scaffolding files if they exist at the repo root of PostgreSQLFlexibleServer.Autorest (for example build/test scripts, manifests, or project files). Consider removing or narrowing these patterns so they only ignore generated artifacts (e.g., bin/, obj/, generated/, exports/) rather than broad file-type globs.

Suggested change
license.txt
/*.ps1
/*.psd1
/*.ps1xml
/*.psm1
/*.snk
/*.csproj
/*.nuspec
license.txt

Copilot uses AI. Check for mistakes.
Comment on lines +9 to +16
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

These root-level ignore patterns for the AutoRest module folder will prevent committing key module scaffolding files if they exist at the repo root of PostgreSQLFlexibleServer.Autorest (for example build/test scripts, manifests, or project files). Consider removing or narrowing these patterns so they only ignore generated artifacts (e.g., bin/, obj/, generated/, exports/) rather than broad file-type globs.

Suggested change
license.txt
/*.ps1
/*.psd1
/*.ps1xml
/*.psm1
/*.snk
/*.csproj
/*.nuspec
license.txt

Copilot uses AI. Check for mistakes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - PostgreSqlManagementClient")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- region Generated -->
# Az.PostgreSQLFlexibleServer
This directory contains the PowerShell module for the PostgreSqlFlexibleServer service.
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

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

The service name casing in the README is inconsistent with the module/service name (PostgreSqlFlexibleServer vs PostgreSQLFlexibleServer/PostgreSQL Flexible Server). Update the text to use the correct PostgreSQL capitalization to avoid confusion in docs.

Suggested change
This directory contains the PowerShell module for the PostgreSqlFlexibleServer service.
This directory contains the PowerShell module for the PostgreSQL Flexible Server service.

Copilot uses AI. Check for mistakes.

Comment on lines +1 to +4
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

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

The PR adds only src/PostgreSQLFlexibleServer/PostgreSQLFlexibleServer.Autorest/ without the usual sibling module project folder and .sln (for example, src/EdgeAction/EdgeAction/ + src/EdgeAction/EdgeAction.sln) that the repo build uses. If this is meant to ship as a module, add the missing project/solution (and the required ChangeLog.md) or document how it is built and packaged.

Copilot uses AI. Check for mistakes.
---
## Info
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes

---
## Detail
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.

## Module Requirements
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater

## Authentication
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.

## Development
For information on how to develop for `Az.PostgreSQLFlexibleServer`, see [how-to.md](how-to.md).
<!-- endregion -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"resourceType": "flexibleServers/administrators",
"apiVersion": "2026-01-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver"
},
"commands": [
{
"name": "Get-AzPostgreSqlFlexibleServerAdministratorsMicrosoftEntra",
"description": "Gets information about a server administrator associated to a Microsoft Entra principal.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver/get-azpostgresqlflexibleserveradministratorsmicrosoftentra"
},
"parameterSets": [
{
"parameters": [
"-ObjectId <String>",
"-ResourceGroupName <String>",
"-ServerName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Gets information about a server administrator associated to a Microsoft Entra principal.",
"parameters": [
{
"name": "-ObjectId",
"value": "[Path.objectId]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-ServerName",
"value": "[Path.serverName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Remove-AzPostgreSqlFlexibleServerAdministratorsMicrosoftEntra",
"description": "Deletes an existing server administrator associated to a Microsoft Entra principal.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver/remove-azpostgresqlflexibleserveradministratorsmicrosoftentra"
},
"parameterSets": [
{
"parameters": [
"-ObjectId <String>",
"-ResourceGroupName <String>",
"-ServerName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Deletes an existing server administrator associated to a Microsoft Entra principal.",
"parameters": [
{
"name": "-ObjectId",
"value": "[Path.objectId]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-ServerName",
"value": "[Path.serverName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"resourceType": "flexibleServers/advancedThreatProtectionSettings",
"apiVersion": "2026-01-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver"
},
"commands": [
{
"name": "Get-AzPostgreSqlFlexibleServerAdvancedThreatProtectionSetting",
"description": "Gets state of advanced threat protection settings for a server.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{threatProtectionName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver/get-azpostgresqlflexibleserveradvancedthreatprotectionsetting"
},
"parameterSets": [
{
"parameters": [
"-ResourceGroupName <String>",
"-ServerName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Gets state of advanced threat protection settings for a server.",
"parameters": [
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-ServerName",
"value": "[Path.serverName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"resourceType": "flexibleServers/backups",
"apiVersion": "2026-01-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver"
},
"commands": [
{
"name": "Get-AzPostgreSqlFlexibleServerBackupsAutomaticAndOnDemand",
"description": "Gets information of an on demand backup, given its name.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver/get-azpostgresqlflexibleserverbackupsautomaticandondemand"
},
"parameterSets": [
{
"parameters": [
"-BackupName <String>",
"-ResourceGroupName <String>",
"-ServerName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Gets information of an on demand backup, given its name.",
"parameters": [
{
"name": "-BackupName",
"value": "[Path.backupName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-ServerName",
"value": "[Path.serverName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Remove-AzPostgreSqlFlexibleServerBackupsAutomaticAndOnDemand",
"description": "Deletes a specific backup, given its name.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver/remove-azpostgresqlflexibleserverbackupsautomaticandondemand"
},
"parameterSets": [
{
"parameters": [
"-BackupName <String>",
"-ResourceGroupName <String>",
"-ServerName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Deletes a specific backup, given its name.",
"parameters": [
{
"name": "-BackupName",
"value": "[Path.backupName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-ServerName",
"value": "[Path.serverName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"resourceType": "flexibleServers/configurations",
"apiVersion": "2026-01-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver"
},
"commands": [
{
"name": "Get-AzPostgreSqlFlexibleServerConfiguration",
"description": "Gets information about a specific configuration (also known as server parameter) of a server.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.postgresqlflexibleserver/get-azpostgresqlflexibleserverconfiguration"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"-ServerName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Gets information about a specific configuration (also known as server parameter) of a server.",
"parameters": [
{
"name": "-Name",
"value": "[Path.configurationName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-ServerName",
"value": "[Path.serverName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Loading
Loading