Sql backup master database export9/7/2023 Throw new InvalidOperationException("Failed to obtain the JWT token") ġ.Send request to tell sql server start exporting to azure blob storageĢ.Continue sending request to monitor the database exported operation status. Var result = authenticationContext.AcquireTokenAsync("", Var credential = new ClientCredential(clientId, secretKey) Var backName = azureSqlDatabase + "-" + $"") Var baseStorageUri = $" container name endwith "/" Var azureSqlServer = "xxxxxxx" //testsqlserver Var resourceGroup = "Resource Group name" Replace the azureSqlDatabase,resourceGroup,azureSqlServer,adminLogin,adminPassword,storageKey,storageAccount with your own sql database and storage. Notice: Replace the clientId,tenantId,secretKey,subscriptionId with your registered azure AD information. More detail steps about how to registry app and get access token please refer to document. Registry an App in Azure AD and create service principle for it. More details about how to use sql Microsoft Azure SQL Management Library to export the sql backup to azure blob storage, you could refer to below steps and codes. So we could only use sql Microsoft Azure SQL Management Library 0.51.0-prerelease SDK. bacpac file the azure storage.īut we couldn't find ImportExport in the lastest version of Microsoft Azure SQL Management Library SDK. We could using (resourceGroup, azureSqlServer, azureSqlDatabase,exportRequestParameters) to export the. Based on my test, the sql Microsoft Azure SQL Management Library 0.51.0-prerelease support directly export the sql database.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |