【问题标题】:Arm template for creating new sql database in Azure virtual machine [duplicate]用于在 Azure 虚拟机中创建新 sql 数据库的 Arm 模板 [重复]
【发布时间】:2019-11-15 01:01:43
【问题描述】:

我可以使用 ARM 模板在 Azure SQL 数据库中创建单个数据库,但是如果不存在,在虚拟机中创建新数据库需要哪些更改。

参考:https://docs.microsoft.com/en-us/azure/sql-database/sql-database-single-database-get-started-template

【问题讨论】:

  • 你想创建一个已经安装了sql的vm吗?
  • VM 已经安装了 sql server,我只想在现有的 sql server 中创建新的数据库。

标签: sql sql-server azure cloud azure-resource-manager


【解决方案1】:

在这种情况下不应使用 ARM,因为它用于创建 azure 资源。虚拟机准备就绪后,您将需要其他东西来创建新数据库。您可以运行 powershell 脚本: Is it possible to create a Database in SQL Server with powershell?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-03
    • 1970-01-01
    • 1970-01-01
    • 2015-12-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多