Azure SQL数据库-必须将托管实例放置在VNet内专用子网中的Azure VNet中。 VNet和子网必须满足以下特殊要求:https://medium.com/azure-sqldb-managed-instance/the-ultimate-guide-for-creating-and-configuring-azure-sql-managed-instance-environment-91ff58c0be01
检查是否最简单的方法是根据要求配置现有的Azure VNet /子网并修复问题/配置VNet /子网,以便在现有的VNet /子网中部署托管实例?
答案 0 :(得分:1)
在Azure文档中描述了如何配置现有VNet /子网以在其中部署托管实例-请参见https://docs.microsoft.com/en-us/azure/sql-database/sql-database-managed-instance-configure-vnet-subnet
您应使用以下脚本并输入订阅ID,VNet和子网名称:
scriptUrlBase = 'https://raw.githubusercontent.com/Microsoft/sql-server-samples/master/samples/manage/azure-sql-db-managed-instance/prepare-subnet'
$parameters = @{
subscriptionId = '<subscriptionId>'
resourceGroupName = '<resourceGroupName>'
virtualNetworkName = '<virtualNetworkName>'
subnetName = '<subnetName>'
}
Invoke-Command -ScriptBlock ([Scriptblock]::Create((iwr ($scriptUrlBase+'/prepareSubnet.ps1?t='+ [DateTime]::Now.Ticks)).Content)) -ArgumentList $parameters
脚本具有以下步骤: