managed instance
23 TopicsAzure SQL Managed Instance Next-gen: Severe Slowdowns During Backups
We recently upgraded our Azure SQL Managed Instance from legacy General Purpose to Next-gen General Purpose. Afterward, automatic full backups caused severe application slowdowns. I’m sharing our experience so others can evaluate this before upgrading. We had used legacy General Purpose for more than three years without SQL performance problems. We never paid attention to when the automatic backups ran because they had no noticeable impact. After upgrading, we experienced three consecutive Thursday afternoon slowdowns during full backups, severe enough that multiple customers asked whether we were having an outage. The important difference is how storage performance is allocated. On legacy General Purpose, each database file receives IOPS and throughput based on its allocated size. On Next-gen, IOPS are configured at the instance level, and the allocated IOPS also determine throughput. Our configuration is 4 vCores with 832 GB of reserved storage, primarily supporting one large production database. Its data file is approximately 703 GiB. Under legacy General Purpose, that file falls in the published tier providing 5,000 IOPS and 210 MB/s. After upgrading, the default Next-gen allocation was 2,496 IOPS, calculated as three IOPS per GB of reserved storage. Using Microsoft’s throughput formula of IOPS divided by 30, that provides approximately 83.2 MB/s shared across the instance. In other words, we went from an allowance of approximately 210 MB/s for our main data file alone to approximately 83 MB/s for the instance. Our backups typically run near 100 MB/s, so the reduced allowance left no room for application traffic and caused severe slowdowns. Reverting to legacy restored normal application performance. This will not necessarily affect every workload the same way. Instances with smaller databases may benefit from the different allocation model. Next-gen also allows additional IOPS to be purchased. However, Microsoft’s positioning of the upgrade as having no additional cost needs an important qualification: the upgrade itself may leave the bill unchanged, but maintaining comparable storage performance can require additional spending. Moreover, purchasing additional Next-gen IOPS alone would not restore our previous throughput allowance. Our 4-vCore Next-gen configuration has a maximum throughput of 145 MB/s, regardless of how many additional IOPS we purchase, compared with approximately 210 MB/s for our main data file on legacy. Reaching comparable throughput would therefore require increasing the vCore count as well. In our case, reverting restored acceptable performance, so we plan to remain on legacy for now. Before upgrading, compare your existing per-file IOPS and throughput allowances with the proposed Next-gen instance-wide allocation. Include automatic full backups in that assessment, even if ordinary application traffic is light and CPU utilization is low. The IOPS allocation rules are documented, but we did not find a clear warning that upgrading with the default settings could substantially reduce available throughput for an existing workload and turn previously unobtrusive backups into a major performance event. If anyone from Microsoft is reading, please make this tradeoff explicit in the upgrade guidance. An upgrade assessment that compares existing file-level allowances with the proposed instance-level limits would help customers avoid discovering this in production.105Views1like1CommentDMS - Support for Managed Identity for Azure SQL Managed Instance migration
Azure Database Migration Service (DMS) has introduced a new feature that supports the use of Managed Identity for migrating to Azure SQL Managed Instance. This enhancement simplifies the migration process and ensures secure and seamless integration with Azure Database Migration services. In this blog post, we will dive into the prerequisites, permissions or role(s) required, and how to use this associated Managed identity for migrating to Azure SQL Managed Instance. Currently, this feature is supported through Azure Portal, PowerShell, and Az cmdlets. Prerequisites Before you begin the migration to Azure SQL Managed Instance using Managed identity, ensure that following prerequisites are in place: 1. The Target Azure SQL Managed Instance's associated Managed Identity: Azure Database Migration Service only supports Managed Identity that is associated with the target Azure SQL Managed Instance. How to identify the associated Managed Identity? Once you start the migration to Azure SQL Managed Instance using Azure Database Migration Service and on second page, select the target Azure SQL Managed instance, its associated Managed Identity will be displayed if "Use Managed Identity" is selected (default), as highlighted below. Alternatively, you can follow these steps: a) Go to the target Azure SQL Managed Instance's home page. b) On the left menu, under Security > Identity: If User-assigned Managed Identity is present, the associated Managed Identity will be same as selected under the Primary Identity. If there is no User-assigned Managed Identity and only System-assigned Managed Identity is enabled, the associated Managed Identity will be System-assigned Managed Identity and have the same name as the Azure SQL Managed Instance's name. For example, for ABCSQLMI - Azure SQL Managed Instance the System-assigned Managed Identity will be "ABCSQLMI". 2) Permissions: Assign the "Storage Blob Data Reader" role on the storage account to the target instance's associated Managed Identity. Steps to Assign Permissions In the Azure portal, go to the storage account that will be used in migration for keeping the backup files. On the left menu under Access Control (IAM), click on "+Add" > Add role assignment Select or search for builtin role "Storage Blob Data Reader", click Next. Assing this role access to Managed Identity by selecting the associated Managed Identity identified in the previous step as the member. Note: When migrating to Azure SQL Managed Instance or Azure SQL Virtual Machine via Azure portal make sure the signed in user has Storage Blob Data Reader access on the Blob container that contains the backup files. This permission is needed to list folders and files in the blob container during migration setup via Azure portal only. How to use associated Managed identity for migration? Upon initiating the migration to Azure SQL Managed Instance using Azure Database Migration Service, navigate to the second page and select the target Azure SQL Managed Instance. If the "Use Managed Identity" option is selected (default), the associated Managed Identity will be displayed and used for the migration (as shown in the first image above). Once Managed identity is used for the migration, DMS will utilize this Managed identity for reading the backup files on the Azure blob storage and thus removing the need for SAS keys. Limitations: Azure Database Migration Service supports Managed Identity that is associated with the target Azure SQL Managed Instance only. It can be either User assigned, or System assigned Managed identity. Currently, this feature is supported through Azure Portal only. Ensure that the storage account has the "Allow storage account key access" enabled. Benefits of using Managed Identity: Using Managed Identity for Azure SQL Managed Instance migrations offers several security benefits: Enhanced Security: Managed identities eliminate the need to use SAS key, reducing the risk of SAS key token exposure. Simplified Management: As associated Managed Identity of the target Azure SQL MI is used, it allows for seamless integration with Azure Database Migration services, making it easier to manage access permissions and roles. Improved Efficiency: The streamlined authentication process speeds up migrations and reduces the complexity of managing SAS keys. Improved Compliance: By using Managed Identity, user can ensure that they adhere to security best practices and compliance requirements, as it is managed securely by Azure. All the above benefits make Managed Identity better than SAS key token. Learn more. Conclusion The new feature supporting Managed Identity in Azure Database Migration Service for Azure SQL Managed Instance migrations offers a secure and efficient way to manage permissions during the migration process. By following the steps outlined above and leveraging the security benefits of Managed Identity, you can ensure a smooth and secure migration to Azure SQL Managed Instance.1.1KViews0likes0CommentsAzure SQL Database idle sessions are killed after about 30 minutes when "Proxy" connection policy
Let's see how the connection policy affects the idle sessions on our Azure SQL Database connections. As we will see, the Azure SQL Gateways will kill idle sessions after 30 minutes when "Proxy" connection policy is set.19KViews3likes5CommentsSSIS & Azure SQL Managed Instance with MFA
We've been testing out Azure SQL Managed Instance and created SSIS packages to run against it. We set connections using the ADO.Net connection manager and all worked well. We recently had to apply MFA to all logins and this is causing issues within SSIS as there is no MFA option for logins like there is in SSMS. We can connect if we use SQL Server Authentication but we'd rather not do that. When using Active Directory Integrated Authentication, all of our test connections fail and the package will not run locally. In SSMS, there is an integrated authentication with MFA option and that works from within SSMS. How can we use SSIS and connect to the database using Windows Authentication when MFA is required?606Views0likes0CommentsAzure SQL Managed Instance Business Critical Tier, Transactional Replication, and failing over
Hi all, My company is planning a migration from SQL Server onprem to Managed Instance on Azure, using the business critical tier with zone-redundancy for HA. We currently have a peer-to-peer replication setup where our data services team updates data on a second read/write node that is separate from our main application read/write node, and the replication keeps everything in sync. My question is: on Azure if we have a second read/write MI (for our data team) syncing with the main business-critical tiered MI and there is a failover there to one of the secondary read-only replicas, what is the impact on the transactional replication to the data team MI? Could it break? Or would it now just sync with the new primary read/write node? Thanks.665Views0likes0CommentsLesson Learned #63: It is possible to create Linked Server in Azure SQL Managed Instance?
First published on MSDN on Jan 19, 2019 The answer is Yes!!! and to create it you only need to follow up the instructions provided in this URL Unfortunately, nowadays, you only are able to use the SQL provider to connect to Azure SQL Database, SQL Server or Azure SQL Managed Instance.LicenseType parameter when you scale your Azure SQL Managed Instance
When you try to scale your Azure SQL Managed Instance and you face the following error message: "Configured pricing tier and vCore values require greater number of licenses than previous instance configuration. Please submit operation again with specified value for licenseType property." you have to review your License type.2.1KViews0likes0Comments