我正在尝试为SQL Server 2016创建一个ARM模板。在从官方Azure Github存储库检查SQL Server ARM模板(并且只有SQL Server 2014模板)时,我发现它们的逻辑与SQL如何一致通过Marketplace Web Interface部署的Server 2014是: 1.部署SQL Server 2014映像 2.部署嵌套模板https://sqlvmgroup.blob.core.windows.net/singlevm/preparingSqlServerSa.json 3.执行DSC https://sqlvmgroup.blob.core.windows.net/singlevm/PrepareSqlServer.ps1.zip 这个过程没有很好的记录(如果有的话)。我能够找到的唯一解释是微软员工制作的ARM模板自述文件和日本MVP的几个博客文章(谷歌翻译在这些帖子上很好用): Create a new SSRS Server with a SQL catalog (2 Machines) [JAP]Understand the deployment flow of Azure's deployment of SQL Server installed virtual machines [JAP]Use the ARM template to perform SQL Server preparation tasks 但是,当我尝试对SQL Server 2016使用相同的步骤时,我得到DSC错误:
"VM has reported a failure when processing extension 'dscExtension'. Error message: "DSC Configuration 'PrepareSqlServerSa' completed with error(s). Following are the first few: Cannot validate argument on parameter 'StorageSubSystemUniqueId'. The argument is null. Provide a valid value for the argument, and then try running the command again. No MSFT_StoragePool objects found with property 'FriendlyName' equal to 'SqlVMStoragePoll'. Verify the value of the property and retry. No MSFT_VirtualDisk objects found with property 'FriendlyName' equal to 'SqlVMDataDisk'. Verify the value of the property and retry.
我的猜测是SQL Server 2014的DSC代码与SQL Server 2016不兼容。所以,我有2个问题。 Azure Marketplace如何部署SQL Server 2016以及如何使用ARM模板可靠地复制它?
答案 0 :(得分:0)
尽管我不知道你为什么要这样做,但无论如何我都会回答。
这是我的回购中的the link,其中包含Azure用于部署SQL 2016的模板。您可以使用以下过程轻松地为自己创建一个: