Deploy an Azure Database for PostgreSQL flexible server

#Step 1 - Create a resource group first

#Step 2 - Deploy your Azure Database for PostgreSQL flexible server

#VARIABLES
$ResourceGroupName = "allen-opswat-database"
$ServerName = "opswatdbserver-delete"
$location = "uaenorth"
$AdministratorUserName = "Allen"
$AdministratorLoginPassword = "P@ssword01"
$SKU = "Standard_D2s_v3"
$password = "DimensionD@t@" | ConvertTo-SecureString -AsPlainText -Force
##DEFINE
New-AzPostgreSqlFlexibleServer `
-ServerName $ServerName `
-ResourceGroupName $ResourceGroupName `
-Location $location `
-AdministratorUserName Allen `
-AdministratorLoginPassword $password `
-Sku $SKU `
-SkuTier GeneralPurpose `
-Version 12 `
-StorageInMb 131072 `
-PublicAccess none

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *