Azure VM SQL - Terraform部署 [英] Azure VM SQL - Terraform deployment

查看:79
本文介绍了Azure VM SQL - Terraform部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试通过Terraform部署带有SQL Server映像(来自市场)的Azure VM。 Azure SQL VM来自一个名为SQL Server配置的特殊部分,但我不明白如何将其添加到Terraform配置文件中。

I'm trying to deploy an Azure VM with SQL Server image (from market) through Terraform. The Azure SQL VM comes from a special section called SQL Server configuration but I don't understand how to add it to the Terraform configuration file.


azurerm_virtual_machine
规范似乎无法处理SQL Server配置设置,如

The azurerm_virtual_machine specification seems to not handle SQL Server configuration settings like

SQLWorkloadTypeUpdateSettings.ConnectivityType

SQLConnectivityUpdateSettings.Port

SQLConnectivityUpdateSettings.SQLAuthUpdateUserName

SQLConnectivityUpdateSettings.SQLAuthUpdatePassword

SQLWorkloadTypeUpdateSettings.ConnectivityType
SQLConnectivityUpdateSettings.Port
SQLConnectivityUpdateSettings.SQLAuthUpdateUserName
SQLConnectivityUpdateSettings.SQLAuthUpdatePassword

...到目前为止我没有找到任何关于它的文件。

... And I didn't find any documention about it so far.

任何想法?

谢谢

MCDBA | MCITP SQL Server 2005 / SQL Server 2008 | LPI Linux 1

MCDBA | MCITP SQL Server 2005 / SQL Server 2008 | LPI Linux 1

推荐答案

您好,

我在Azure门户中填写了所需的详细信息以进行创建一个SQL虚拟机,按照这个

document

I filled the required details in Azure portal for creating an SQL virtual machine as per this document.

然后在最后我生成了一个模板。它有四个资源,其中最后一个资源类型为"Microsoft.SqlVirtualMachine / SqlVirtualMachines"。 模板创建了一个常规虚拟机并在其上面应用了上面的资源

Then at the end i generated a template out of it. It got four resources out of which the last resource of type "Microsoft.SqlVirtualMachine/SqlVirtualMachines".  The template created a regular virtual machine and applies the above resource on top of it.

我认为terraform不支持​​这种类型。但是有些黑客可能会在那里。

I think this type is not supported in terraform. But some hacks may be there.

可能只针对这个资源,你可以选择" azurerm_template_deployment "

May be for this resource alone, You can go for "azurerm_template_deployment"

使用此资源的示例ARM模板是  此处

A sample ARM template using this resource is here.


这篇关于Azure VM SQL - Terraform部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