简体   繁体   English

使用Azure Powershell Runbook自动创建数据库

[英]Automating database creation using an Azure Powershell Runbook

I am attempting to automate the creation of a database server and database using an Azure powershell runbook. 我正在尝试使用Azure Powershell Runbook自动创建数据库服务器和数据库。

I have managed to create the server ok, but when I then try to connect to it to create the database and user, I hit firewall issues. 我已经成功创建了服务器,但是当我尝试连接到服务器以创建数据库和用户时,遇到了防火墙问题。 I cannot find a way to get the IP address of the runbook so I can add a firewall exclusion. 我找不到获取运行手册IP地址的方法,因此可以添加防火墙排除项。

Any help appreciated! 任何帮助表示赞赏!

创建服务器后,添加允许Azure服务访问它的防火墙规则。

New-AzureSqlDatabaseServerFirewallRule -ServerName [your_server_name] -AllowAllAzureServices

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM