简体   繁体   English

Azure 用于 PostgreSQL 灵活服务器部署的数据库因 databaseName 参数错误而失败

[英]Azure Database for PostgreSQL flexible server deployment fails with databaseName param error

I'm trying to deploy PostgreSQL managed service with bicep and in most cases get an error:我正在尝试使用二头肌部署 PostgreSQL 托管服务,并且在大多数情况下会出现错误:

"code": "InvalidParameterValue",
"message": "Invalid value given for parameter databaseName. Specify a valid parameter value."
 

I've tried various names for the DB, even in last version of the script I add random suffix to made it unique.我尝试了数据库的各种名称,即使在脚本的最后一个版本中,我也添加了随机后缀以使其独一无二。 Anyway it finishes with error, but looks like service is working.无论如何,它以错误结束,但看起来服务正在运行。 Another unexplainable thing is that sometimes script finishes without error... It's part of my IaC scenario, i need to be able to rerun it many times...另一个无法解释的事情是,有时脚本完成时没有错误......这是我的 IaC 场景的一部分,我需要能够多次重新运行它......

bicep code:二头肌代码:

param location string
@secure()
param sqlserverLoginPassword string
param rand string = uniqueString(resourceGroup().id) // Generate unique String
param sqlserverName string = toLower('invivopsql-${rand}')
param sqlserverAdminName string = 'invivoadmin'
param psqlDatabaseName string = 'postgres'

resource flexibleServer 'Microsoft.DBforPostgreSQL/flexibleServers@2021-06-01' = {
  name: sqlserverName
  location: location
  sku: {
    name: 'Standard_B1ms'
    tier: 'Burstable'
  }
  properties: {
    createMode: 'Default'
    version: '13'
    administratorLogin: sqlserverAdminName
    administratorLoginPassword: sqlserverLoginPassword 
    availabilityZone: '1'
    storage: {
      storageSizeGB: 32
    }
    backup: {
      backupRetentionDays: 7
      geoRedundantBackup: 'Disabled'
    }
  }
}

Please follow this git issue here for a similar error that might help you to fix your problem.在此处关注此 git 问题,以获取可能帮助您解决问题的类似错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure PostgreSQL 灵活服务器的数据库 Django 慢 - Azure Database for PostgreSQL flexible server Slow with Django 使用 .NET 核心 6 和 Azure SDK 创建 PostgreSQL 灵活服务器时出错 - Error on creation of a PostgreSQL flexible server with .NET core 6, and Azure SDK 使用 Bicep 更改 Azure PostgreSQL 灵活的服务器配置 - Changing Azure PostgreSQL flexible server configuration with Bicep 在 Azure PostgreSQL 灵活服务器中恢复数据库时出错:“扩展名“azure”未列入允许列表” - Error restoring db in Azure PostgreSQL Flexible server: 'extension "azure" is not allow-listed' 用于 postgreSQL 灵活服务器和实体框架核心的 Azure 数据库错误地显示带重音的西班牙语单词 - Azure database for postgreSQL Flexible Server and Entity Framework Core shows accented spanish words incorrectly 是否可以拥有 azure 灵活 postgresql 服务器的只读副本和数据子集? - Is it possible to have a read replicas of azure flexible postgresql server with a subset of data? 在 PostgreSQL 中创建一个灵活的数据库 - Create a flexible database in PostgreSQL 添加 NSG 规则以在 Azure PostgreSQL 灵活服务器上启用高可用性 - Adding NSG rules to enable high availability on Azure PostgreSQL Flexible Server Azure PostgreSQL 灵活服务器 Cron 作业权限被拒绝 - Azure PostgreSQL Flexible Server Cron Job Permission Denied Heroku上的部署因PostgreSQL ActionView :: Template :: Error而失败 - Deployment on Heroku fails with PostgreSQL ActionView::Template::Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM