Last active
April 29, 2021 12:23
-
-
Save apc-kamezaki/f2135f3ff2693d9b6faf1183f7412f25 to your computer and use it in GitHub Desktop.
Postgresql ARM Template geretated by Azure portal and decompile it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param administratorLogin string | |
@secure() | |
param administratorLoginPassword string | |
param location string | |
param serverName string | |
param skuCapacity int | |
param skuFamily string | |
param skuName string | |
param skuSizeMB int | |
param skuTier string | |
param version string | |
param backupRetentionDays int | |
param geoRedundantBackup string | |
param previewFeature string = '' | |
param tags object = {} | |
param storageAutoGrow string = 'Disabled' | |
param infrastructureEncryption string = 'Disabled' | |
resource serverName_resource 'Microsoft.DBforPostgreSQL/servers@2017-12-01-preview' = { | |
location: location | |
name: serverName | |
properties: { | |
version: version | |
administratorLogin: administratorLogin | |
administratorLoginPassword: administratorLoginPassword | |
storageProfile: { | |
storageMB: skuSizeMB | |
backupRetentionDays: backupRetentionDays | |
geoRedundantBackup: geoRedundantBackup | |
storageAutoGrow: storageAutoGrow | |
} | |
previewFeature: previewFeature | |
infrastructureEncryption: infrastructureEncryption | |
} | |
sku: { | |
name: skuName | |
tier: skuTier | |
capacity: skuCapacity | |
size: skuSizeMB | |
family: skuFamily | |
} | |
tags: tags | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"administratorLogin": { | |
"type": "string" | |
}, | |
"administratorLoginPassword": { | |
"type": "securestring" | |
}, | |
"location": { | |
"type": "string" | |
}, | |
"serverName": { | |
"type": "string" | |
}, | |
"skuCapacity": { | |
"type": "int" | |
}, | |
"skuFamily": { | |
"type": "string" | |
}, | |
"skuName": { | |
"type": "string" | |
}, | |
"skuSizeMB": { | |
"type": "int" | |
}, | |
"skuTier": { | |
"type": "string" | |
}, | |
"version": { | |
"type": "string" | |
}, | |
"backupRetentionDays": { | |
"type": "int" | |
}, | |
"geoRedundantBackup": { | |
"type": "string" | |
}, | |
"previewFeature": { | |
"type": "string", | |
"defaultValue": "" | |
}, | |
"tags": { | |
"type": "object", | |
"defaultValue": {} | |
}, | |
"storageAutoGrow": { | |
"type": "string", | |
"defaultValue": "Disabled" | |
}, | |
"infrastructureEncryption": { | |
"type": "string", | |
"defaultValue": "Disabled" | |
} | |
}, | |
"resources": [ | |
{ | |
"apiVersion": "2017-12-01-preview", | |
"kind": "", | |
"location": "[parameters('location')]", | |
"name": "[parameters('serverName')]", | |
"properties": { | |
"version": "[parameters('version')]", | |
"administratorLogin": "[parameters('administratorLogin')]", | |
"administratorLoginPassword": "[parameters('administratorLoginPassword')]", | |
"storageProfile": { | |
"storageMB": "[parameters('skuSizeMB')]", | |
"backupRetentionDays": "[parameters('backupRetentionDays')]", | |
"geoRedundantBackup": "[parameters('geoRedundantBackup')]", | |
"storageAutoGrow": "[parameters('storageAutoGrow')]" | |
}, | |
"previewFeature": "[parameters('previewFeature')]", | |
"infrastructureEncryption": "[parameters('infrastructureEncryption')]" | |
}, | |
"sku": { | |
"name": "[parameters('skuName')]", | |
"tier": "[parameters('skuTier')]", | |
"capacity": "[parameters('skuCapacity')]", | |
"size": "[parameters('skuSizeMB')]", | |
"family": "[parameters('skuFamily')]" | |
}, | |
"tags": "[parameters('tags')]", | |
"type": "Microsoft.DBforPostgreSQL/servers" | |
} | |
], | |
"variables": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment