%3CLINGO-SUB%20id%3D%22lingo-sub-1083543%22%20slang%3D%22en-US%22%3EIntegrate%20Microsoft%20cloud%20services%20with%20your%20Azure%20SQL%20Database%20managed%20instance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1083543%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20you%20migrate%20your%20SQL%20Server%20data%20estate%20to%20Azure%20SQL%20Database%20managed%20instance%2C%20what%20you%20get%20is%20not%20just%20a%20good%20old%20SQL%20Server%2C%20secured%20and%20enriched%20with%20the%20newest%20features%2C%20and%20without%20a%20burden%20of%20managing%20backups%2C%20patching%2C%20and%20maintaining%20high%20availability.%20You%20also%20unlock%20enormous%20opportunities%20for%20creating%20extra%20value%20out%20of%20your%20existing%20data%2C%20by%20combining%20it%20with%20other%20data%20sources%2C%20leveraging%20cloud-only%20assets%2C%20and%20engaging%20it%20in%20new%20and%20modern%20scenarios%2C%20all%20of%20that%20powered%20by%20Microsoft%20cloud%20services%20that%20integrate%20easily%20and%20securely%20with%20managed%20instance.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20article%20gives%20you%20a%20detailed%20overview%20of%20available%20options%20for%20integration%20of%20Azure%20SQL%20Database%20managed%20instance%20with%20other%20Microsoft%20cloud%20services%20and%20provides%20an%20overview%20of%20common%20scenarios%20enabled%20by%20the%20integration.%20Many%20services%20can%20be%20integrated%20with%20managed%20instance%20in%20multiple%20ways%2C%20as%20summarized%20at%20the%20end%20of%20the%20article.%20Detailed%20description%20for%20each%20of%20the%20integration%20methods%20should%20help%20you%20choose%20the%20optimal%20one%20for%20your%20scenario.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%20id%3D%22toc-hId--1437612166%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EWhat%20are%20the%20options%20for%20connecting%20cloud%20service%20to%20SQL%20Database%20managed%20instance%3F%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EAzure%20SQL%20Database%20managed%20instance%20is%20always%20deployed%20within%20customer%E2%80%99s%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-networks-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20virtual%20network%20(VNet)%3C%2FA%3E%20and%20by%20default%20it%20is%20not%20accessible%20from%20outside%20of%20the%20VNet.%20This%20means%20that%20connecting%20to%20managed%20instance%20from%20Microsoft%20cloud%20services%20may%20require%20taking%20specific%20steps%20that%20vary%20depending%20on%20the%20concrete%20service.%3C%2FP%3E%0A%3CP%3EThere%20are%20three%20ways%20to%20connect%20Microsoft%20cloud%20service%20to%20a%20managed%20instance%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDeploying%20service%20within%20the%20VNet%20hosting%20managed%20instance%2C%20or%20within%20a%20connected%20VNet%20%E2%80%93%20both%20options%20reserved%20for%20services%20that%20can%20be%20deployed%20within%20a%20VNet%3C%2FLI%3E%0A%3CLI%3EOn-premises%20data%20gateway.%20Don%E2%80%99t%20take%20%E2%80%9Con-premises%E2%80%9D%20attribute%20here%20literally%3C%2FLI%3E%0A%3CLI%3ELeveraging%20public%20endpoint%20of%20managed%20instance%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ELet%E2%80%99s%20go%20through%20the%20details%20of%20all%20three%20options%20and%20use%20cases%20that%20each%20of%20them%20suits%20best.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%20id%3D%22toc-hId-1049900667%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EDeploying%20service%20into%20the%20same%20or%20connected%20VNet%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EThis%20option%20is%20reserved%20for%20Azure%20services%20that%20can%20be%20deployed%20into%20a%20virtual%20network.%20App%20Service%20Environments%20(ASE)%2C%20Azure%20Kubernetes%20Service%20(AKS)%2C%20Redis%20Cache%2C%20Virtual%20Machine%20Scale%20Sets%2C%20Azure%20Data%20Factory%20SSIS%20Integration%20Runtime%20(IR)%20are%20examples%20of%20such%20services%2C%20and%20the%20full%20list%20can%20be%20found%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-network-for-azure-services%23services-that-can-be-deployed-into-a-virtual-network%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThings%20are%20straightforward%20if%20everything%20is%20deployed%20in%20the%20same%20VNet.%20Just%20make%20sure%20to%20leave%20enough%20IP%20address%20space%20within%20the%20VNet%20to%20create%20a%20separate%20subnet%20to%20deploy%20service%20into%20-%20managed%20instance%20requires%20a%20homogeneous%20subnet%20and%20can%20share%20a%20subnet%20only%20with%20other%20managed%20instances.%20Of%20course%2C%20you%20need%20to%20set%20the%20NSG%20rules%20on%20both%20subnets%20to%20allow%20traffic%20on%20port%201433%20between%20them.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EIf%20you%20plan%20to%20deploy%20service%20into%20a%20different%20VNet%2C%20the%20two%20VNets%20need%20to%20be%20connected.%20You%20can%20connect%20two%20VNets%20via%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-network-peering-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVNet%20peering%3C%2FA%3E%20or%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvpn-gateway%2Fvpn-gateway-howto-vnet-vnet-resource-manager-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVPN%20gateways%3C%2FA%3E.%20To%20learn%20about%20differences%20and%20what%20option%20to%20choose%20for%20your%20scenario%2C%20check%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fblog%2Fvnet-peering-and-vpn-gateways%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EChoosing%20between%20Azure%20VNet%20Peering%20and%20VNet%20Gateways%3C%2FA%3E%20blog%20post.%20Note%20though%20that%20at%20the%20time%20of%20writing%20this%20article%20(December%202019)%20VNet%20peering%20cannot%20be%20used%20for%20integration%20with%20managed%20instance%20if%20VNets%20are%20in%20different%20Azure%20regions%2C%20due%20to%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-networks-faq%23what-are-the-constraints-related-to-global-vnet-peering-and-load-balancers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Econstraint%3C%2FA%3E%20related%20to%20peering%20and%20type%20of%20load%20balancer%20used%20for%20managed%20instance.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%20id%3D%22toc-hId-1740462141%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EWhen%20to%20choose%20VNet%20integration%3F%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EThis%20is%20the%20recommended%20way%20of%20integration.%20It%20should%20be%20used%20whenever%20involved%20services%20support%20deployment%20within%20a%20VNet%2C%20as%20the%20most%20secure%20deployment%20option.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%20id%3D%22toc-hId-1729959037%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EUsing%20on-premises%20data%20gateway%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%20style%3D%22text-align%3A%20justify%3B%22%3EOn-premises%20data%20gateway%20acts%20as%20a%20bridge%20to%20provide%20fast%20and%20secure%20data%20transfer%20between%20your%20non-internet%20routable%20data%20sources%20and%20several%20Microsoft%20cloud%20services.%20These%20cloud%20services%20include%20Power%20Platform%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-bi%2Fpower-bi-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPower%20BI%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fflow%2Fgetting-started%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPower%20Automate%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowerapps%2Fpowerapps-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPowerApps%3C%2FA%3E)%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fanalysis-services%2Fanalysis-services-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Analysis%20Services%3C%2FA%3E%2C%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flogic-apps%2Flogic-apps-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Logic%20Apps%3C%2FA%3E.%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20justify%3B%22%3E%E2%80%9COn-premises%E2%80%9D%20data%20gateway%20is%20a%20slightly%20misleading%20name%2C%20as%20Microsoft%20cloud%20services%20nowadays%20can%20use%20it%20for%20data%20transfer%20not%20just%20from%20the%20on-premises%20data%20sources%2C%20but%20also%20from%20the%20Azure%20services%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-network-for-azure-services%23deploy-azure-services-into-virtual-networks%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edeployed%20into%20virtual%20network%3C%2FA%3E%2C%20including%20Azure%20SQL%20Database%20managed%20instance.%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20justify%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20877px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163384i9CE17AAD3A7A75D9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Data%20gateway%202.png%22%20title%3D%22Data%20gateway%202.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%20id%3D%22toc-hId--1874446785%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EInstalling%20and%20configuring%20on-premises%20data%20gateway%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3ETo%20install%20on-premises%20data%20gateway%20on%20a%20virtual%20machine%20in%20Azure%2C%20follow%20these%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdata-integration%2Fgateway%2Fservice-gateway-install%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Estep-by-step%20instructions%3C%2FA%3E.%20%3CEM%3EDon%E2%80%99t%20choose%20personal%20mode%3C%2FEM%3E%20unless%20it%20will%20be%20used%20for%20Power%20BI%20only%2C%20and%20by%20you%20only%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E.%20The%20article%20also%20covers%20creating%20high-availability%20configuration%20in%20a%20form%20of%20a%20cluster%20of%20multiple%20on-premises%20data%20gateways.%3C%2FP%3E%0A%3CP%3EOnce%20on-premises%20data%20gateway%20is%20installed%2C%20you%20need%20to%20configure%20the%20Network%20Security%20Group%20(NSG)%20on%20the%20subnet%20containing%20virtual%20machine%20hosting%20on-premises%20data%20gateway%2C%20so%20that%20on-premises%20data%20gateway%20can%20communicate%20outside%20of%20the%20subnet.%20The%20detailed%20instructions%20for%20configuring%20Network%20Security%20Group%20(NSG)%20rules%20on%20the%20subnet%20can%20be%20found%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdata-integration%2Fgateway%2Fservice-gateway-communication%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EYou%20will%20notice%20that%20there%20is%20%3CEM%3Eno%20inbound%20traffic%20needed%3C%2FEM%3E%20to%20the%20on-premises%20data%20gateway.%20It%20relies%20on%20the%20Azure%20Service%20Bus%20for%20cloud%20connectivity%20and%20establishes%20%3CEM%3Eoutbound%3C%2FEM%3E%20connections%20to%20the%20region%20of%20Microsoft%20cloud%20service.%20Of%20course%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fsecurity-overview%23security-rules%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ENetwork%20Security%20Group%20(NSG)%20rules%3C%2FA%3E%20also%20need%20to%20enable%20outbound%20traffic%20to%20managed%20instance%E2%80%99s%20subnet.%20Accordingly%2C%20NSG%20rules%20on%20the%20managed%20instance%E2%80%99s%20subnet%20need%20to%20allow%20inbound%20traffic%20from%20the%20on-premises%20data%20gateway.%3C%2FFONT%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%20id%3D%22toc-hId-613066048%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%20id%3D%22toc-hId--1194388415%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EWhen%20to%20choose%20on-premises%20data%20gateway%3F%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EOn-premises%20data%20gateway%20is%20a%20solution%20available%20to%20the%20subset%20of%20Microsoft%20cloud%20services.%20Use%20it%20if%20you%20are%20ok%20with%20a%20few%20specifics%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EYou%20can%20use%20%3CEM%3Eonly%20SQL%20authentication%3C%2FEM%3E%20when%20connecting%20to%20managed%20instance%20this%20way%2C%20with%20credentials%20encrypted%20and%20stored%20on%20the%20on-premises%20data%20gateway.%20User%20credentials%20from%20Microsoft%20cloud%20service%20cannot%20be%20passed%20onto%20the%20instance%20or%20database%20via%20the%20gateway.%20This%20means%20that%20database%20features%20like%20row-level%20security%20cannot%20be%20leveraged%20with%20on-premises%20data%20gateway.%3C%2FLI%3E%0A%3CLI%3EYou%20need%20to%20provision%20and%20maintain%20virtual%20machine%20to%20host%20on-premises%20data%20gateway.%20It%E2%80%99s%20recommended%20practice%20to%20regularly%20upgrade%20on-premises%20data%20gateway%20to%20the%20newest%20version.%3C%2FLI%3E%0A%3CLI%3EYou%20may%20need%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdata-integration%2Fgateway%2Fservice-gateway-performance%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Emonitor%20and%20optimize%20performance%3C%2FA%3E%20of%20on-premises%20data%20gateway%20depending%20on%20the%20intensity%20of%20workload%20and%20amount%20of%20data%20transferred.%3C%2FLI%3E%0A%3CLI%3EThere%20is%20certain%20latency%20introduced%20when%20querying%20managed%20instance%20via%20on-premises%20data%20gateway%2C%20due%20to%20additional%20components%20in%20the%20data%20flow.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%20id%3D%22toc-hId--1204891519%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%20id%3D%22toc-hId-1282621314%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3ELeveraging%20public%20endpoint%20access%20to%20managed%20instance%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EThere%20are%20many%20cloud%20services%20simply%20not%20supported%20by%20on-premises%20data%20gateway.%20There%20are%20also%20scenarios%20where%20creating%20and%20maintaining%20on-premises%20data%20gateway%20to%20enable%20access%20from%20outside%20the%20virtual%20network%20customers%20consider%20too%20expensive%20and%20a%20kind%20of%20an%20overkill.%20Even%20though%20it%20may%20sound%20counter-intuitive%2C%20there%20are%20also%20cases%20where%20companies%20enforce%20usage%20of%20public%20endpoint%20for%20security%20reasons.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-managed-instance-public-endpoint-configure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPublic%20endpoint%3C%2FA%3E%20is%20an%20opt-in%20feature%20of%20Azure%20SQL%20Database%20managed%20instance%20that%20enables%20data%20access%20to%20managed%20instance%20from%20outside%20of%20the%20VNet.%20It%20is%20a%20great%20example%20of%20Microsoft%20%3CA%20href%3D%22https%3A%2F%2Ffeedback.azure.com%2Fforums%2F915676-sql-managed-instance%2Fsuggestions%2F35616133-allow-for-a-managed-instance-to-have-a-public-endp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elistening%20the%20voice%20of%20customers%3C%2FA%3E%20and%20making%20their%20everyday%20work%20easier.%3C%2FP%3E%0A%3CP%3EHere%20are%20some%20of%20the%20use%20cases%20for%20public%20endpoint%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIntegrating%20with%20cloud%20services%20%E2%80%93%20the%20article%20you%20are%20reading%20is%20all%20about%20this%3C%2FLI%3E%0A%3CLI%3EHigher%20data%20throughput%20is%20needed%20than%20possible%20when%20using%20a%20VPN%20connection.%3C%2FLI%3E%0A%3CLI%3ECompany%20policies%20prohibit%20access%20to%20PaaS%20service%20from%20within%20corporate%20network.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%20id%3D%22toc-hId-1973182788%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%20id%3D%22toc-hId--529435154%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EAccessing%20managed%20instance%20through%20the%20public%20endpoint%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%20style%3D%22text-align%3A%20justify%3B%22%3EThe%20first%20step%20is%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-managed-instance-public-endpoint-configure%23enabling-public-endpoint-for-a-managed-instance-in-the-azure-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eenable%20public%20endpoint%3C%2FA%3E%20for%20the%20managed%20instance%2C%20as%20it%20is%20disabled%20by%20default.%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20justify%3B%22%3EAccess%20to%20a%20managed%20instance%20through%20the%20public%20endpoint%20requires%20using%20specific%20host%20name%20format%20%3CMI_NAME%3E.%3CSTRONG%3Epublic%3C%2FSTRONG%3E.%3CDNS_ZONE%3E.database.windows.net%20and%20%3CSTRONG%3Efixed%20port%3C%2FSTRONG%3E%20%3CSTRONG%3E3342%3C%2FSTRONG%3E.%20Specific%20host%20name%20format%20is%20needed%20so%20that%20it%20can%20be%20resolved%20to%20the%20public%20IP%20address%2C%20and%20not%20instance%E2%80%99s%20private%20IP%20address%20within%20the%20VNet.%20This%20is%20an%20example%20of%20providing%20such%20a%20host%20name%20and%20port%20when%20using%20SQL%20Server%20Management%20Studio%20(SSMS)%20to%20connect%20to%20a%20managed%20instance%2C%20using%20Azure%20Active%20Directory%20authentication%3A%3C%2FDNS_ZONE%3E%3C%2FMI_NAME%3E%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20justify%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20477px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163387i89D08447E4C100BC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22PEP_SSMS.png%22%20title%3D%22PEP_SSMS.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20portal%20provides%20an%20easy%20way%20to%20copy%20the%20connection%20string%20targeting%20public%20endpoint%2C%20in%20addition%20to%20the%20standard%20private%20endpoint%20connection%20string%2C%20for%20multiple%20client%20drivers.%20You%20can%20find%20it%20on%20the%20%3CEM%3EConnection%20strings%3C%2FEM%3E%20tab%20of%20the%20managed%20instance%20Azure%20portal%20blade%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20847px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163388i656938E66C10FF1E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Public%20endpoint%20connection%20string.png%22%20title%3D%22Public%20endpoint%20connection%20string.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20are%20using%20Business%20Critical%20service%20tier%20for%20your%20managed%20instance%2C%20you%20can%20use%20public%20endpoint%20to%20connect%20to%20a%20free%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-read-scale-out%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eread-only%20replica%3C%2FA%3E%20by%20simply%20adding%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Frelational-databases%2Fnative-client%2Ffeatures%2Fsql-server-native-client-support-for-high-availability-disaster-recovery%3Fview%3Dsql-server-ver15%23specifying-application-intent%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20line-height%3A%20107%25%3B%20font-family%3A%20Consolas%3B%20background%3A%20%23F2F2F2%3B%22%3EApplicationIntent%3DReadOnly%3C%2FSPAN%3E%20property%3C%2FA%3E%20to%20your%20connection%20string.%20This%20is%20very%20useful%20in%20scenarios%20where%20cloud%20service%20issues%20only%20read%20queries%2C%20since%20generated%20read%20workload%20will%20be%20offloaded%20from%20the%20primary%20replica%20and%20leave%20more%20resources%20for%20other%20read-write%20workloads.%3C%2FP%3E%0A%3CP%3EOf%20course%2C%20to%20be%20able%20to%20connect%20to%20a%20managed%20instance%20through%20the%20enabled%20public%20endpoint%2C%20you%20need%20to%20allow%20inbound%20traffic%20on%20destination%20port%203342%2C%20via%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fsecurity-overview%23security-rules%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ENetwork%20Security%20Group%20(NSG)%20rules%3C%2FA%3E%20of%20the%20subnet%20hosting%20managed%20instance.%20Scope%20the%20source%20IP%20address%20range%20as%20narrow%20as%20you%20can.%20Make%20sure%20you%20go%20through%20the%20detailed%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-managed-instance-public-endpoint-securely%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Einstructions%20for%20securing%20public%20endpoint%3C%2FA%3E.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%20id%3D%22toc-hId-1958077679%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%20id%3D%22toc-hId-150623216%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EWhen%20to%20choose%20public%20endpoint%3F%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EWhen%20enabled%2C%20public%20endpoint%20can%20be%20accessed%20by%20any%20application%20or%20cloud%20service%20from%20outside%20your%20private%20IP%20address%20space%20that%20generally%20can%20connect%20to%20SQL%20Server%2C%20as%20long%20as%20it%20uses%20correct%20host%20name%20format%20and%20port%203342%2C%20and%20if%20inbound%20traffic%20from%20its%20public%20IP%20address%20is%20allowed%20on%20the%20NSG.%20When%20choosing%20between%20on-premises%20data%20gateway%20(if%20it%20supports%20concrete%20cloud%20service)%20and%20public%20endpoint%2C%20consider%20the%20following%20aspects%20of%20public%20endpoint%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EPublic%20endpoint%20support%20Azure%20Active%20Directory%20authentication%2C%20unlike%20on-premises%20data%20gateway%20which%20is%20limited%20to%20SQL%20authentication.%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-managed-instance-connection-type%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ERedirect%20connection%20type%3C%2FA%3E%2C%20which%20offers%20latency%20and%20throughput%20performance%20improvements%20over%20Proxy%20connection%20type%20is%20not%20supported%20with%20public%20endpoint.%20You%20still%20can%20set%20Redirect%20connection%20type%20for%20your%20instance%2C%20and%20it%20will%20be%20used%20for%20connections%20through%20private%20endpoint%2C%20but%20public%20endpoint%20connections%20will%20fall%20back%20to%20Proxy%20connection%20type.%3C%2FLI%3E%0A%3CLI%3EThere%20is%20no%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-auto-failover-group%23auto-failover-group-terminology-and-capabilities%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eauto-failover%20group%20listener%3C%2FA%3E%20for%20public%20endpoint.%20If%20you%20are%20using%20auto-failover%20groups%20as%20a%20disaster%20recovery%20feature%20of%20managed%20instance%2C%20you%20are%20probably%20also%20using%20auto-failover%20group%20listener%20for%20transparent%20reconnect%20to%20a%20new%20primary%20after%20failover.%20It%E2%80%99s%20currently%20available%20only%20for%20private%20endpoint%20of%20managed%20instance.%3C%2FLI%3E%0A%3CLI%3E%3CP%3EWhile%20general%20recommendation%20is%20to%20lock%20down%20inbound%20connectivity%20and%20scope%20the%20source%20IP%20address%20range%20as%20much%20as%20possible%2C%20preferably%20to%20the%20level%20of%20concrete%20IP%20address%2C%20it%E2%80%99s%20not%20always%20possible%20as%20some%20cloud%20services%20use%20wider%20address%20range.%20In%20that%20case%20try%20to%20scope%20down%20the%20source%20IP%20range%2C%20make%20it%20always%20up%20to%20date%2C%20and%20minimize%20complexity%20of%20security%20rules%20by%20leveraging%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fsecurity-overview%23service-tags%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eservice%20tags%3C%2FA%3E.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%20id%3D%22toc-hId--1785913966%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%20id%3D%22toc-hId-701598867%22%3ESummary%3C%2FH2%3E%0A%3CP%3ENow%20that%20we%20went%20through%20the%20details%20of%20all%20three%20options%20for%20integrating%20Microsoft%20cloud%20services%20with%20Azure%20SQL%20Database%20managed%20instance%20hopefully%20you%20can%20choose%20the%20right%20one%20for%20your%20specific%20scenario.%20%3CBR%20%2F%3EThere%20are%20more%20than%20a%20hundred%20of%20different%20Microsoft%20cloud%20services%2C%20and%20new%20ones%20are%20being%20introduced%20from%20time%20to%20time.%20Even%20though%20integration%20with%20database%20is%20not%20applicable%20to%20all%20of%20them%2C%20maintaining%20full%20matrix%20of%20integration%20options%20would%20go%20way%20beyond%20the%20scope%20of%20a%20blog%20post.%20Here%20is%20the%20summary%20for%20a%20limited%20subset%20of%20services%20commonly%20used%20with%20managed%20instance%3A%3C%2FP%3E%0A%3CTABLE%20style%3D%22width%3A%20100%25%3B%20height%3A%20300px%3B%20border-collapse%3A%20collapse%3B%22%20border%3D%221%22%3E%0A%3CTBODY%3E%0A%3CTR%20style%3D%22height%3A%2030px%3B%22%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%20text-align%3A%20center%3B%22%3E%3CSTRONG%3EService%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%20text-align%3A%20center%3B%22%3E%3CSTRONG%3EVNet%20integration%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%20text-align%3A%20center%3B%22%3E%3CSTRONG%3EData%20gateway%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%20text-align%3A%20center%3B%22%3E%3CSTRONG%3EPublic%20endpoint%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2030px%3B%22%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%22%3EAzure%20App%20Service%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%20text-align%3A%20center%3B%22%3EYes*%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%20text-align%3A%20center%3B%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%20text-align%3A%20center%3B%22%3EYes%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2030px%3B%22%3E%0A%3CTD%20width%3D%22228%22%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%22%3E%3CP%3EAzure%20Functions%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22137%22%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes**%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%20text-align%3A%20center%3B%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%20height%3A%2030px%3B%20text-align%3A%20center%3B%22%3EYes%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22228%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3EPowerBI%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22137%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22135%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22120%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22228%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3EAzure%20Analysis%20Services%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22137%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22135%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22120%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22228%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3EPower%20Apps%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22137%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22135%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22120%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22228%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3EPower%20Automate%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22137%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22135%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22120%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22228%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3EAzure%20Logic%20Apps%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22137%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22135%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22120%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22228%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3EAzure%20Stream%20Analytics%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22137%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22135%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22120%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22228%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3EDynamics%20365%20-%20Data%20Export%20Service%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22137%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22135%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22120%22%20style%3D%22width%3A%2025%25%3B%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E*With%20App%20Service%20Environments%20(ASE)%3C%2FP%3E%0A%3CP%3E**%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Ffunctions-scale%23premium-plan%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPremium%20plan%20for%20Azure%20Functions%3C%2FA%3E%20required%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%20id%3D%22toc-hId--1105855596%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%20id%3D%22toc-hId-1381657237%22%3ENext%20Steps%3C%2FH2%3E%0A%3CP%3EThis%20is%20the%20first%20one%20in%20a%20series%20of%20articles%20related%20to%20integration%20of%20Azure%20SQL%20Database%20managed%20instance%20with%20other%20Microsoft%20cloud%20services.%20In%20the%20next%20few%20articles%20we%20will%20cover%20integration%20with%20specific%20services%20going%20to%20the%20next%20level%20of%20details%2C%20starting%20from%20PowerBI.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1083543%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20to%20integrate%20%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EAzure%20SQL%20Database%20managed%20instance%3C%2FSPAN%3E%20with%20the%20Microsoft%20cloud%20ecosystem%20and%20get%20the%20most%20out%20of%20your%20data.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1083543%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EManaged%20Instance%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1119244%22%20slang%3D%22en-US%22%3ERe%3A%20Integrate%20Microsoft%20cloud%20services%20with%20your%20Azure%20SQL%20Database%20managed%20instance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1119244%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Guys%2C%20we%20like%20to%20migrate%20database%20from%20on-premise%20SQL%20Server%20to%20Azure%20SQL%20managed%20instance%2C%20SQL%20Server%202016%20running%20on%20-premise%20servers%2C%20since%20managed%20instance%20version%20is%20V12%2C%20is%20there%20any%20database%20compatibility%20issues%20with%20Azure%20SQL%20managed%20instance%20as%20we%20are%20migrating%20higher%20version%20to%20lower%20version%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1121619%22%20slang%3D%22en-US%22%3ERe%3A%20Integrate%20Microsoft%20cloud%20services%20with%20your%20Azure%20SQL%20Database%20managed%20instance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121619%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214144%22%20target%3D%22_blank%22%3E%40Mladen%20Andzic%3C%2FA%3E%2C%20Thank%20you%20so%20much%2C%20its%20very%20useful%20information%20me%20%2C%20thanks%20again%20for%20your%20time.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1119749%22%20slang%3D%22en-US%22%3ERe%3A%20Integrate%20Microsoft%20cloud%20services%20with%20your%20Azure%20SQL%20Database%20managed%20instance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1119749%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F526511%22%20target%3D%22_blank%22%3E%40J_RameshBabu%3C%2FA%3E%20%2C%20V12%20is%20just%20a%20version%20designation%20for%20Azure%20SQL%20and%20it%20doesn't%20imply%20that%20Azure%20SQL%20managed%20instance%20runs%20SQL%20engine%20version%2012%20which%20would%20correspond%20to%20SQL%20Server%202014.%20Azure%20SQL%20DB%20including%20managed%20instance%20always%20run%20latest%20stable%20version%20of%20SQL%20engine%2C%20which%20is%20equal%20to%20or%20higher%20than%20latest%20available%20version%20of%20RTM%20SQL%20Server%20(2019%20at%20the%20moment).%3C%2FP%3E%0A%3CP%3ESo%2C%20when%20migrating%20from%20on-prem%20SQL%20Server%20to%20managed%20instance%2C%20you%20are%20always%20migrating%20to%20a%20higher%20version.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

When you migrate your SQL Server data estate to Azure SQL Database managed instance, what you get is not just a good old SQL Server, secured and enriched with the newest features, and without a burden of managing backups, patching, and maintaining high availability. You also unlock enormous opportunities for creating extra value out of your existing data, by combining it with other data sources, leveraging cloud-only assets, and engaging it in new and modern scenarios, all of that powered by Microsoft cloud services that integrate easily and securely with managed instance.

 

This article gives you a detailed overview of available options for integration of Azure SQL Database managed instance with other Microsoft cloud services and provides an overview of common scenarios enabled by the integration. Many services can be integrated with managed instance in multiple ways, as summarized at the end of the article. Detailed description for each of the integration methods should help you choose the optimal one for your scenario.

 

What are the options for connecting cloud service to SQL Database managed instance?

Azure SQL Database managed instance is always deployed within customer’s Azure virtual network (VNet) and by default it is not accessible from outside of the VNet. This means that connecting to managed instance from Microsoft cloud services may require taking specific steps that vary depending on the concrete service.

There are three ways to connect Microsoft cloud service to a managed instance:

  • Deploying service within the VNet hosting managed instance, or within a connected VNet – both options reserved for services that can be deployed within a VNet
  • On-premises data gateway. Don’t take “on-premises” attribute here literally
  • Leveraging public endpoint of managed instance

Let’s go through the details of all three options and use cases that each of them suits best.

 

Deploying service into the same or connected VNet

This option is reserved for Azure services that can be deployed into a virtual network. App Service Environments (ASE), Azure Kubernetes Service (AKS), Redis Cache, Virtual Machine Scale Sets, Azure Data Factory SSIS Integration Runtime (IR) are examples of such services, and the full list can be found here.

 

Things are straightforward if everything is deployed in the same VNet. Just make sure to leave enough IP address space within the VNet to create a separate subnet to deploy service into - managed instance requires a homogeneous subnet and can share a subnet only with other managed instances. Of course, you need to set the NSG rules on both subnets to allow traffic on port 1433 between them.

 

If you plan to deploy service into a different VNet, the two VNets need to be connected. You can connect two VNets via VNet peering or VPN gateways. To learn about differences and what option to choose for your scenario, check Choosing between Azure VNet Peering and VNet Gateways blog post. Note though that at the time of writing this article (December 2019) VNet peering cannot be used for integration with managed instance if VNets are in different Azure regions, due to a constraint related to peering and type of load balancer used for managed instance.

 

When to choose VNet integration?

This is the recommended way of integration. It should be used whenever involved services support deployment within a VNet, as the most secure deployment option.

 

Using on-premises data gateway

On-premises data gateway acts as a bridge to provide fast and secure data transfer between your non-internet routable data sources and several Microsoft cloud services. These cloud services include Power Platform (Power BI, Power Automate, PowerApps), Azure Analysis Services, and Azure Logic Apps.

“On-premises” data gateway is a slightly misleading name, as Microsoft cloud services nowadays can use it for data transfer not just from the on-premises data sources, but also from the Azure services deployed into virtual network, including Azure SQL Database managed instance.

Data gateway 2.png

 

Installing and configuring on-premises data gateway

To install on-premises data gateway on a virtual machine in Azure, follow these step-by-step instructions. Don’t choose personal mode unless it will be used for Power BI only, and by you only . The article also covers creating high-availability configuration in a form of a cluster of multiple on-premises data gateways.

Once on-premises data gateway is installed, you need to configure the Network Security Group (NSG) on the subnet containing virtual machine hosting on-premises data gateway, so that on-premises data gateway can communicate outside of the subnet. The detailed instructions for configuring Network Security Group (NSG) rules on the subnet can be found here.

You will notice that there is no inbound traffic needed to the on-premises data gateway. It relies on the Azure Service Bus for cloud connectivity and establishes outbound connections to the region of Microsoft cloud service. Of course, Network Security Group (NSG) rules also need to enable outbound traffic to managed instance’s subnet. Accordingly, NSG rules on the managed instance’s subnet need to allow inbound traffic from the on-premises data gateway.

 

When to choose on-premises data gateway?

On-premises data gateway is a solution available to the subset of Microsoft cloud services. Use it if you are ok with a few specifics:

  • You can use only SQL authentication when connecting to managed instance this way, with credentials encrypted and stored on the on-premises data gateway. User credentials from Microsoft cloud service cannot be passed onto the instance or database via the gateway. This means that database features like row-level security cannot be leveraged with on-premises data gateway.
  • You need to provision and maintain virtual machine to host on-premises data gateway. It’s recommended practice to regularly upgrade on-premises data gateway to the newest version.
  • You may need to monitor and optimize performance of on-premises data gateway depending on the intensity of workload and amount of data transferred.
  • There is certain latency introduced when querying managed instance via on-premises data gateway, due to additional components in the data flow.

 

Leveraging public endpoint access to managed instance

There are many cloud services simply not supported by on-premises data gateway. There are also scenarios where creating and maintaining on-premises data gateway to enable access from outside the virtual network customers consider too expensive and a kind of an overkill. Even though it may sound counter-intuitive, there are also cases where companies enforce usage of public endpoint for security reasons.

Public endpoint is an opt-in feature of Azure SQL Database managed instance that enables data access to managed instance from outside of the VNet. It is a great example of Microsoft listening the voice of customers and making their everyday work easier.

