# @blitzm/azure-postgres-flexible

> @blitzm/azure-postgres-flexible is a pulumi component that simplifies the deployment of Azure PostgresSql flexible server in azure

Latest version **0.4.1** (published 2024-07-19) · Blitzm license · 0 weekly downloads

## Install

```sh
npm install @blitzm/azure-postgres-flexible
pnpm add @blitzm/azure-postgres-flexible
yarn add @blitzm/azure-postgres-flexible
bun add @blitzm/azure-postgres-flexible
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2024-07-19 |
| First published | 2023-07-13 |
| Weekly downloads | 0 |
| License | Blitzm |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 27.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tim-blitzm, blitzm-sean, blitzm-admin, blitzm-james |

## Links

- npm: https://www.npmjs.com/package/@blitzm/azure-postgres-flexible
- npm.io page: https://npm.io/package/@blitzm/azure-postgres-flexible

## Dependencies (1)

- [@blitzm/pulumi-utils](https://npm.io/package/@blitzm/pulumi-utils.md) ^0.1.0

## Recent versions

- 0.4.1 (latest) — 2024-07-19
- 0.4.0 — 2024-06-03
- 0.3.0 — 2024-04-04
- 0.2.0 — 2023-07-14
- 0.1.0 — 2023-07-13

## README

# Blitzm Cloud - azure-postgres-flexible

@blitzm/azure-postgres-flexible is a pulumi component that simplifies the deployment of Azure PostgresSql flexible server in azure

## Installation

This package can be installed using [npm](https://www.npmjs.com/)

```bash
npm install --save --save-exact @blitzm/azure-postgres-flexible
```

## Usage

```typescript
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import { AzurePostgresSqlFlexible } from "@blitzm/azure-postgres-flexible";

// Create an Azure Resource Group
const resourceGroup = new azure.core.ResourceGroup("sample-rc");

const vNet = new azure.network.VirtualNetwork('vnet', {
  name: 'vnet',
  resourceGroupName: resourceGroup.name,
  addressSpaces: [ '10.13.0.0/16' ]
});

const logAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace(
  "db-log-analytics",
  {
    resourceGroupName: resourceGroup.name,
    name: "db-test-analytic",
    retentionInDays: 180,
  }
);

const db = new AzurePostgresSqlFlexible("sample-db", {
  resourceGroup: resourceGroup,
  skuName: "B_Standard_B2s",
  storageSizeGB: 64,
  version: "14",
  backupRetentionDays: 7,
  geoRedundantBackupEnabled: false,
  database: {
    name: "sample",
  },
  zone: "3",
  vNet: vNet,
  diagnosticSetting: {
    name: "test-diag",
    enabledLogs: [
      { category: "PostgreSQLLogs" },
      { category: "PostgreSQLFlexSessions" },
      { category: "PostgreSQLFlexQueryStoreRuntime" },
      { category: "PostgreSQLFlexQueryStoreWaitStats" },
      { category: "PostgreSQLFlexTableStats" },
      { category: "PostgreSQLFlexDatabaseXacts" },
    ],
    metrics: [
      {
        category: "AllMetrics",
        enabled: true,
      },
    ],
    logAnalyticsWorkspaceId: logAnalyticsWorkspace.id,
  },
});
export const dbDetails = db;

```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

[Blitzm](https://www.blitzm.com.au)

---
_Source: https://npm.io/package/@blitzm/azure-postgres-flexible · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
