gpt4 book ai didi

azure - Azure SQL Serverless 数据库的二头肌模板

转载 作者:行者123 更新时间:2023-12-03 06:34:18 25 4
gpt4 key购买 nike

是否支持使用 Bicep 实现 Azure SQL Serverless 数据库?我还没有在网上看到任何二头肌示例。大多数示例仅使用 ARM,ARM 到 Bicep 的逆向工程对我来说不起作用。它只是给出内部服务器错误,没有更多详细信息。有人有可以作为引用的工作示例吗?提前感谢您的帮助!

最佳答案

这是二头肌文件供引用。

param servername string = 'mysqlserver-1036050389'
param location string = 'centralus'

resource servername_resource 'Microsoft.Sql/servers@2022-05-01-preview' = {
name: servername
location: location
properties: {
administratorLogin: 'azureuser'
administratorLoginPassword: 'Bigambs123457'
version: '12.0'
publicNetworkAccess: 'Enabled'
restrictOutboundNetworkAccess: 'Disabled'
}
}

resource servername_mySampleDatabase 'Microsoft.Sql/servers/databases@2022-05-01-preview' = {
parent: servername_resource
name: 'mySampleDatabase'
location: location
sku: {
name: 'GP_S_Gen5'
tier: 'GeneralPurpose'
family: 'Gen5'
capacity: 2
}
kind: 'v12.0,user,vcore,serverless'
properties: {
collation: 'SQL_Latin1_General_CP1_CI_AS'
maxSizeBytes: 34359738368
catalogCollation: 'SQL_Latin1_General_CP1_CI_AS'
zoneRedundant: false
readScale: 'Disabled'
autoPauseDelay: 60
requestedBackupStorageRedundancy: 'Geo'
minCapacity: 2
isLedgerOn: false

}
}

关于azure - Azure SQL Serverless 数据库的二头肌模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75034122/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com