Here are some of the use cases for public endpoint:

  • Integrating with cloud services – the article you are reading is all about this
  • Higher data throughput is needed than possible when using a VPN connection.
  • Company policies prohibit access to PaaS service from within corporate network.

 

Accessing managed instance through the public endpoint

The first step is to enable public endpoint for the managed instance, as it is disabled by default.

Access to a managed instance through the public endpoint requires using specific host name format <mi_name>.public.<dns_zone>.database.windows.net and fixed port 3342. Specific host name format is needed so that it can be resolved to the public IP address, and not instance’s private IP address within the VNet. This is an example of providing such a host name and port when using SQL Server Management Studio (SSMS) to connect to a managed instance, using Azure Active Directory authentication:

PEP_SSMS.png

 

Azure portal provides an easy way to copy the connection string targeting public endpoint, in addition to the standard private endpoint connection string, for multiple client drivers. You can find it on the Connection strings tab of the managed instance Azure portal blade:

 

Public endpoint connection string.png

 

If you are using Business Critical service tier for your managed instance, you can use public endpoint to connect to a free read-only replica by simply adding ApplicationIntent=ReadOnly property to your connection string. This is very useful in scenarios where cloud service issues only read queries, since generated read workload will be offloaded from the primary replica and leave more resources for other read-write workloads.

Of course, to be able to connect to a managed instance through the enabled public endpoint, you need to allow inbound traffic on destination port 3342, via Network Security Group (NSG) rules of the subnet hosting managed instance. Scope the source IP address range as narrow as you can. Make sure you go through the detailed instructions for securing public endpoint.

 

When to choose public endpoint?

When enabled, public endpoint can be accessed by any application or cloud service from outside your private IP address space that generally can connect to SQL Server, as long as it uses correct host name format and port 3342, and if inbound traffic from its public IP address is allowed on the NSG. When choosing between on-premises data gateway (if it supports concrete cloud service) and public endpoint, consider the following aspects of public endpoint:

  • Public endpoint support Azure Active Directory authentication, unlike on-premises data gateway which is limited to SQL authentication.
  • Redirect connection type, which offers latency and throughput performance improvements over Proxy connection type is not supported with public endpoint. You still can set Redirect connection type for your instance, and it will be used for connections through private endpoint, but public endpoint connections will fall back to Proxy connection type.
  • There is no auto-failover group listener for public endpoint. If you are using auto-failover groups as a disaster recovery feature of managed instance, you are probably also using auto-failover group listener for transparent reconnect to a new primary after failover. It’s currently available only for private endpoint of managed instance.
  • While general recommendation is to lock down inbound connectivity and scope the source IP address range as much as possible, preferably to the level of concrete IP address, it’s not always possible as some cloud services use wider address range. In that case try to scope down the source IP range, make it always up to date, and minimize complexity of security rules by leveraging service tags.

 

Summary

Now that we went through the details of all three options for integrating Microsoft cloud services with Azure SQL Database managed instance hopefully you can choose the right one for your specific scenario.
There are more than a hundred of different Microsoft cloud services, and new ones are being introduced from time to time. Even though integration with database is not applicable to all of them, maintaining full matrix of integration options would go way beyond the scope of a blog post. Here is the summary for a limited subset of services commonly used with managed instance:

Service VNet integration Data gateway Public endpoint
Azure App Service Yes*   Yes

Azure Functions

Yes**

  Yes

PowerBI

 

Yes

Yes

Azure Analysis Services

 

Yes

Yes

Power Apps

 

Yes

Yes

Power Automate

 

Yes

Yes

Azure Logic Apps

Yes***

Yes

Yes

Azure Stream Analytics

 

 

Yes

Dynamics 365 - Data Export Service

 

 

Yes

* With App Service Environments (ASE) only

** Premium plan for Azure Functions required

*** With Integration Service Environments (ISE) only

 

Next Steps

This is the first one in a series of articles related to integration of Azure SQL Database managed instance with other Microsoft cloud services. In the next few articles we will cover integration with specific services going to the next level of details, starting from PowerBI.

 

4 Comments
Occasional Visitor

Hi Guys, we like to migrate database from on-premise SQL Server to Azure SQL managed instance, SQL Server 2016 running on -premise servers, since managed instance version is V12, is there any database compatibility issues with Azure SQL managed instance as we are migrating higher version to lower version?

Microsoft

@J_RameshBabu , V12 is just a version designation for Azure SQL and it doesn't imply that Azure SQL managed instance runs SQL engine version 12 which would correspond to SQL Server 2014. Azure SQL DB including managed instance always run latest stable version of SQL engine, which is equal to or higher than latest available version of RTM SQL Server (2019 at the moment).

So, when migrating from on-prem SQL Server to managed instance, you are always migrating to a higher version.

Occasional Visitor

@Mladen Andzic, Thank you so much, its very useful information me , thanks again for your time.

Senior Member

Is it possible to connect Azure DevOps as public endpoint ? is any other solution out there?