Home
%3CLINGO-SUB%20id%3D%22lingo-sub-958855%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20migrate%20SQL%20Server%20to%20Microsoft%20Azure%20Stack%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-958855%22%20slang%3D%22en-US%22%3E%3CP%3EAwesome%20AzureStack%20Serie%20Thomas%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fcool_40x40.gif%22%20alt%3D%22%3Acool%3A%22%20title%3D%22%3Acool%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-957524%22%20slang%3D%22en-US%22%3EHow%20to%20migrate%20SQL%20Server%20to%20Microsoft%20Azure%20Stack%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-957524%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20mentioned%20last%20week%2C%20we%20created%20a%20short%20%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fredirect%3Fq%3Dhttps%253A%252F%252Ftechcommunity.microsoft.com%252Ft5%252FITOps-Talk-Blog%252FHow-to-migrate-to-Azure-Stack-video-series-Intro-and-File-Server%252Fba-p%252F933632%253FWT.mc_id%253Dthomasmaurer-blog-thmaure%26amp%3Bredir_token%3Dyu_A_4c9DxhuWmT7l-si7qKd4sZ8MTU3MjI2MzE3OEAxNTcyMTc2Nzc4%26amp%3Bv%3DPDJDAQ6C01s%26amp%3Bevent%3Dvideo_description%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Evideo%20series%3C%2FA%3E%20about%20how%20you%20can%20migrate%20workloads%20to%20Microsoft%20Azure%20Stack.%20I%20also%20mentioned%20that%20we%20will%20release%20a%20complementary%20blog%20post%20to%20each%20of%20the%20videos%20which%20some%20more%20guidance%20and%20links.%20In%20this%20blog%20post%2C%20we%20will%20have%20a%20quick%20look%20at%20how%20you%20can%20migrate%20your%20SQL%20Server%20database%20to%20a%20virtual%20machine%20running%20on%20Azure%20Stack.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252Fvideoseries%253Flist%253DPLddMzSrepwAhNkYndMzafbYUcPbmQUg3t%2526start%253D0%26amp%3Burl%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DPDJDAQ6C01s%26amp%3Bimage%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FPDJDAQ6C01s%252Fhqdefault.jpg%26amp%3Bkey%3Dfad07bfa4bd747d3bdea27e17b533c0e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22600%22%20height%3D%22337%22%20scrolling%3D%22no%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%20title%3D%22Video%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1849816256%22%20id%3D%22toc-hId-1849816256%22%20id%3D%22toc-hId-1849816256%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1038504378%22%20id%3D%22toc-hId--702340705%22%20id%3D%22toc-hId--702340705%22%20id%3D%22toc-hId--702340705%22%3EHow%20to%20migrate%20SQL%20Server%20to%20Microsoft%20Azure%20Stack%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20many%20ways%20you%20can%20migrate%20an%20existing%20SQL%20Server%20to%20Azure%20Stack%20or%20Azure.%20In%20this%20blog%2C%20we%20are%20focusing%20on%20backing%20up%20the%20database%20to%20an%20Azure%20Stack%20Blob%20Storage%20account%20and%20importing%20the%20database%20into%20a%20SQL%20server%20running%20inside%20an%20IaaS%20virtual%20machine%20running%20on%20Azure%20Stack.%20You%20could%20also%20move%20the%20database%20to%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure-stack%2Foperator%2Fazure-stack-sql-resource-provider-deploy%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESQL%20Server%20resource%20provider%20on%20Azure%20Stack%3C%2FA%3E.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20mentioned%20before%20there%20are%20many%20different%20methods%20you%20could%20achieve%20this.%20If%20you%20want%20to%20find%20out%20more%20about%20the%20different%20migration%20methods%2C%20check%20out%20the%20following%20Microsoft%20Docs%20article%20for%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fwindows%2Fsql%2Fvirtual-machines-windows-migrate-sql%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Emigrating%20a%20SQL%20Server%20database%20to%20SQL%20Server%20in%20an%20Azure%20VM%3C%2FA%3E.%20These%20can%20also%20work%20for%20VMs%20running%20on%20Azure%20Stack.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20our%20scenario%2C%20we%20are%20using%20the%20method%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Frelational-databases%2Fbackup-restore%2Fback-up-multiple-databases-to-azure-blob-storage-powershell%3FWT.mc_id%3Ditopstalk-blog-thmaure%26amp%3Bview%3Dsql-server-ver15%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eback%20up%20a%20database%20to%20an%20Azure%20Blob%20Storage%20account%3C%2FA%3E%20running%20on%20Azure%20Stack.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%2C%20you%20will%20need%20to%26nbsp%3Bc%3CSPAN%3Ereate%20SQL%20Server%20credentials%20for%20authentication%20to%20the%20Microsoft%20Azure%20Blob%20storage%20service.%20In%20our%20example%2C%20we%20are%20going%20to%20use%20a%20Shared%20Access%20Signature%20(SAS)%20token.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ECREATE%20CREDENTIAL%20azsblobcred%0AWITH%20IDENTITY%3D%20'azssqlbackup'%2C%0ASECRET%20%3D%20'%3CSECRET%3E'%3C%2FSECRET%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20back%20up%20the%20SQL%20database%20you%20can%20run%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EBACKUP%20DATABASE%20%5Bsqldb%5D%20%20%0ATO%20URL%20%3D%20'https%3A%2F%2F%3CMYSTORAGEACCOUNTNAME%3E.blob.%3CREGION%3E.%3CAZURESTACKFQDN%3E%2F%3CMYCONTAINERNAME%3E%2Fsqldb.bak'%0AWITH%20CREDENTIAL%20%3D%20'azsblobcred'%3B%20%20%0AGO%3C%2FMYCONTAINERNAME%3E%3C%2FAZURESTACKFQDN%3E%3C%2FREGION%3E%3C%2FMYSTORAGEACCOUNTNAME%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20you%20will%20need%20to%20deploy%20an%20Azure%20Stack%20virtual%20machine%20with%20SQL%20Server.%20You%20can%20manually%20create%20a%20virtual%20machine%20on%20Azure%20Stack%20and%20install%20SQL%20Server%20on%20it%2C%20or%20you%20can%20use%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure-stack%2Foperator%2Fazure-stack-marketplace-azure-items%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Emarketplace%20item%3C%2FA%3E%20that%20already%20comes%20with%20SQL%20Server%20preinstalled.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20the%20SQL%20Server%20has%20successfully%20been%20deployed%2C%20you%20need%20to%20create%20the%20same%20SQL%20credentials%20for%20the%20Azure%20Blob%20Storage%20service%20running%20on%20Azure%20Stack%20on%20the%20new%20server.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ECREATE%20CREDENTIAL%20azsblobcred%0AWITH%20IDENTITY%3D%20'azssqlbackup'%2C%0ASECRET%20%3D%20'%3CSECRET%3E'%3C%2FSECRET%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20you%20can%20restore%20the%20SQL%20database%20to%20the%20new%20SQL%20Server%20running%20on%20Azure%20Stack.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ERESTORE%20DATABASE%20sqldb%20FROM%20URL%20%3D%20'https%3A%2F%2F%3CMYSTORAGEACCOUNTNAME%3E.blob.%3CREGION%3E.%3CAZURESTACKFQDN%3E%2F%3CMYCONTAINERNAME%3E%2Fsqldb.bak'%20%20%20%0AWITH%20CREDENTIAL%20%3D%20'XXX'%0AGO%3C%2FMYCONTAINERNAME%3E%3C%2FAZURESTACKFQDN%3E%3C%2FREGION%3E%3C%2FMYSTORAGEACCOUNTNAME%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20your%20database%20will%20be%20imported%20to%20the%20new%20SQL%20Server%20running%20on%20Azure%20Stack.%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20any%20questions%2C%20feel%20free%20to%20leave%20a%20comment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1847851004%22%20id%3D%22toc-hId-1040469630%22%20id%3D%22toc-hId-1040469630%22%20id%3D%22toc-hId-1040469630%22%3EAzure%20Stack%20Migration%20Series%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EYou%20can%20find%20the%20full%20playlist%20with%20the%20complete%20Azure%20Stack%20Migration%20video%20series%20on%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fplaylist%3Flist%3DPLddMzSrepwAhNkYndMzafbYUcPbmQUg3t%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EYouTube%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EHow%20to%20migrate%20File%20Servers%20to%20Microsoft%20Azure%20Stack%20using%20Windows%20Admin%20Center%3C%2FSTRONG%3E%3CBR%20%2F%3EYouTube%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmOybFnGTbII%26amp%3Blist%3DPLddMzSrepwAhNkYndMzafbYUcPbmQUg3t%26amp%3Bindex%3D9%26amp%3Bt%3D0s%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVideo%3C%2FA%3E%3CBR%20%2F%3EMicrosoft%20Docs%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows-server%2Fstorage%2Fstorage-migration-service%2Foverview%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EStorage%20Migration%20Service%3C%2FA%3E%3CBR%20%2F%3EITOpsTalk%20blog%3A%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EHow%20to%20migrate%20SQL%20Server%20to%20Microsoft%20Azure%20Stack%3C%2FSTRONG%3E%3CBR%20%2F%3EYouTube%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPDJDAQ6C01s%26amp%3Blist%3DPLddMzSrepwAhNkYndMzafbYUcPbmQUg3t%26amp%3Bindex%3D10%26amp%3Bt%3D0s%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVideo%3C%2FA%3E%3CBR%20%2F%3EMicrosoft%20Docs%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-machines%2Fwindows%2Fsql%2Fvirtual-machines-windows-migrate-sql%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMigrate%20a%20SQL%20Server%20database%20to%20SQL%20Server%20in%20an%20Azure%20VM%3C%2FA%3E%3CBR%20%2F%3EAzure%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fstorage%2Fblobs%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Blob%20Storage%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EHow%20to%20migrate%20Active%20Directory%20Domain%20Controllers%20to%20Microsoft%20Azure%20Stack%3C%2FSTRONG%3E%3CBR%20%2F%3EYouTube%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dtok5_vRAqoQ%26amp%3Blist%3DPLddMzSrepwAhNkYndMzafbYUcPbmQUg3t%26amp%3Bindex%3D11%26amp%3Bt%3D0s%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVideo%3C%2FA%3E%3CBR%20%2F%3EGitHub%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzureStack-QuickStart-Templates%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Stack%20Quick%20Start%20ARM%20Templates%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EHow%20to%20assess%20virtual%20machines%20for%20your%20Azure%20Stack%20migration%20using%20Azure%20Migrate%3C%2FSTRONG%3E%3CBR%20%2F%3EYouTube%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Do8zEw1xu8eo%26amp%3Blist%3DPLddMzSrepwAhNkYndMzafbYUcPbmQUg3t%26amp%3Bindex%3D12%26amp%3Bt%3D0s%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVideo%3C%2FA%3E%3CBR%20%2F%3EAzure%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fazure-migrate%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Migrate%3C%2FA%3E%3CBR%20%2F%3EBlog%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2F2019%2F07%2Fassess-and-migrate-hyper-v-vms-with-azure-migrate%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAssess%20and%20migrate%20virtual%20machines%20using%20Azure%20Migrate%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EHow%20to%20use%20Azure%20to%20manage%20virtual%20machines%20on%20Microsoft%20Azure%20Stack%3C%2FSTRONG%3E%3CBR%20%2F%3EYouTube%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9FyNftigiBg%26amp%3Blist%3DPLddMzSrepwAhNkYndMzafbYUcPbmQUg3t%26amp%3Bindex%3D13%26amp%3Bt%3D0s%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVideo%3C%2FA%3E%3CBR%20%2F%3EMicrosoft%20Docs%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure-stack%2Fuser%2Fvm-update-management%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Update%20Management%3C%2FA%3E%3CBR%20%2F%3EBlog%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2F2018%2F12%2Fazure-update-management-azure-stack%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Update%20Management%20with%20Azure%20Stack%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-957524%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20956px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F151378iBB4001C560BE58E0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Migrate%20SQL%20Server%20to%20Azure%20Stack.jpg%22%20title%3D%22Migrate%20SQL%20Server%20to%20Azure%20Stack.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20blog%2C%20we%20are%20going%20to%20have%20a%20look%20at%20how%20you%20can%20migrate%20your%20SQL%20Server%20to%20Azure%20Stack.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-957524%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMaurer%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESQL%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EThomas%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-969476%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20migrate%20SQL%20Server%20to%20Microsoft%20Azure%20Stack%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-969476%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F437604%22%20target%3D%22_blank%22%3E%40saddamakhtar%3C%2FA%3E%3C%2FLINGO-BODY%3E
Microsoft

As mentioned last week, we created a short video series about how you can migrate workloads to Microsoft Azure Stack. I also mentioned that we will release a complementary blog post to each of the videos which some more guidance and links. In this blog post, we will have a quick look at how you can migrate your SQL Server database to a virtual machine running on Azure Stack.

 

 

How to migrate SQL Server to Microsoft Azure Stack

 

There are many ways you can migrate an existing SQL Server to Azure Stack or Azure. In this blog, we are focusing on backing up the database to an Azure Stack Blob Storage account and importing the database into a SQL server running inside an IaaS virtual machine running on Azure Stack. You could also move the database to the SQL Server resource provider on Azure Stack

 

As mentioned before there are many different methods you could achieve this. If you want to find out more about the different migration methods, check out the following Microsoft Docs article for migrating a SQL Server database to SQL Server in an Azure VM. These can also work for VMs running on Azure Stack.

 

In our scenario, we are using the method to back up a database to an Azure Blob Storage account running on Azure Stack.

 

First, you will need to create SQL Server credentials for authentication to the Microsoft Azure Blob storage service. In our example, we are going to use a Shared Access Signature (SAS) token.

 

 

 

 

 

CREATE CREDENTIAL azsblobcred
WITH IDENTITY= 'azssqlbackup',
SECRET = '<secret>'

 

 

 

 

 

To back up the SQL database you can run the following command:

 

 

 

 

 

BACKUP DATABASE [sqldb]  
TO URL = 'https://<mystorageaccountname>.blob.<region>.<azurestackFQDN>/<mycontainername>/sqldb.bak'
WITH CREDENTIAL = 'azsblobcred';  
GO

 

 

 

 

 

Now you will need to deploy an Azure Stack virtual machine with SQL Server. You can manually create a virtual machine on Azure Stack and install SQL Server on it, or you can use a marketplace item that already comes with SQL Server preinstalled. 

 

After the SQL Server has successfully been deployed, you need to create the same SQL credentials for the Azure Blob Storage service running on Azure Stack on the new server.

 

 

 

 

 

CREATE CREDENTIAL azsblobcred
WITH IDENTITY= 'azssqlbackup',
SECRET = '<secret>'

 

 

 

 

 

Now you can restore the SQL database to the new SQL Server running on Azure Stack.

 

 

 

 

 

RESTORE DATABASE sqldb FROM URL = 'https://<mystorageaccountname>.blob.<region>.<azurestackFQDN>/<mycontainername>/sqldb.bak'   
WITH CREDENTIAL = 'XXX'
GO

 

 

 

 

 

Now your database will be imported to the new SQL Server running on Azure Stack.

If you have any questions, feel free to leave a comment.

 

Azure Stack Migration Series

 

You can find the full playlist with the complete Azure Stack Migration video series on YouTube.

 

2 Comments

Awesome AzureStack Serie Thomas :cool:

Occasional Visitor