Azure PowerShell 1.2.0 cmdlet用于创建新的Azure Sql数据库 [英] Azure PowerShell 1.2.0 cmdlet to create New Azure Sql Database

查看:60
本文介绍了Azure PowerShell 1.2.0 cmdlet用于创建新的Azure Sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


正在阅读Scott Guthrie等人的书"使用Microsoft Azure构建云应用程序",这需要一些工作来从cmdlet转换一些自动化任务在旧版本的Azure PowerShell(4.0?)中运行。


其中大部分都很容易找到并应用 - Get-AzureWebsite => Get-AzWebApp等。


我到目前为止无法找到任何用于SqlDatabase命令的内容,例如:



  • New-AzureSqlDatabaseServer
  • New-AzureSqlDatabaseServerFirewallRule
  • New-AzureSqlDatabase
  • etc。

有没有什么可以直接替换这些,或者是否已经实现了另一种方法来创建PowerShell 1.2.0中的Azure Sql数据库并与之交互?


非常感谢提前,


Paul

解决方案

现在在Az.Sql模块下的文档中找到了这个。


https://docs.microsoft.com/en-us/powershell/module/Az.Sql/?view=azps-1.2.0


道歉


Hi,

Am working through the Scott Guthrie et al book 'Building Cloud Apps with Microsoft Azure' which requires a little work to convert some of the Automation tasks from cmdlets that ran in an older version of Azure PowerShell(4.0?).

Most of these have been fairly easy to find and apply - Get-AzureWebsite => Get-AzWebApp etc.

I'm so far unable to find anything to use for the SqlDatabase commands, such as:

  • New-AzureSqlDatabaseServer
  • New-AzureSqlDatabaseServerFirewallRule
  • New-AzureSqlDatabase
  • etc.

Is there anything to replace these directly, or has another way been implemented to create and interact with Azure Sql database in PowerShell 1.2.0?

Many thanks in advance,

Paul

解决方案

Have found this now in the docs under the module Az.Sql.

https://docs.microsoft.com/en-us/powershell/module/Az.Sql/?view=azps-1.2.0

Apologies


这篇关于Azure PowerShell 1.2.0 cmdlet用于创建新的Azure Sql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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