Azure SQL DB 创建正在引发和异常



我正在尝试使用Azure SDK for Ruby来创建Azure SQL服务器和SQL DB。

我在运行代码时遇到反序列化错误。虽然它创建了 SQL 服务器,但我可以在门户中手动查看甚至添加数据库。请帮忙。

require 'fog/azurerm'
require 'azure_mgmt_sql'
fog_sql_service = Fog::Sql::AzureRM.new(
tenant_id:        'tenant_id',
client_id:        'client_id',
client_secret:    'client_secret',
subscription_id:  'subscription _id',
environment:      'AzureCloud'         )
server_data = {:resource_group = "group_name", :name = "server_name", 
:location = "location", :version = "12.0",  :administrator_login = 
"username", :administrator_login_password = "password"}
fog_sql_service.sql_servers.create(server_data)
Error message :
"message": "Error occurred in deserializing the response",

你可能在 Azure 中遇到了临时问题。状态页包含有关 ARM 功能遭到入侵的警告。

最新更新