Get-AzProviderFeature -FeatureName "PrivateLinkAllRegions" -ProviderNamespace "Microsoft.ContainerInstance"
$ipConfig = New-AzContainerGroupIpConfig -Name "ipconfig" -Subnet $subnet -PrivateIpAddress $privateIpAddress
$privateEndpoint = Get-AzPrivateEndpoint -Name -ResourceGroupName
$privateDnsZoneGroup = New-AzPrivateDnsZoneGroup -Name "myprivatednsgroupp" -PrivateDnsZone -PrivateEndpoint $privateEndpoint
$aciName = ""
$aciGroup = Get-AzContainerGroup -Name $aciName -ResourceGroupName
$aciGroup | Set-AzContainerGroup -IpAddressType Private -PrivateDnsZoneGroups $privateDnsZoneGroup -IpConfigurations $ipConfig
这将在其他区域中部署容器实例,并通过私有终端点连接到资源。