conversations
listlengths
3
3
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fconnect-query-nodejs%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#main>)?" }, { "from": "gpt", "value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nVersion\nSearch\nSuggestions will filter as you type\n * [Azure SQL Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n * Azure SQL\n * Shared SQL DB & SQL MI docs\n * Billing options\n * Shared concepts\n * [Feature comparison](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/features-comparison?view=azuresql>)\n * [Multi-model features](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/multi-model-features?view=azuresql>)\n * [Temporal tables](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/temporal-tables?view=azuresql>)\n * [Scale up / down](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/scale-resources?view=azuresql>)\n * [Read Scale-Out](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/read-scale-out?view=azuresql>)\n * [Distributed transactions](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/elastic-transactions-overview?view=azuresql>)\n * Scheduled maintenance\n * Security\n * Business continuity\n * Monitor and tune\n * [Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/monitoring-tuning-index?view=azuresql>)\n * [Overview](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/monitor-tune-overview?view=azuresql>)\n * [Intelligent Insights](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-overview?view=azuresql>)\n * Database watcher (preview)\n * [SQL Analytics](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-monitor/insights/azure-sql?toc=%2Fazure%2Fazure-sql%2Ftoc.json&view=azuresql>)\n * SQL Insights (preview)\n * [Automatic tuning](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-overview?view=azuresql>)\n * Extended events\n * Shared how-to's\n * Azure SQL Database (SQL DB)\n * Azure SQL Managed Instance (SQL MI)\n * SQL Server on Azure VMs\n * Migrate from SQL Server\n * Reference\n * Resources\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [ Azure SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [ Azure SQL Database ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [Azure SQL](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-overview?view=azuresql> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/database/intelligent-insights-overview.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-overview?view=azuresql> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/database/intelligent-insights-overview.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-overview%3Fview%3Dazuresql%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-overview%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Monitor%20database%20performance%20with%20Intelligent%20Insights%20\\(preview\\)%20-%20Azure%20SQL%20Database%20%26%20Azure%20SQL%20Managed%20Instance%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-overview%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Monitor%20database%20performance%20with%20Intelligent%20Insights%20\\(preview\\)%20-%20Azure%20SQL%20Database%20%26%20Azure%20SQL%20Managed%20Instance%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-overview%3Fview%3Dazuresql%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Intelligent Insights to monitor and troubleshoot database performance (preview)\n * Article\n * 08/16/2024\n * 9 contributors\n\nFeedback" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "1. [What can Intelligent Insights do for you?](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#what-can-intelligent-insights-do-for-you>)\n 2. [How does Intelligent Insights work](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#how-does-intelligent-insights-work>)\n 3. [Intelligent Insights options](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#intelligent-insights-options>)\n 4. [Configure the export of the Intelligent Insights log](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#configure-the-export-of-the-intelligent-insights-log>)\n 5. [Detection metrics](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#detection-metrics>)\n 6. [Query duration](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#query-duration>)\n 7. [Timeout requests](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#timeout-requests>)\n 8. [Excessive wait times](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#excessive-wait-times>)\n 9. [Errored requests](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#errored-requests>)\n 10. [Next steps](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#next-steps>)\n\nShow 6 more\n**Applies to:** ![](https://learn.microsoft.com/en-us/azure/azure-sql/media/applies-to/yes-icon.svg?view=azuresql) [Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sql/sql-server/sql-docs-navigation-guide#applies-to>) ![](https://learn.microsoft.com/en-us/azure/azure-sql/media/applies-to/yes-icon.svg?view=azuresql) [Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sql/sql-server/sql-docs-navigation-guide#applies-to>)\nIntelligent Insights in Azure SQL Database and Azure SQL Managed Instance lets you know what is happening with your database performance.\nIntelligent Insights uses built-in intelligence to continuously monitor database usage through artificial intelligence and detect disruptive events that cause poor performance. Once detected, a detailed analysis is performed that generates an Intelligent Insights resource log called SQLInsights (unrelated to [Azure Monitor SQL Insights (preview)](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/monitoring-sql-database-azure-monitor?view=azuresql>)) with an [intelligent assessment of the issues](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-troubleshoot-performance?view=azuresql>). This assessment consists of a root cause analysis of the database performance issue and, where possible, recommendations for performance improvements.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#what-can-intelligent-insights-do-for-you>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "What can Intelligent Insights do for you?" }, { "from": "gpt", "value": "Intelligent Insights is a unique capability of Azure built-in intelligence that provides the following value:\n * Proactive monitoring\n * Tailored performance insights\n * Early detection of database performance degradation\n * Root cause analysis of issues detected\n * Performance improvement recommendations\n * Scale out capability on hundreds of thousands of databases\n * Positive impact to DevOps resources and the total cost of ownership\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#how-does-intelligent-insights-work>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "How does Intelligent Insights work" }, { "from": "gpt", "value": "Intelligent Insights analyzes database performance by comparing the database workload from the last hour with the past seven-day baseline workload. Database workload is composed of queries determined to be the most significant to the database performance, such as the most repeated and largest queries. Because each database is unique based on its structure, data, usage, and application, each workload baseline that is generated is specific and unique to that workload. Intelligent Insights, independent of the workload baseline, also monitors absolute operational thresholds and detects issues with excessive wait times, critical exceptions, and issues with query parameterizations that might affect performance.\nAfter a performance degradation issue is detected from multiple observed metrics by using artificial intelligence, analysis is performed. A diagnostics log is generated with an intelligent insight on what is happening with your database. Intelligent Insights makes it easy to track the database performance issue from its first appearance until resolution. Each detected issue is tracked through its lifecycle from initial issue detection and verification of performance improvement to its completion.\n![Database performance analysis workflow](https://learn.microsoft.com/en-us/azure/azure-sql/database/media/intelligent-insights-overview/intelligent-insights-concept.png?view=azuresql)\nThe metrics used to measure and detect database performance issues are based on query duration, timeout requests, excessive wait times, and errored requests. For more information on metrics, see [Detection metrics](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#detection-metrics>).\nIdentified database performance degradations are recorded in the Intelligent Insights SQLInsights log with intelligent entries that consist of the following properties:\nExpand table\nProperty | Details\n---|---\nDatabase information | Metadata about a database on which an insight was detected, such as a resource URI.\nObserved time range | Start and end time for the period of the detected insight.\nImpacted metrics | Metrics that caused an insight to be generated:\n * Query duration increase [seconds].\n * Excessive waiting [seconds].\n * Timed-out requests [percentage].\n * Errored-out requests [percentage].\n\n\nImpact value | Value of a metric measured.\nImpacted queries and error codes | Query hash or error code. These can be used to easily correlate to affected queries. Metrics that consist of either query duration increase, waiting time, timeout counts, or error codes are provided.\nDetections | Detection identified at the database during the time of an event. There are 15 detection patterns. For more information, see [Troubleshoot database performance issues with Intelligent Insights](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-troubleshoot-performance?view=azuresql>).\nRoot cause analysis | Root cause analysis of the issue identified in a human-readable format. Some insights might contain a performance improvement recommendation where possible.\nIntelligent Insights shines in discovering and troubleshooting database performance issues. In order to use Intelligent Insights to troubleshoot database performance issues, see [Troubleshoot performance issues with Intelligent Insights](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-troubleshoot-performance?view=azuresql>).\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#intelligent-insights-options>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Intelligent Insights options?" }, { "from": "gpt", "value": "Intelligent Insights options available are:\nExpand table\nIntelligent Insights option | Azure SQL Database support | Azure SQL Managed Instance support\n---|---|---\n**Configure Intelligent Insights** - Configure Intelligent Insights analysis for your databases. | Yes | Yes\n**Stream insights to Azure SQL Analytics** -- Stream insights to Azure SQL Analytics. | Yes | Yes\n**Stream insights to Azure Event Hubs** - Stream insights to Event Hubs for further custom integrations. | Yes | Yes\n**Stream insights to Azure Storage** - Stream insights to Azure Storage for further analysis and long-term archival. | Yes | Yes\nNote\nIntelligent insights is a preview feature, not available in the following regions: West Europe, North Europe, West US 1 and East US 1.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#configure-the-export-of-the-intelligent-insights-log>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Configure the export of the Intelligent Insights log?" }, { "from": "gpt", "value": "Output of the Intelligent Insights can be streamed to one of several destinations for analysis:\n * Output streamed to a Log Analytics workspace can be used with [Azure SQL Analytics](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/insights/azure-sql>) to view insights through the user interface of the Azure portal. This is the integrated Azure solution, and the most typical way to view insights.\n * Output streamed to Azure Event Hubs can be used for development of custom monitoring and alerting scenarios\n * Output streamed to Azure Storage can be used for custom application development for custom reporting, long-term data archival, and so forth.\n\nIntegration of Azure SQL Analytics, Azure Event Hubs, Azure Storage, or third-party products for consumption is performed through first enabling Intelligent Insights logging (the \"SQLInsights\" log) in the **Diagnostic settings** page of a database, and then configuring Intelligent Insights log data to be streamed into one of these destinations.\nFor more information on how to enable Intelligent Insights logging and to configure metric and resource log data to be streamed to a consuming product, see [Metrics and diagnostics logging](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/metrics-diagnostic-telemetry-logging-streaming-export-configure?view=azuresql>).\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#set-up-with-azure-sql-analytics>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Set up with Azure SQL Analytics?" }, { "from": "gpt", "value": "Azure SQL Analytics solution provides graphical user interface, reporting and alerting capabilities on database performance, using the Intelligent Insights resource log data.\nAdd Azure SQL Analytics to your Azure portal dashboard from the marketplace and to create a workspace, see [configure Azure SQL Analytics](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/insights/azure-sql#configuration>)\nTo use Intelligent Insights with Azure SQL Analytics, configure Intelligent Insights log data to be streamed to Azure SQL Analytics workspace you've created in the previous step, see [Metrics and diagnostics logging](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/metrics-diagnostic-telemetry-logging-streaming-export-configure?view=azuresql>).\nThe following example shows an Intelligent Insights viewed through Azure SQL Analytics:\n![Intelligent Insights report](https://learn.microsoft.com/en-us/azure/azure-sql/database/media/intelligent-insights-overview/intelligent-insights-azure-sql-analytics.png?view=azuresql)\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#set-up-with-event-hubs>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Set up with Event Hubs?" }, { "from": "gpt", "value": "To use Intelligent Insights with Event Hubs, configure Intelligent Insights log data to be streamed to Event Hubs, see [Metrics and diagnostics logging](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/metrics-diagnostic-telemetry-logging-streaming-export-configure?view=azuresql>) and [Stream Azure diagnostics logs to Event Hubs](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/essentials/resource-logs#send-to-azure-event-hubs>).\nTo use Event Hubs to set up custom monitoring and alerting, see [What to do with metrics and diagnostics logs in Event Hubs](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/metrics-diagnostic-telemetry-logging-streaming-export-configure?view=azuresql#what-to-do-with-metrics-and-resource-logs-in-event-hubs>).\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#set-up-with-azure-storage>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Set up with Azure Storage?" }, { "from": "gpt", "value": "To use Intelligent Insights with Storage, configure Intelligent Insights log data to be streamed to Storage, see [Metrics and diagnostics logging](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/metrics-diagnostic-telemetry-logging-streaming-export-configure?view=azuresql>) and [Stream into Azure Storage](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/metrics-diagnostic-telemetry-logging-streaming-export-configure?view=azuresql#stream-into-azure-storage>).\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#custom-integrations-of-intelligent-insights-log>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Custom integrations of Intelligent Insights log?" }, { "from": "gpt", "value": "To use Intelligent Insights with third-party tools, or for custom alerting and monitoring development, see [Use the Intelligent Insights database performance diagnostics log](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-use-diagnostics-log?view=azuresql>).\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#detection-metrics>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Detection metrics?" }, { "from": "gpt", "value": "Metrics used for detection models that generate Intelligent Insights are based on monitoring:\n * Query duration\n * Timeout requests\n * Excessive wait time\n * Errored out requests\n\nQuery duration and timeout requests are used as primary models in detecting issues with database workload performance. They're used because they directly measure what is happening with the workload. To detect all possible cases of workload performance degradation, excessive wait time and errored-out requests are used as additional models to indicate issues that affect the workload performance.\nThe system automatically considers changes to the workload and changes in the number of query requests made to the database to dynamically determine normal and out-of-the-ordinary database performance thresholds.\nAll of the metrics are considered together in various relationships through a scientifically derived data model that categorizes each performance issue detected. Information provided through an intelligent insight includes:\n * Details of the performance issue detected.\n * A root cause analysis of the issue detected.\n * Recommendations on how to improve the performance of the monitored database, where possible.\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#query-duration>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Query duration?" }, { "from": "gpt", "value": "The query duration degradation model analyzes individual queries and detects the increase in the time it takes to compile and execute a query compared to the performance baseline.\nIf built-in intelligence detects a significant increase in query compile or query execution time that affects workload performance, these queries are flagged as query duration performance degradation issues.\nThe Intelligent Insights diagnostics log outputs the query hash of the query degraded in performance. The query hash indicates whether the performance degradation was related to query compile or execution time increase, which increased query duration time.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#timeout-requests>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Timeout requests?" }, { "from": "gpt", "value": "The timeout requests degradation model analyzes individual queries and detects any increase in timeouts at the query execution level and the overall request timeouts at the database level compared to the performance baseline period.\nSome of the queries might time out even before they reach the execution stage. Through the means of aborted workers vs. requests made, built-in intelligence measures and analyzes all queries that reached the database whether they got to the execution stage or not.\nAfter the number of timeouts for executed queries or the number of aborted request workers crosses the system-managed threshold, a diagnostics log is populated with intelligent insights.\nThe insights generated contain the number of timed-out requests and the number of timed-out queries. Indication of the performance degradation is related to timeout increase at the execution stage, or the overall database level is provided. When the increase in timeouts is deemed significant to database performance, these queries are flagged as timeout performance degradation issues.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#excessive-wait-times>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Excessive wait times?" }, { "from": "gpt", "value": "The excessive wait time model monitors individual database queries. It detects unusually high query wait stats that crossed the system-managed absolute thresholds. The following query excessive wait-time metrics are observed by using, [Query Store Wait Stats (sys.query_store_wait_stats)](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sql/relational-databases/system-catalog-views/sys-query-store-wait-stats-transact-sql>):\n * Reaching resource limits\n * Reaching elastic pool resource limits\n * Excessive number of worker or session threads\n * Excessive database locking\n * Memory pressure\n * Other wait stats\n\nReaching resource limits or elastic pool resource limits denote that consumption of available resources on a subscription or in the elastic pool crossed absolute thresholds. These stats indicate workload performance degradation. An excessive number of worker or session threads denotes a condition in which the number of worker threads or sessions initiated crossed absolute thresholds. These stats indicate workload performance degradation.\nExcessive database locking denotes a condition in which the count of locks on a database has crossed absolute thresholds. This stat indicates a workload performance degradation. Memory pressure is a condition in which the number of threads requesting memory grants crossed an absolute threshold. This stat indicates a workload performance degradation.\nOther wait stats detection indicates a condition in which miscellaneous metrics measured through the Query Store Wait Stats crossed an absolute threshold. These stats indicate workload performance degradation.\nAfter excessive wait times are detected, depending on the data available, the Intelligent Insights diagnostics log outputs hashes of the affecting and affected queries degraded in performance, details of the metrics that cause queries to wait in execution, and measured wait time.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#errored-requests>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Errored requests?" }, { "from": "gpt", "value": "The errored requests degradation model monitors individual queries and detects an increase in the number of queries that errored out compared to the baseline period. This model also monitors critical exceptions that crossed absolute thresholds managed by built-in intelligence. The system automatically considers the number of query requests made to the database and accounts for any workload changes in the monitored period.\nWhen the measured increase in errored requests relative to the overall number of requests made is deemed significant to workload performance, affected queries are flagged as errored requests performance degradation issues.\nThe Intelligent Insights log outputs the count of errored requests. It indicates whether the performance degradation was related to an increase in errored requests or to crossing a monitored critical exception threshold and measured time of the performance degradation.\nIf any of the monitored critical exceptions cross the absolute thresholds managed by the system, an intelligent insight is generated with critical exception details.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#next-steps>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Next steps?" }, { "from": "gpt", "value": "* Learn how to [Monitor databases by using SQL Analytics](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/insights/azure-sql>).\n * Learn how to [Troubleshoot performance issues with Intelligent Insights](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-troubleshoot-performance?view=azuresql>)." } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Feedback?" }, { "from": "gpt", "value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/sqlfeedback>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\n[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-overview%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-overview%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#main>)?" }, { "from": "gpt", "value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nVersion\nSearch\nSuggestions will filter as you type\n * [Azure SQL Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n * Azure SQL\n * Shared SQL DB & SQL MI docs\n * Billing options\n * Shared concepts\n * Shared how-to's\n * Connect and query from apps\n * Business continuity\n * Security\n * Monitor & tune\n * [Identify query performance issues](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/identify-query-performance-issues?view=azuresql>)\n * [Troubleshoot performance issues](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-troubleshoot-performance?view=azuresql>)\n * [Use the Intelligent Insights performance diagnostics log](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-use-diagnostics-log?view=azuresql>)\n * [Batching for performance](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/performance-improve-use-batching?view=azuresql>)\n * [Load data with BCP](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/load-from-csv-with-bcp?view=azuresql>)\n * [Application and database tuning guidance](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/performance-guidance?view=azuresql>)\n * [Log diagnostic telemetry](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/metrics-diagnostic-telemetry-logging-streaming-export-configure?view=azuresql>)\n * Load and move data\n * Develop data applications\n * Azure SQL Database (SQL DB)\n * Azure SQL Managed Instance (SQL MI)\n * SQL Server on Azure VMs\n * Migrate from SQL Server\n * Reference\n * Resources\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [ Azure SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [ Azure SQL Database ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [Azure SQL](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-use-diagnostics-log?view=azuresql> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/database/intelligent-insights-use-diagnostics-log.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-use-diagnostics-log?view=azuresql> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/database/intelligent-insights-use-diagnostics-log.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-use-diagnostics-log%3Fview%3Dazuresql%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-use-diagnostics-log%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Intelligent%20Insights%20performance%20diagnostics%20log%20-%20Azure%20SQL%20Database%20%26%20Azure%20SQL%20Managed%20Instance%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-use-diagnostics-log%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Intelligent%20Insights%20performance%20diagnostics%20log%20-%20Azure%20SQL%20Database%20%26%20Azure%20SQL%20Managed%20Instance%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-use-diagnostics-log%3Fview%3Dazuresql%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Use the Intelligent Insights performance diagnostics log of Azure SQL Database and Azure SQL Managed Instance performance issues\n * Article\n * 12/17/2022\n * 9 contributors\n\nFeedback" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "1. [Log header](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#log-header>)\n 2. [Issue ID and database affected](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#issue-id-and-database-affected>)\n 3. [Detected issues](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#detected-issues>)\n 4. [Root cause analysis and improvement recommendations](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#root-cause-analysis-and-improvement-recommendations>)\n 5. [Next steps](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#next-steps>)\n\n**Applies to:** ![](https://learn.microsoft.com/en-us/azure/azure-sql/media/applies-to/yes-icon.svg?view=azuresql) [Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sql/sql-server/sql-docs-navigation-guide#applies-to>) ![](https://learn.microsoft.com/en-us/azure/azure-sql/media/applies-to/yes-icon.svg?view=azuresql) [Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sql/sql-server/sql-docs-navigation-guide#applies-to>)\nThis page provides information on how to use the performance diagnostics log generated by [Intelligent Insights](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-overview?view=azuresql>) of Azure SQL Database and Azure SQL Managed Instance performance issues, its format, and the data it contains for your custom development needs. You can send this diagnostics log to [Azure Monitor logs](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/insights/azure-sql>), [Azure Event Hubs](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/essentials/resource-logs#send-to-azure-event-hubs>), [Azure Storage](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/metrics-diagnostic-telemetry-logging-streaming-export-configure?view=azuresql#stream-into-azure-storage>), or a third-party solution for custom DevOps alerting and reporting capabilities.\nNote\nIntelligent insights is a preview feature, not available in the following regions: West Europe, North Europe, West US 1 and East US 1.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#log-header>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Log header?" }, { "from": "gpt", "value": "The diagnostics log uses JSON standard format to output Intelligent Insights findings. The exact category property for accessing an Intelligent Insights log is the fixed value \"SQLInsights\", unrelated to [Monitoring Azure SQL Database with Azure Monitor SQL Insights (preview)](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/monitoring-sql-database-azure-monitor?view=azuresql>).\nThe header of the log is common and consists of the time stamp (TimeGenerated) that shows when an entry was created. It also includes a resource ID (ResourceId) that refers to the particular database the entry relates to. The category (Category), level (Level), and operation name (OperationName) are fixed properties whose values do not change. They indicate that the log entry is informational and that it comes from Intelligent Insights (SQLInsights).\nJSON Copy\n```\n\"TimeGenerated\" : \"2017-9-25 11:00:00\", // time stamp of the log entry\n\"ResourceId\" : \"database identifier\", // value points to a database resource\n\"Category\": \"SQLInsights\", // fixed property\n\"Level\" : \"Informational\", // fixed property\n\"OperationName\" : \"Insight\", // fixed property\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#issue-id-and-database-affected>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Issue ID and database affected?" }, { "from": "gpt", "value": "The issue identification property (issueId_d) provides a way of uniquely tracking performance issues until resolved. Multiple event records in the log reporting status of the same issue will share the same issue ID.\nAlong with the issue ID, the diagnostics log reports the start (intervalStartTime_t) and end (intervalEndTme_t) time stamps of the particular event related to an issue that's reported in the diagnostics log.\nThe elastic pool (elasticPoolName_s) property indicates which elastic pool the database with an issue belongs to. If the database isn't part of an elastic pool, this property has no value. The database in which an issue was detected is disclosed in the database name (databaseName_s) property.\nJSON Copy\n```\n\"intervalStartTime_t\": \"2017-9-25 11:00\", // start of the issue reported time stamp\n\"intervalEndTme_t\":\"2017-9-25 12:00\", // end of the issue reported time stamp\n\"elasticPoolName_s\" : \"\", // resource elastic pool (if applicable)\n\"databaseName_s\" : \"db_name\", // database name\n\"issueId_d\" : 1525, // unique ID of the issue detected\n\"status_s\" : \"Active\" // status of the issue – possible values: \"Active\", \"Verifying\", and \"Complete\"\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#detected-issues>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Detected issues?" }, { "from": "gpt", "value": "The next section of the Intelligent Insights performance log contains performance issues that were detected through built-in artificial intelligence. Detections are disclosed in properties within the JSON diagnostics log. These detections consist of the category of an issue, the impact of the issue, the queries affected, and the metrics. The detections properties might contain multiple performance issues that were detected.\nDetected performance issues are reported with the following detections property structure:\nJSON Copy\n```\n\"detections_s\" : [{\n\"impact\" : 1 to 3, // impact of the issue detected, possible values 1-3 (1 low, 2 moderate, 3 high impact)\n\"category\" : \"Detectable performance pattern\", // performance issue detected, see the table\n\"details\": <Details outputted> // details of an issue (see the table)\n}]\n\n```\n\nDetectable performance patterns and the details that are outputted to the diagnostics log are provided in the following table.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#detection-category>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Detection category?" }, { "from": "gpt", "value": "The category (category) property describes the category of detectable performance patterns. See the following table for all possible categories of detectable performance patterns. For more information, see [Troubleshoot database performance issues with Intelligent Insights](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-troubleshoot-performance?view=azuresql>).\nDepending on the performance issue detected, the details outputted in the diagnostics log file differ accordingly.\nExpand table\nDetectable performance patterns | Details outputted\n---|---\nReaching resource limits |\n* Resources affected\n* Query hashes\n* Resource consumption percentage\nWorkload Increase |\n* Number of queries whose execution increased\n* Query hashes of queries with the largest contribution to the workload increase\nMemory Pressure |\n* Memory clerk\nLocking |\n* Affected query hashes\n* Blocking query hashes\nIncreased MAXDOP |\n* Query hashes\n* CXP wait times\n* Wait times\nPagelatch Contention |\n* Query hashes of queries causing contention\nMissing Index |\n* Query hashes\nNew Query |\n* Query hash of the new queries\nUnusual Wait Statistic |\n* Unusual wait types\n* Query hashes\n* Query wait times\n`tempdb` Contention |\n* Query hashes of queries causing contention\n* Query attribution to the overall database pagelatch contention wait time [%]\nElastic pool DTU Shortage |\n* Elastic pool\n* Top DTU-consuming database\n* Percent of pool DTU used by the top consumer\nPlan Regression |\n* Query hashes\n* Good plan IDs\n* Bad plan IDs\nDatabase-Scoped Configuration Value Change |\n* Database-scoped configuration changes compared to the default values\nSlow Client |\n* Query hashes\n* Wait times\nPricing Tier Downgrade |\n* Text notification\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#impact>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Impact?" }, { "from": "gpt", "value": "The impact (impact) property describes how much a detected behavior contributed to the problem that a database is having. Impacts range from 1 to 3, with 3 as the highest contribution, 2 as moderate, and 1 as the lowest contribution. The impact value might be used as an input for custom alerting automation, depending on your specific needs. The property queries impacted (QueryHashes) provide a list of the query hashes that were affected by a particular detection.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#impacted-queries>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Impacted queries?" }, { "from": "gpt", "value": "The next section of the Intelligent Insights log provides information about particular queries that were affected by the detected performance issues. This information is disclosed as an array of objects embedded in the impact_s property. The impact property consists of entities and metrics. Entities refer to a particular query (Type: Query). The unique query hash is disclosed under the value (Value) property. In addition, each of the queries disclosed is followed by a metric and a value, which indicate a detected performance issue.\nIn the following log example, the query with the hash 0x9102EXZ4 was detected to have an increased duration of execution (Metric: DurationIncreaseSeconds). The value of 110 seconds indicates that this particular query took 110 seconds longer to execute. Because multiple queries can be detected, this particular log section might include multiple query entries.\nJSON Copy\n```\n\"impact\" : [{\n\"entity\" : {\n\"Type\" : \"Query\", // type of entity - query\n\"Value\" : \"query hash value\", // for example \"0x9102EXZ4\" query hash value },\n\"Metric\" : \"DurationIncreaseSeconds\", // measured metric and the measurement unit (in this case seconds)\n\"Value\" : 110 // value of the measured metric (in this case seconds)\n}]\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#metrics>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Metrics?" }, { "from": "gpt", "value": "The unit of measurement for each metric reported is provided under the metric (metric) property with the possible values of seconds, number, and percentage. The value of a measured metric is reported in the value (value) property.\nThe DurationIncreaseSeconds property provides the unit of measurement in seconds. The CriticalErrorCount unit of measurement is a number that represents an error count.\nJSON Copy\n```\n\"metric\" : \"DurationIncreaseSeconds\", // issue metric type – possible values: DurationIncreaseSeconds, CriticalErrorCount, WaitingSeconds\n\"value\" : 102 // value of the measured metric (in this case seconds)\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#root-cause-analysis-and-improvement-recommendations>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Root cause analysis and improvement recommendations?" }, { "from": "gpt", "value": "The last part of the Intelligent Insights performance log pertains to the automated root cause analysis of the identified performance degradation issue. The information appears in human-friendly verbiage in the root cause analysis (rootCauseAnalysis_s) property. Improvement recommendations are included in the log where possible.\nJSON Copy\n```\n// example of reported root cause analysis of the detected performance issue, in a human-readable format\n\"rootCauseAnalysis_s\" : \"High data IO caused performance to degrade. It seems that this database is missing some indexes that could help.\"\n\n```\n\nYou can use the Intelligent Insights performance log with [Azure Monitor logs](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/insights/azure-sql>) or a third-party solution for custom DevOps alerting and reporting capabilities.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#next-steps>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Next steps?" }, { "from": "gpt", "value": "* Learn about [Intelligent Insights](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-overview?view=azuresql>) concepts.\n * Learn how to [Troubleshoot performance issues with Intelligent Insights](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/intelligent-insights-troubleshoot-performance?view=azuresql>).\n * Learn how to [Monitor performance issues by using Azure SQL Analytics](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/insights/azure-sql>).\n * Learn how to [collect and consume log data from your Azure resources](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/essentials/platform-logs-overview>)." } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Feedback?" }, { "from": "gpt", "value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/sqlfeedback>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\n[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-use-diagnostics-log%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fintelligent-insights-use-diagnostics-log%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#main>)?" }, { "from": "gpt", "value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nVersion\nSearch\nSuggestions will filter as you type\n * [Azure SQL Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n * Azure SQL\n * Shared SQL DB & SQL MI docs\n * Azure SQL Database (SQL DB)\n * [Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n * Overview\n * Quickstarts\n * Tutorials\n * Concepts\n * Migration guides\n * How to\n * [How to](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/how-to-content-reference-guide?view=azuresql>)\n * [Plan and manage costs](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/cost-management?view=azuresql>)\n * Connect and query\n * Develop locally\n * Manage\n * Elastic jobs\n * Business continuity\n * Monitor & Tune\n * Hyperscale databases\n * Security\n * Performance\n * Migrate\n * Load and move data\n * Database sharding\n * Query distributed data\n * Design data applications\n * [Authenticate app](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/application-authentication-get-client-id-keys?view=azuresql>)\n * [Design for disaster recovery](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/designing-cloud-solutions-for-disaster-recovery?view=azuresql>)\n * [Design for elastic pools](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/disaster-recovery-strategies-for-applications-with-elastic-pool?view=azuresql>)\n * [Design for app upgrades](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/manage-application-rolling-upgrade?view=azuresql>)\n * [C and C ++](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/develop-cplusplus-simple?view=azuresql>)\n * [Excel](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/connect-excel?view=azuresql>)\n * [Develop a Kubernetes app with Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/develop-kubernetes-application?view=azuresql>)\n * [Ports - ADO.NET](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/adonet-v12-develop-direct-route-ports?view=azuresql>)\n * Multi-tenant SaaS\n * [SaaS design patterns](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-app-design-patterns?view=azuresql>)\n * [SaaS video indexer](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-video-index-wingtip-brk3120-20171011?view=azuresql>)\n * [SaaS app security](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-elastic-tools-multi-tenant-row-level-security?view=azuresql>)\n * Multi-tenant SaaS sample application\n * [Wingtip Tickets sample](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-welcome-wingtip-tickets-app?view=azuresql>)\n * [General guidance](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-wingtip-app-guidance-tips?view=azuresql>)\n * Single application\n * Database per tenant\n * [Tutorial intro](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-wingtip-app-overview?view=azuresql>)\n * [Deploy example app](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-get-started-deploy?view=azuresql>)\n * [Provision tenants](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-provision-and-catalog?view=azuresql>)\n * [Monitor database performance](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-performance-monitoring?view=azuresql>)\n * [Monitor with Azure Monitor logs](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-log-analytics?view=azuresql>)\n * [Restore one tenant](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-restore-single-tenant?view=azuresql>)\n * [Manage tenant schema](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-schema-management?view=azuresql>)\n * [Cross-tenant reporting](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-cross-tenant-reporting?view=azuresql>)\n * Tenant analytics\n * [Disaster recovery using geo-restore](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-dr-geo-restore?view=azuresql>)\n * [Disaster recovery using database geo-replication](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-dr-geo-replication?view=azuresql>)\n * Multi-tenant database\n * Samples\n * Azure SQL Managed Instance (SQL MI)\n * SQL Server on Azure VMs\n * Migrate from SQL Server\n * Reference\n * Resources\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [ Azure SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [ Azure SQL Database ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [Azure SQL](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-provision-and-catalog?view=azuresql> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/database/saas-dbpertenant-provision-and-catalog.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-provision-and-catalog?view=azuresql> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/database/saas-dbpertenant-provision-and-catalog.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fsaas-dbpertenant-provision-and-catalog%3Fview%3Dazuresql%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fsaas-dbpertenant-provision-and-catalog%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Provision%20new%20tenants%20in%20a%20multitenant%20app%20-%20Azure%20SQL%20Database%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fsaas-dbpertenant-provision-and-catalog%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Provision%20new%20tenants%20in%20a%20multitenant%20app%20-%20Azure%20SQL%20Database%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fsaas-dbpertenant-provision-and-catalog%3Fview%3Dazuresql%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Learn how to provision new tenants and register them in the catalog\n * Article\n * 03/04/2023\n * 8 contributors\n\nFeedback" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "1. [Introduction to the SaaS catalog pattern](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#introduction-to-the-saas-catalog-pattern>)\n 2. [Introduction to the SaaS provisioning pattern](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#introduction-to-the-saas-provisioning-pattern>)\n 3. [Get the Wingtip Tickets SaaS database-per-tenant application scripts](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#get-the-wingtip-tickets-saas-database-per-tenant-application-scripts>)\n 4. [Provision and catalog detailed walkthrough](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#provision-and-catalog-detailed-walkthrough>)\n 5. [Provision a batch of tenants](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#provision-a-batch-of-tenants>)\n 6. [Other provisioning patterns](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#other-provisioning-patterns>)\n 7. [Next steps](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#next-steps>)\n 8. [Additional resources](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#additional-resources>)\n\nShow 4 more\n**Applies to:** ![](https://learn.microsoft.com/en-us/azure/azure-sql/media/applies-to/yes-icon.svg?view=azuresql) [Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/sql/sql-server/sql-docs-navigation-guide#applies-to>)\nIn this tutorial, you learn how to provision and catalog SaaS patterns. You also learn how they're implemented in the Wingtip Tickets SaaS database-per-tenant application. You create and initialize new tenant databases and register them in the application's tenant catalog. The catalog is a database that maintains the mapping between the SaaS application's many tenants and their data. The catalog plays an important role in directing application and management requests to the correct database.\nIn this tutorial, you learn how to:\n * Provision a single new tenant.\n * Provision a batch of additional tenants.\n\nTo complete this tutorial, make sure the following prerequisites are completed:\n * The Wingtip Tickets SaaS database-per-tenant app is deployed. To deploy it in less than five minutes, see [Deploy and explore the Wingtip Tickets SaaS database-per-tenant application](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-get-started-deploy?view=azuresql>).\n * Azure PowerShell is installed. For more information, see [Get started with Azure PowerShell](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/azure/get-started-azureps>).\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#introduction-to-the-saas-catalog-pattern>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Introduction to the SaaS catalog pattern?" }, { "from": "gpt", "value": "In a database-backed multitenant SaaS application, it's important to know where information for each tenant is stored. In the SaaS catalog pattern, a catalog database is used to hold the mapping between each tenant and the database in which their data is stored. This pattern applies whenever tenant data is distributed across multiple databases.\nEach tenant is identified by a key in the catalog, which is mapped to the location of their database. In the Wingtip Tickets app, the key is formed from a hash of the tenant's name. This scheme allows the app to construct the key from the tenant name included in the application URL. Other tenant key schemes can be used.\nThe catalog allows the name or location of the database to be changed with minimal impact on the application. In a multitenant database model, this capability also accommodates moving a tenant between databases. The catalog also can be used to indicate whether a tenant or database is offline for maintenance or other actions. This capability is explored in the [Restore single tenant tutorial](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-restore-single-tenant?view=azuresql>).\nThe catalog also can store additional tenant or database metadata, such as the schema version, service plan, or SLAs offered to tenants. The catalog can store other information that enables application management, customer support, or DevOps.\nBeyond the SaaS application, the catalog can enable database tools. In the Wingtip Tickets SaaS database-per-tenant sample, the catalog is used to enable cross-tenant query, which is explored in the [Ad hoc reporting tutorial](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-cross-tenant-reporting?view=azuresql>). Cross-database job management is explored in the [Schema management](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-schema-management?view=azuresql>) and [Tenant analytics](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-tenant-analytics?view=azuresql>) tutorials.\nIn the Wingtip Tickets SaaS samples, the catalog is implemented by using the Shard Management features of the [Elastic Database client library (EDCL)](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/elastic-database-client-library?view=azuresql>). The EDCL is available in Java and the .NET Framework. The EDCL enables an application to create, manage, and use a database-backed shard map.\nA shard map contains a list of shards (databases) and the mapping between keys (tenants) and shards. EDCL functions are used during tenant provisioning to create the entries in the shard map. They're used at run time by applications to connect to the correct database. EDCL caches connection information to minimize traffic to the catalog database and speed up the application.\nImportant\nThe mapping data is accessible in the catalog database, but _don't edit it_. Edit mapping data by using Elastic Database Client Library APIs only. Directly manipulating the mapping data risks corrupting the catalog and isn't supported.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#introduction-to-the-saas-provisioning-pattern>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Introduction to the SaaS provisioning pattern?" }, { "from": "gpt", "value": "When you add a new tenant in a SaaS application that uses a single-tenant database model, you must provision a new tenant database. The database must be created in the appropriate location and service tier. It also must be initialized with the appropriate schema and reference data. And it must be registered in the catalog under the appropriate tenant key.\nDifferent approaches to database provisioning can be used. You can execute SQL scripts, deploy a bacpac, or copy a template database.\nDatabase provisioning needs to be part of your schema management strategy. You must make sure that new databases are provisioned with the latest schema. This requirement is explored in the [Schema management tutorial](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-schema-management?view=azuresql>).\nThe Wingtip Tickets database-per-tenant app provisions new tenants by copying a template database named _basetenantdb_ , which is deployed on the catalog server. Provisioning can be integrated into the application as part of a sign-up experience. It also can be supported offline by using scripts. This tutorial explores provisioning by using PowerShell.\nProvisioning scripts copy the _basetenantdb_ database to create a new tenant database in an elastic pool. The tenant database is created in the tenant server mapped to the _newtenant_ DNS alias. This alias maintains a reference to the server used to provision new tenants and is updated to point to a recovery tenant server in the disaster recovery tutorials ([DR using georestore](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-dr-geo-restore?view=azuresql>), [DR using georeplication](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-dr-geo-replication?view=azuresql>)). The scripts then initialize the database with tenant-specific information and register it in the catalog shard map. Tenant databases are given names based on the tenant name. This naming scheme isn't a critical part of the pattern. The catalog maps the tenant key to the database name, so any naming convention can be used.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#get-the-wingtip-tickets-saas-database-per-tenant-application-scripts>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Get the Wingtip Tickets SaaS database-per-tenant application scripts?" }, { "from": "gpt", "value": "The Wingtip Tickets SaaS scripts and application source code are available in the [WingtipTicketsSaaS-DbPerTenant](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/github.com/Microsoft/WingtipTicketsSaaS-DbPerTenant>) GitHub repo. Check out the [general guidance](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-tenancy-wingtip-app-guidance-tips?view=azuresql>) for steps to download and unblock the Wingtip Tickets SaaS scripts.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#provision-and-catalog-detailed-walkthrough>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Provision and catalog detailed walkthrough?" }, { "from": "gpt", "value": "To understand how the Wingtip Tickets application implements new tenant provisioning, add a breakpoint and follow the workflow while you provision a tenant.\n 1. In the PowerShell ISE, open ...\\Learning Modules\\ProvisionAndCatalog\\_Demo-ProvisionAndCatalog.ps1_ and set the following parameters:\n * **$TenantName** = the name of the new venue (for example, _Bushwillow Blues_).\n * **$VenueType** = one of the predefined venue types: _blues, classicalmusic, dance, jazz, judo, motor racing, multipurpose, opera, rockmusic, soccer_.\n * **$DemoScenario** = **1** , _Provision a single tenant_.\n 2. To add a breakpoint, put your cursor anywhere on the line that says _New-Tenant `_. Then press F9.\n![Screenshot shows a script with New-Tenant highlighted for adding a breakpoint.](https://learn.microsoft.com/en-us/azure/azure-sql/database/media/saas-dbpertenant-provision-and-catalog/breakpoint.png?view=azuresql)\n 3. To run the script, press F5.\n 4. After the script execution stops at the breakpoint, press F11 to step into the code.\n![Debugging](https://learn.microsoft.com/en-us/azure/azure-sql/database/media/saas-dbpertenant-provision-and-catalog/debug.png?view=azuresql)\n\nTrace the script's execution by using the **Debug** menu options. Press F10 and F11 to step over or into the called functions. For more information about debugging PowerShell scripts, see [Tips on working with and debugging PowerShell scripts](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/scripting/components/ise/how-to-debug-scripts-in-windows-powershell-ise>).\nYou don't need to explicitly follow this workflow. It explains how to debug the script.\n * **Import the CatalogAndDatabaseManagement.psm1 module.** It provides a catalog and tenant-level abstraction over the [Shard Management](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/elastic-scale-shard-map-management?view=azuresql>) functions. This module encapsulates much of the catalog pattern and is worth exploring.\n * **Import the SubscriptionManagement.psm1 module.** It contains functions for signing in to Azure and selecting the Azure subscription you want to work with.\n * **Get configuration details.** Step into Get-Configuration by using F11, and see how the app config is specified. Resource names and other app-specific values are defined here. Don't change these values until you are familiar with the scripts.\n * **Get the catalog object.** Step into Get-Catalog, which composes and returns a catalog object that's used in the higher-level script. This function uses Shard Management functions that are imported from **AzureShardManagement.psm1**. The catalog object is composed of the following elements:\n * $catalogServerFullyQualifiedName is constructed by using the standard stem plus your user name: _catalog- <user>.database.windows .net_.\n * $catalogDatabaseName is retrieved from the config: _tenantcatalog_.\n * $shardMapManager object is initialized from the catalog database.\n * $shardMap object is initialized from the _tenantcatalog_ shard map in the catalog database. A catalog object is composed and returned. It's used in the higher-level script.\n * **Calculate the new tenant key.** A hash function is used to create the tenant key from the tenant name.\n * **Check if the tenant key already exists.** The catalog is checked to make sure the key is available.\n * **The tenant database is provisioned with New-TenantDatabase.** Use F11 to step into how the database is provisioned by using an [Azure Resource Manager template](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-resource-manager/templates/quickstart-create-templates-use-the-portal>).\nThe database name is constructed from the tenant name to make it clear which shard belongs to which tenant. You also can use other database naming conventions. A Resource Manager template creates a tenant database by copying a template database (_baseTenantDB_) on the catalog server. As an alternative, you can create a database and initialize it by importing a bacpac. Or you can execute an initialization script from a well-known location.\nThe Resource Manager template is in the …\\Learning Modules\\Common\\ folder: _tenantdatabasecopytemplate.json_\n * **The tenant database is further initialized.** The venue (tenant) name and the venue type are added. You also can do other initialization here.\n * **The tenant database is registered in the catalog.** It's registered with _Add-TenantDatabaseToCatalog_ by using the tenant key. Use F11 to step into the details:\n * The catalog database is added to the shard map (the list of known databases).\n * The mapping that links the key value to the shard is created.\n * Additional metadata about the tenant (the venue's name) is added to the Tenants table in the catalog. The Tenants table isn't part of the Shard Management schema, and it isn't installed by the EDCL. This table illustrates how the catalog database can be extended to support additional application-specific data.\n\nAfter provisioning completes, execution returns to the original _Demo-ProvisionAndCatalog_ script. The **Events** page opens for the new tenant in the browser.\n![Events page](https://learn.microsoft.com/en-us/azure/azure-sql/database/media/saas-dbpertenant-provision-and-catalog/new-tenant.png?view=azuresql)\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#provision-a-batch-of-tenants>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Provision a batch of tenants?" }, { "from": "gpt", "value": "This exercise provisions a batch of 17 tenants. We recommend that you provision this batch of tenants before starting other Wingtip Tickets SaaS database-per-tenant tutorials. There are more than just a few databases to work with.\n 1. In the PowerShell ISE, open ...\\Learning Modules\\ProvisionAndCatalog\\_Demo-ProvisionAndCatalog.ps1_. Change the _$DemoScenario_ parameter to 3:\n * **$DemoScenario** = **3** , _Provision a batch of tenants_.\n 2. To run the script, press F5.\n\nThe script deploys a batch of additional tenants. It uses an [Azure Resource Manager template](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/azure/azure-resource-manager/templates/quickstart-create-templates-use-the-portal>) that controls the batch and delegates provisioning of each database to a linked template. Using templates in this way allows Azure Resource Manager to broker the provisioning process for your script. The templates provision databases in parallel and handle retries, if needed. The script is idempotent, so if it fails or stops for any reason, run it again.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#verify-the-batch-of-tenants-that-successfully-deployed>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Verify the batch of tenants that successfully deployed?" }, { "from": "gpt", "value": "* In the [Azure portal](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/portal.azure.com>), browse to your list of servers and open the _tenants1_ server. Select **SQL databases** , and verify that the batch of 17 additional databases is now in the list.\n![Database list](https://learn.microsoft.com/en-us/azure/azure-sql/database/media/saas-dbpertenant-provision-and-catalog/database-list.png?view=azuresql)\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#other-provisioning-patterns>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Other provisioning patterns?" }, { "from": "gpt", "value": "Other provisioning patterns not included in this tutorial:\n**Pre-provisioning databases** : The pre-provisioning pattern exploits the fact that databases in an elastic pool don't add extra cost. Billing is for the elastic pool, not the databases. Idle databases consume no resources. By pre-provisioning databases in a pool and allocating them when needed, you can reduce the time to add tenants. The number of databases pre-provisioned can be adjusted as needed to keep a buffer suitable for the anticipated provisioning rate.\n**Auto-provisioning** : In the auto-provisioning pattern, a provisioning service provisions servers, pools, and databases automatically, as needed. If you want, you can include pre-provisioning databases in elastic pools. If databases are decommissioned and deleted, gaps in elastic pools can be filled by the provisioning service. Such a service can be simple or complex, such as handling provisioning across multiple geographies and setting up geo-replication for disaster recovery.\nWith the auto-provisioning pattern, a client application or script submits a provisioning request to a queue to be processed by the provisioning service. It then polls the service to determine completion. If pre-provisioning is used, requests are handled quickly. The service provisions a replacement database in the background.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#next-steps>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Next steps?" }, { "from": "gpt", "value": "In this tutorial you learned how to:\n * Provision a single new tenant.\n * Provision a batch of additional tenants.\n * Step into the details of provisioning tenants and registering them into the catalog.\n\nTry the [Performance monitoring tutorial](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-performance-monitoring?view=azuresql>).\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/<#additional-resources>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "* Additional [tutorials that build on the Wingtip Tickets SaaS database-per-tenant application](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/saas-dbpertenant-wingtip-app-overview?view=azuresql#sql-database-wingtip-saas-tutorials>)\n * [Elastic database client library](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/elastic-database-client-library?view=azuresql>)\n * [Debug scripts in the Windows PowerShell ISE](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/powershell/scripting/components/ise/how-to-debug-scripts-in-windows-powershell-ise>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Feedback?" }, { "from": "gpt", "value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/sqlfeedback>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\n[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fsaas-dbpertenant-provision-and-catalog%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fsaas-dbpertenant-provision-and-catalog%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/database/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/database/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#main>)?" }, { "from": "gpt", "value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nVersion\nSearch\nSuggestions will filter as you type\n * [Azure SQL Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n * Azure SQL\n * Shared SQL DB & SQL MI docs\n * Azure SQL Database (SQL DB)\n * Azure SQL Managed Instance (SQL MI)\n * [Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/?view=azuresql>)\n * Overview\n * Quickstarts\n * Tutorials\n * Migration guides\n * Concepts\n * How to\n * [How-to documentation](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/how-to-content-reference-guide?view=azuresql>)\n * [Connect applications](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/connect-application-instance?view=azuresql>)\n * [Distributed transactions with DTC](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/distributed-transaction-coordinator-dtc?view=azuresql>)\n * [Enroll in November 2022 feature wave](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/november-2022-feature-wave-enroll?view=azuresql>)\n * [Use Next-gen General Purpose tier](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/service-tiers-next-gen-general-purpose-use?view=azuresql>)\n * Automation\n * Manage\n * Monitor & Tune\n * Configure settings\n * Configure networking\n * Migrate\n * Managed Instance link\n * Manage business continuity\n * Samples\n * SQL Server on Azure VMs\n * Migrate from SQL Server\n * Reference\n * Resources\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [ Azure SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [ Azure SQL Managed Instance ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/?view=azuresql>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [Azure SQL](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/?view=azuresql>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/service-tiers-next-gen-general-purpose-use?view=azuresql> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/managed-instance/service-tiers-next-gen-general-purpose-use.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/service-tiers-next-gen-general-purpose-use?view=azuresql> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/managed-instance/service-tiers-next-gen-general-purpose-use.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fservice-tiers-next-gen-general-purpose-use%3Fview%3Dazuresql%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fservice-tiers-next-gen-general-purpose-use%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Use%20Next-gen%20General%20Purpose%20service%20tier%20\\(preview\\)%20-%20Azure%20SQL%20Managed%20Instance%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fservice-tiers-next-gen-general-purpose-use%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Use%20Next-gen%20General%20Purpose%20service%20tier%20\\(preview\\)%20-%20Azure%20SQL%20Managed%20Instance%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fservice-tiers-next-gen-general-purpose-use%3Fview%3Dazuresql%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Use Next-gen General Purpose service tier (preview) - Azure SQL Managed Instance\n * Article\n * 10/18/2024\n * 4 contributors\n\nFeedback" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "1. [Overview](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#overview>)\n 2. [Upgrade existing instances](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#upgrade-existing-instances>)\n 3. [New instances](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#new-instances>)\n 4. [Next steps](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#next-steps>)\n\n**Applies to:** ![](https://learn.microsoft.com/en-us/azure/azure-sql/media/applies-to/yes-icon.svg?view=azuresql) [Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/sql-server/sql-docs-navigation-guide#applies-to>)\nThis article teaches you how to use the Next-gen General Purpose service tier upgrade for [Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/sql-managed-instance-paas-overview?view=azuresql>). The Next-gen General Purpose service tier is an architectural upgrade to the existing General Purpose service tier that can be used for new and existing instances.\nNote\nThe Next-gen General Purpose service tier upgrade is currently in preview.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#overview>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Overview?" }, { "from": "gpt", "value": "The Next-gen General Purpose service tier is an architectural upgrade of the existing General Purpose service tier that offers the following key characteristics:\n * Designed for businesses with higher performance requirements while offering the same baseline cost as the General Purpose service tier\n * Significant upgrades to performance, scalability, and resource flexibility over the General Purpose service tier\n * Uses managed disks instead of page blobs, which drastically improve storage performance metrics\n * 3 free IOPS for every GB of reserved storage\n * Support of up to 500 databases per instance, and a max storage size of 32 TB\n\nSince the Next-gen General Purpose service tier is an upgrade to the existing General Purpose service tier, regardless of which service tier your instance uses, your billing statement reflects the _General Purpose_ service tier.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#architectural-model>)\n#### Architectural model\nThe Next-gen General Purpose service tier is an upgrade to the existing General Purpose service tier that uses an upgraded remote storage layer to store instance data and log files on managed disks instead of page blobs. This means the Next-gen General Purpose service tier upgrade offers faster storage latency, IOPS, and throughput than the existing General Purpose service tier, with increased limits to storage, the number of vCores, and the max number of databases. Additionally, since the performance quotas are shared by the whole instance, you no longer have to resize individual files to improve their performance. The baseline cost of the Next-gen General Purpose service tier is the same as the General Purpose service tier, but you can use sliders to increase your IO performance, which is then billed separately.\nThe Next-gen General Purpose service tier helps reduce cost by offering free IOPS at three IOPS for every GB of reserved storage. The price of the storage includes the minimum IOPS. If you go above the minimum, you're charged as follows: 1 IOPS = storage price (by region) divided by three.\nFor example:\n * If 1 GB of storage costs 0.115, then 1 IOPS = 0.115/3 = 0.038 per IOPS.\n * A 1,024-GB instance receives 3072 IOPS for free. You can choose to increase your IOPS up to the [VM limit](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/resource-limits?view=azuresql#iops>) for an additional cost.\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#when-to-choose-this-service-tier>)\n#### When to choose this service tier\nChoose this service tier if your business is budget-oriented but the performance metrics and limits of the General Purpose service tier are insufficient.\nThe key reasons why you should choose the Next-gen General Purpose service tier instead of the General Purpose tier are:\n * Better performance for the same baseline cost\n * Improved latency, throughput, and IOPS\n * Greater storage capacity\n * More flexibility for your compute\n * You need over 100 databases for a single instance\n * You need more than 16 TB of reserved storage\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#upgrade-existing-instances>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Upgrade existing instances?" }, { "from": "gpt", "value": "To upgrade an existing instance to the Next-gen General Purpose service tier in the Azure portal, follow these steps:\n 1. Go to your SQL managed instance resource in the [Azure portal](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/portal.azure.com>).\n 2. Select **Compute + storage** under **Settings** to open the **Compute + storage** pane.\n 3. On the **Compute + storage** pane, select **Enable** for _Next-gen General Purpose (preview)_ :\n![Screenshot of the compute and storage page for your instance in the Azure portal, with next-gen general purpose selected.](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/media/service-tiers-next-gen-general-purpose-use/existing-instance.png?view=azuresql)\n 4. After _Next-gen General Purpose (preview)_ is enabled, you can use sliders to modify the IOPS for the instance, and review the _Cost per IOPS_ in the **Estimated costs per month** box.\n 5. Select **Apply** to save your changes.\n\nNote\nFor instances inside of a failover group, changing the service tier to, or from, the Next-gen General Purpose tier isn't supported. You must first delete the failover group before modifying either replica, and then re-create the failover group after the change takes effect.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#new-instances>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain New instances?" }, { "from": "gpt", "value": "You can use the Next-gen General Purpose tier upgrade for new instances when you deploy them in the Azure portal. To do so, follow these steps:\n 1. Go to the [Create Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/portal.azure.com/#create/Microsoft.SQLManagedInstance>) pane in the Azure portal.\n 2. On the **Networking** tab, under **Virtual network / subnet** , select a subnet from the dropdown that is **Ready for November 2022 feature wave**.\n 3. On the **Basics** tab, select **Configure Managed Instance** under **Compute + storage** to open the **Compute + storage** pane:\n![Screenshot of the Create Azure SQL Managed Instance page in the Azure portal, with Configure Managed Instance selected.](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/media/service-tiers-next-gen-general-purpose-use/new-instance-configure.png?view=azuresql)\n 4. Select **Enabled** for _Next-gen General Purpose (preview)_ and then use the slider to modify IOPS for your instance. Review the _Cost per IOPS_ in the **Estimated costs per month** box:\n![Screenshot of the compute + storage page when you configure your new Azure SQL Managed in the Azure portal.](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/media/service-tiers-next-gen-general-purpose-use/new-instance-configure-managed-instance.png?view=azuresql)\n 5. Select **Apply** to save your instance configuration and go back to the **Create Azure SQL Managed Instance** pane.\n 6. Fill out the rest of the values to configure your new instance.\n 7. Select **Review + create** to review your settings, and then select **Create** to deploy your new instance using the Next-gen General purpose tier upgrade.\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#next-steps>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Next steps?" }, { "from": "gpt", "value": "* To get started, see [Creating a SQL Managed Instance using the Azure portal](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/instance-create-quickstart?view=azuresql>)\n * For pricing details, see\n * [Azure SQL Managed Instance single instance pricing page](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/pricing/details/azure-sql-managed-instance/single/>)\n * [Azure SQL Managed Instance pools pricing page](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/pricing/details/azure-sql-managed-instance/pools/>)\n * For details about the specific compute and storage sizes available in the General Purpose and Business Critical service tiers, see [vCore-based resource limits for Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/resource-limits?view=azuresql>).\n * [SLA for Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/support/legal/sla/azure-sql-sql-managed-instance/>)\n * [Frequently asked questions](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/frequently-asked-questions-faq?view=azuresql#next-gen-general-purpose-service-tier-upgrade>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Feedback?" }, { "from": "gpt", "value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/sqlfeedback>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\n[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fservice-tiers-next-gen-general-purpose-use%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fservice-tiers-next-gen-general-purpose-use%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#main>)?" }, { "from": "gpt", "value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nVersion\nSearch\nSuggestions will filter as you type\n * [Azure SQL Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n * Azure SQL\n * Shared SQL DB & SQL MI docs\n * Azure SQL Database (SQL DB)\n * [Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n * Overview\n * Quickstarts\n * Tutorials\n * Concepts\n * Migration guides\n * How to\n * Samples\n * Azure CLI\n * [Samples overview](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/az-cli-script-samples-content-guide?view=azuresql>)\n * Create databases\n * Scale databases\n * Configure geo-replication\n * [Single database](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/scripts/setup-geodr-failover-database-cli?view=azuresql>)\n * [Pooled database](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/scripts/setup-geodr-failover-pool-cli?view=azuresql>)\n * Configure failover group\n * Database back up, restore, copy, and import\n * Sync database between databases\n * Azure PowerShell\n * [Azure Resource Manager](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/arm-templates-content-guide?view=azuresql>)\n * [Code samples](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/resources/samples/?service=sql-database>)\n * [Azure Resource Graph queries](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/resource-graph-samples?view=azuresql>)\n * [Try Azure SQL Database free with Azure free account (old offer)](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/free-sql-db-free-account-how-to-deploy?view=azuresql>)\n * Azure SQL Managed Instance (SQL MI)\n * SQL Server on Azure VMs\n * Migrate from SQL Server\n * Reference\n * Resources\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [ Azure SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [ Azure SQL Database ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [Azure SQL](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/?view=azuresql>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/scripts/setup-geodr-failover-pool-cli?view=azuresql> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/database/scripts/setup-geodr-failover-pool-cli.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/scripts/setup-geodr-failover-pool-cli?view=azuresql> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/database/scripts/setup-geodr-failover-pool-cli.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fscripts%2Fsetup-geodr-failover-pool-cli%3Fview%3Dazuresql%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fscripts%2Fsetup-geodr-failover-pool-cli%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Azure%20CLI%20example%3A%20Configure%20active%20geo-replication%20for%20an%20elastic%20pool%20-%20Azure%20SQL%20Database%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fscripts%2Fsetup-geodr-failover-pool-cli%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Azure%20CLI%20example%3A%20Configure%20active%20geo-replication%20for%20an%20elastic%20pool%20-%20Azure%20SQL%20Database%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fscripts%2Fsetup-geodr-failover-pool-cli%3Fview%3Dazuresql%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Configure active geo-replication for a pooled database in Azure SQL Database using the Azure CLI\n * Article\n * 03/04/2023\n * 9 contributors\n\nFeedback" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "1. [Prerequisites](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#prerequisites>)\n 2. [Sample script](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#sample-script>)\n 3. [Clean up resources](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#clean-up-resources>)\n 4. [Sample reference](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#sample-reference>)\n 5. [Next steps](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#next-steps>)\n\n**Applies to:** ![](https://learn.microsoft.com/en-us/azure/azure-sql/media/applies-to/yes-icon.svg?view=azuresql) [Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/sql/sql-server/sql-docs-navigation-guide#applies-to>)\nThis Azure CLI script example configures active geo-replication for a pooled database in Azure SQL Database and fails it over to the secondary replica of the database.\nIf you don't have an [Azure subscription](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/guides/developer/azure-developer-guide#understanding-accounts-subscriptions-and-billing>), create an [Azure free account](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio>) before you begin.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#prerequisites>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Prerequisites?" }, { "from": "gpt", "value": "* Use the Bash environment in [Azure Cloud Shell](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/cloud-shell/overview>). For more information, see [Quickstart for Bash in Azure Cloud Shell](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/cloud-shell/quickstart>).\n[![](https://learn.microsoft.com/en-us/azure/azure-sql/reusable-content/azure-cli/media/hdi-launch-cloud-shell.png?view=azuresql) ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/shell.azure.com>)\n * If you prefer to run CLI reference commands locally, [install](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/install-azure-cli>) the Azure CLI. If you're running on Windows or macOS, consider running Azure CLI in a Docker container. For more information, see [How to run the Azure CLI in a Docker container](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/run-azure-cli-docker>).\n * If you're using a local installation, sign in to the Azure CLI by using the [az login](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/reference-index#az-login>) command. To finish the authentication process, follow the steps displayed in your terminal. For other sign-in options, see [Sign in with the Azure CLI](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/authenticate-azure-cli>).\n * When you're prompted, install the Azure CLI extension on first use. For more information about extensions, see [Use extensions with the Azure CLI](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/azure-cli-extensions-overview>).\n * Run [az version](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/reference-index#az-version>) to find the version and dependent libraries that are installed. To upgrade to the latest version, run [az upgrade](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/reference-index#az-upgrade>).\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#sample-script>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Sample script?" }, { "from": "gpt", "value": "[](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#launch-azure-cloud-shell>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Launch Azure Cloud Shell?" }, { "from": "gpt", "value": "The Azure Cloud Shell is a free interactive shell that you can use to run the steps in this article. It has common Azure tools preinstalled and configured to use with your account.\nTo open the Cloud Shell, select **Try it** from the upper right corner of a code block. You can also launch Cloud Shell in a separate browser tab by going to <https://shell.azure.com>.\nWhen Cloud Shell opens, verify that **Bash** is selected for your environment. Subsequent sessions will use Azure CLI in a Bash environment. Select **Copy** to copy the blocks of code, paste it into the Cloud Shell, and press **Enter** to run it.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#sign-in-to-azure>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Sign in to Azure?" }, { "from": "gpt", "value": "Cloud Shell is automatically authenticated under the initial account signed-in with. Use the following script to sign in using a different subscription, replacing `<Subscription ID>` with your Azure Subscription ID. If you don't have an [Azure subscription](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/azure/guides/developer/azure-developer-guide#understanding-accounts-subscriptions-and-billing>), create an [Azure free account](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio>) before you begin.\nAzure CLI Copy Open Cloud Shell\n```\nsubscription=\"<subscriptionId>\" # add subscription here\naz account set -s $subscription # ...or use 'az login'\n\n```\n\nFor more information, see [set active subscription](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/account#az-account-set>) or [log in interactively](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/reference-index#az-login>)\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#run-the-script>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Run the script?" }, { "from": "gpt", "value": "Azure CLI Copy\n```\n# Configure active geo-replication for a pooled database in Azure SQL Database\n# Variable block\nlet \"randomIdentifier=$RANDOM*$RANDOM\"\nlocation=\"East US\"\nresourceGroup=\"msdocs-azuresql-rg-$randomIdentifier\"\ntag=\"setup-geodr-and-failover-elastic-pool\"\nserver=\"msdocs-azuresql-server-$randomIdentifier\"\ndatabase=\"msdocsazuresqldb$randomIdentifier\"\nlogin=\"azureuser\"\npassword=\"Pa$$w0rD-$randomIdentifier\"\npool=\"pool-$randomIdentifier\"\nfailoverLocation=\"Central US\"\nfailoverResourceGroup=\"msdocs-azuresql-failover-rg-$randomIdentifier\"\nsecondaryServer=\"msdocs-azuresql-secondary-server-$randomIdentifier\"\nsecondaryPool=\"msdocs-azuresql-secondary-pool-$randomIdentifier\"\necho \"Using resource group $resourceGroup with login: $login, password: $password...\"\necho \"Creating $resourceGroup in $location and $failoverResourceGroup in $failoverLocation...\"\naz group create --name $resourceGroup --location \"$location\" --tags $tag\naz group create --name $failoverResourceGroup --location \"$failoverLocation\"\necho \"Creating $server in $location and $secondaryServer in $failoverLocation...\"\naz sql server create --name $server --resource-group $resourceGroup --location \"$location\" --admin-user $login --admin-password $password\naz sql server create --name $secondaryServer --resource-group $failoverResourceGroup --location \"$failoverLocation\" --admin-user $login --admin-password $password\necho \"Creating $pool on $server and $secondaryPool on $secondaryServer...\"\naz sql elastic-pool create --name $pool --resource-group $resourceGroup --server $server --capacity 50 --db-dtu-max 50 --db-dtu-min 10 --edition \"Standard\"\naz sql elastic-pool create --name $secondaryPool --resource-group $failoverResourceGroup --server $secondaryServer --capacity 50 --db-dtu-max 50 --db-dtu-min 10 --edition \"Standard\"\necho \"Creating $database in $pool...\"\naz sql db create --name $database --resource-group $resourceGroup --server $server --elastic-pool $pool\necho \"Establishing geo-replication for $database between $server and $secondaryServer...\"\naz sql db replica create --name $database --partner-server $secondaryServer --resource-group $resourceGroup --server $server --elastic-pool $secondaryPool --partner-resource-group $failoverResourceGroup\necho \"Initiating failover to $secondaryServer...\"\naz sql db replica set-primary --name $database --resource-group $failoverResourceGroup --server $secondaryServer\necho \"Monitoring health of $database on $secondaryServer...\"\naz sql db replica list-links --name $database --resource-group $failoverResourceGroup --server $secondaryServer\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#clean-up-resources>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Clean up resources?" }, { "from": "gpt", "value": "Use the following command to remove the resource group and all resources associated with it using the [az group delete](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/vm/extension#az-vm-extension-set>) command - unless you have an ongoing need for these resources. Some of these resources may take a while to create, as well as to delete.\nAzure CLI Copy\n```\naz group delete --name $resourceGroup\naz group delete --name $secondaryResourceGroup\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#sample-reference>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Sample reference?" }, { "from": "gpt", "value": "This script uses the following commands. Each command in the table links to command specific documentation.\nExpand table\nCommand | Description\n---|---\n[az sql elastic-pool](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/sql/elastic-pool>) | Elastic pool commands\n[az sql db replica](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure/sql/db/replica>) | Database replication commands.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<#next-steps>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Next steps?" }, { "from": "gpt", "value": "For more information on Azure CLI, see [Azure CLI documentation](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/cli/azure>).\nAdditional SQL Database CLI script samples can be found in the [Azure SQL Database documentation](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/az-cli-script-samples-content-guide?view=azuresql>)." } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Feedback?" }, { "from": "gpt", "value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/aka.ms/sqlfeedback>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\n[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fscripts%2Fsetup-geodr-failover-pool-cli%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fscripts%2Fsetup-geodr-failover-pool-cli%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/database/scripts/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#main>)?" }, { "from": "gpt", "value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nVersion\nSearch\nSuggestions will filter as you type\n * [Azure SQL Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n * Azure SQL\n * Shared SQL DB & SQL MI docs\n * Azure SQL Database (SQL DB)\n * Azure SQL Managed Instance (SQL MI)\n * [Documentation](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/?view=azuresql>)\n * Overview\n * Quickstarts\n * Tutorials\n * Migration guides\n * Concepts\n * How to\n * [How-to documentation](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/how-to-content-reference-guide?view=azuresql>)\n * [Connect applications](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/connect-application-instance?view=azuresql>)\n * [Distributed transactions with DTC](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/distributed-transaction-coordinator-dtc?view=azuresql>)\n * [Enroll in November 2022 feature wave](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/november-2022-feature-wave-enroll?view=azuresql>)\n * [Use Next-gen General Purpose tier](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/service-tiers-next-gen-general-purpose-use?view=azuresql>)\n * Automation\n * [Azure Automation](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/automation-manage?view=azuresql>)\n * [Job automation with SQL Agent](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/job-automation-managed-instance?view=azuresql>)\n * Manage\n * Monitor & Tune\n * Configure settings\n * Configure networking\n * Migrate\n * Managed Instance link\n * Manage business continuity\n * Samples\n * SQL Server on Azure VMs\n * Migrate from SQL Server\n * Reference\n * Resources\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [ Azure SQL ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [ Azure SQL Managed Instance ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/?view=azuresql>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/?view=azuresql>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/?view=azuresql>)\n 3. [Azure SQL](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql>)\n 4. [Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/?view=azuresql>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/job-automation-managed-instance?view=azuresql> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/managed-instance/job-automation-managed-instance.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/job-automation-managed-instance?view=azuresql> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/github.com/MicrosoftDocs/sql-docs/blob/live/azure-sql/managed-instance/job-automation-managed-instance.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fjob-automation-managed-instance%3Fview%3Dazuresql%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fjob-automation-managed-instance%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Job%20automation%20with%20SQL%20Agent%20jobs%20-%20Azure%20SQL%20Managed%20Instance%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fjob-automation-managed-instance%3Fview%3Dazuresql%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Job%20automation%20with%20SQL%20Agent%20jobs%20-%20Azure%20SQL%20Managed%20Instance%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fjob-automation-managed-instance%3Fview%3Dazuresql%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Automate management tasks using SQL Agent jobs in Azure SQL Managed Instance\n * Article\n * 12/17/2022\n * 6 contributors\n\nFeedback" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "1. [When to use SQL Agent jobs](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#when-to-use-sql-agent-jobs>)\n 2. [SQL Agent jobs in SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#sql-agent-jobs-in-sql-managed-instance>)\n 3. [Job steps](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#job-steps>)\n 4. [Job schedules](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#job-schedules>)\n 5. [Job notifications](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#job-notifications>)\n 6. [Job history](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#job-history>)\n 7. [Fixed database role membership](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#fixed-database-role-membership>)\n 8. [SQL Agent job limitations in SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#sql-agent-job-limitations-in-sql-managed-instance>)\n 9. [Learn more](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#learn-more>)\n 10. [Next steps](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#next-steps>)\n\nShow 6 more\n**Applies to:** ![](https://learn.microsoft.com/en-us/azure/azure-sql/media/applies-to/yes-icon.svg?view=azuresql) [Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/sql-server/sql-docs-navigation-guide#applies-to>)\nUsing [SQL Server Agent](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/ssms/agent/sql-server-agent>) in SQL Server and [SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/sql-managed-instance-paas-overview?view=azuresql>), you can create and schedule jobs that could be periodically executed against one or many databases to run Transact-SQL (T-SQL) queries and perform maintenance tasks. This article covers the use of SQL Agent for SQL Managed Instance.\nNote\nSQL Agent is not available in Azure SQL Database or Azure Synapse Analytics. Instead, we recommend [Job automation with Elastic Jobs](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/job-automation-overview?view=azuresql>).\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#when-to-use-sql-agent-jobs>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "When to use SQL Agent jobs" }, { "from": "gpt", "value": "There are several scenarios when you could use SQL Agent jobs:\n * Automate management tasks and schedule them to run every weekday, after hours, etc.\n * Deploy schema changes, credentials management, performance data collection or tenant (customer) telemetry collection.\n * Update reference data (information common across all databases), load data from Azure Blob storage. Microsoft recommends using [SHARED ACCESS SIGNATURE authentication to authenticate to Azure Blob storage](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/t-sql/statements/bulk-insert-transact-sql#f-importing-data-from-a-file-in-azure-blob-storage>).\n * Common maintenance tasks including `DBCC CHECKDB` to ensure data integrity or index maintenance to improve query performance. Configure jobs to execute across a collection of databases on a recurring basis, such as during off-peak hours.\n * Collect query results from a set of databases into a central table on an on-going basis. Performance queries can be continually executed and configured to trigger additional tasks to be executed.\n * Collect data for reporting\n * Aggregate data from a collection of databases into a single destination table.\n * Execute longer running data processing queries across a large set of databases, for example the collection of customer telemetry. Results are collected into a single destination table for further analysis.\n * Data movements\n * Create jobs that replicate changes made in your databases to other databases or collect updates made in remote databases and apply changes in the database.\n * Create jobs that load data from or to your databases using SQL Server Integration Services (SSIS).\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#sql-agent-jobs-in-sql-managed-instance>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain SQL Agent jobs in SQL Managed Instance?" }, { "from": "gpt", "value": "SQL Agent Jobs are executed by the SQL Agent service that continues to be used for task automation in SQL Server and SQL Managed Instance.\nSQL Agent Jobs are a specified series of T-SQL scripts against your database. Use jobs to define an administrative task that can be run one or more times and monitored for success or failure.\nA job can run on one local server or on multiple remote servers. SQL Agent Jobs are an internal Database Engine component that is executed within the SQL Managed Instance service.\nThere are several key concepts in SQL Agent Jobs:\n * **Job steps** set of one or many steps that should be executed within the job. For every job step you can define retry strategy and the action that should happen if the job step succeeds or fails.\n * **Schedules** define when the job should be executed.\n * **Notifications** enable you to define rules that will be used to notify operators via email once the job completes.\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#job-steps>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Job steps?" }, { "from": "gpt", "value": "SQL Agent Job steps are sequences of actions that SQL Agent should execute. Every step has the following step that should be executed if the step succeeds or fails, number of retries in a case of failure.\nSQL Agent enables you to create different types of job steps, such as Transact-SQL job steps that execute a single Transact-SQL batch against the database, or OS command/PowerShell steps that can execute custom OS script, [SSIS job steps](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/data-factory/how-to-invoke-ssis-package-managed-instance-agent>) that enable you to load data using SSIS runtime, or [replication](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/replication-transactional-overview?view=azuresql>) steps that can publish changes from your database to other databases.\nNote\nFor more information on leveraging the Azure SSIS Integration Runtime with SSISDB hosted by SQL Managed Instance, see [Use Azure SQL Managed Instance with SQL Server Integration Services (SSIS) in Azure Data Factory](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/data-factory/how-to-use-sql-managed-instance-with-ir>).\n[Transactional replication](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/replication-transactional-overview?view=azuresql>) can replicate the changes from your tables into other databases in SQL Managed Instance, Azure SQL Database, or SQL Server. For information, see [Configure replication in Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/replication-between-two-instances-configure-tutorial?view=azuresql>).\nOther types of job steps are **not currently supported** in SQL Managed Instance, such as Merge replication, and Queue reader.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#job-schedules>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Job schedules?" }, { "from": "gpt", "value": "A schedule specifies when a job runs. More than one job can run on the same schedule, and more than one schedule can apply to the same job.\nA schedule can define the following conditions for the time when a job runs:\n * Whenever SQL Server Agent starts. Job is activated after every failover.\n * One time, at a specific date and time, which is useful for delayed execution of some job.\n * On a recurring schedule.\n\nFor more information on scheduling a SQL Agent job, see [Schedule a Job](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/ssms/agent/schedule-a-job>).\nNote\nAzure SQL Managed Instance currently does not enable you to start a job when the CPU is idle.\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#job-notifications>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Job notifications?" }, { "from": "gpt", "value": "SQL Agent jobs enable you to get notifications when the job finishes successfully or fails. You can receive notifications via email.\nIf it isn't already enabled, first you would need to configure [the Database Mail feature](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/relational-databases/database-mail/database-mail>) on SQL Managed Instance:\nSQL Copy\n```\nGO\nEXEC sp_configure 'show advanced options', 1;\nGO\nRECONFIGURE;\nGO\nEXEC sp_configure 'Database Mail XPs', 1;\nGO\nRECONFIGURE\n\n```\n\nAs an example exercise, set up the email account that will be used to send the email notifications. Assign the account to the email profile called `AzureManagedInstance_dbmail_profile`. To send e-mail using SQL Agent jobs in SQL Managed Instance, there should be a profile that must be called `AzureManagedInstance_dbmail_profile`. Otherwise, SQL Managed Instance will be unable to send emails via SQL Agent.\nNote\nFor the mail server, we recommend you use authenticated SMTP relay services to send email. These relay services typically connect through TCP ports 25 or 587 for connections over TLS, or port 465 for SSL connections, however Database Mail can be configured to use any port. These ports require a new outbound rule in your managed instance's network security group. These services are used to maintain IP and domain reputation to minimize the possibility that external domains reject your messages or put them to the SPAM folder. Consider an authenticated SMTP relay service already in your on-premises servers. In Azure, [SendGrid](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/sendgrid.com/partners/azure/>) is one such SMTP relay service, but there are others.\nUse the following sample script to create a Database Mail account and profile, then associate them together:\nSQL Copy\n```\n-- Create a Database Mail account\nEXECUTE msdb.dbo.sysmail_add_account_sp\n @account_name = 'SQL Agent Account',\n @description = 'Mail account for Azure SQL Managed Instance SQL Agent system.',\n @email_address = '$(loginEmail)',\n @display_name = 'SQL Agent Account',\n @mailserver_name = '$(mailserver)' ,\n @username = '$(loginEmail)' ,\n @password = '$(password)';\n-- Create a Database Mail profile\nEXECUTE msdb.dbo.sysmail_add_profile_sp\n @profile_name = 'AzureManagedInstance_dbmail_profile',\n @description = 'E-mail profile used for messages sent by Managed Instance SQL Agent.';\n-- Add the account to the profile\nEXECUTE msdb.dbo.sysmail_add_profileaccount_sp\n @profile_name = 'AzureManagedInstance_dbmail_profile',\n @account_name = 'SQL Agent Account',\n @sequence_number = 1;\n\n```\n\nTest the Database Mail configuration via T-SQL using the [sp_send_db_mail](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/relational-databases/system-stored-procedures/sp-send-dbmail-transact-sql>) system stored procedure:\nSQL Copy\n```\nDECLARE @body VARCHAR(4000) = 'The email is sent from ' + @@SERVERNAME;\nEXEC msdb.dbo.sp_send_dbmail\n @profile_name = 'AzureManagedInstance_dbmail_profile',\n @recipients = 'ADD YOUR EMAIL HERE',\n @body = 'Add some text',\n @subject = 'Azure SQL Instance - test email';\n\n```\n\nYou can notify the operator that something happened with your SQL Agent jobs. An operator defines contact information for an individual responsible for the maintenance of one or more instances in SQL Managed Instance. Sometimes, operator responsibilities are assigned to one individual.\nIn systems with multiple instances in SQL Managed Instance or SQL Server, many individuals can share operator responsibilities. An operator does not contain security information, and does not define a security principal. Ideally, an operator is not an individual whose responsibilities may change, but an email distribution group.\nYou can [create operators](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/relational-databases/system-stored-procedures/sp-add-operator-transact-sql>) using SQL Server Management Studio (SSMS) or the Transact-SQL script shown in the following example:\nSQL Copy\n```\nEXEC msdb.dbo.sp_add_operator\n @name=N'AzureSQLTeam',\n @enabled=1,\n @email_address=N'[email protected]';\n\n```\n\nConfirm the email's success or failure via the [Database Mail Log](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/relational-databases/database-mail/database-mail-log-and-audits>) in SSMS.\nYou can then [modify any SQL Agent job](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/relational-databases/system-stored-procedures/sp-update-job-transact-sql>) and assign operators that will be notified via email if the job completes, fails, or succeeds using SSMS or the following T-SQL script:\nSQL Copy\n```\nEXEC msdb.dbo.sp_update_job @job_name=N'Load data using SSIS',\n @notify_level_email=3, -- Options are: 1 on succeed, 2 on failure, 3 on complete\n @notify_email_operator_name=N'AzureSQLTeam';\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#job-history>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Job history?" }, { "from": "gpt", "value": "SQL Managed Instance currently doesn't allow you to change any SQL Agent properties because they are stored in the underlying registry values. This means options for adjusting the Agent retention policy for job history records are fixed at the default of 1000 total records and max 100 history records per job.\nFor more information, see [View SQL Agent job history](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/ssms/agent/view-the-job-history>).\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#fixed-database-role-membership>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Fixed database role membership?" }, { "from": "gpt", "value": "If users linked to non-sysadmin logins are added to any of the three SQL Agent fixed database roles in the `msdb` system database, there exists an issue in which explicit EXECUTE permissions need to be granted to three system stored procedures in the `master` database. If this issue is encountered, the error message `The EXECUTE permission was denied on the object <object_name> (Microsoft SQL Server, Error: 229)` will be shown.\nOnce you add users to a SQL Agent fixed database role (SQLAgentUserRole, SQLAgentReaderRole, or SQLAgentOperatorRole) in `msdb`, for each of the user's logins added to these roles, execute the below T-SQL script to explicitly grant EXECUTE permissions to the system stored procedures listed. This example assumes that the user name and login name are the same:\nSQL Copy\n```\nUSE [master]\nGO\nCREATE USER [login_name] FOR LOGIN [login_name];\nGO\nGRANT EXECUTE ON master.dbo.xp_sqlagent_enum_jobs TO [login_name];\nGRANT EXECUTE ON master.dbo.xp_sqlagent_is_starting TO [login_name];\nGRANT EXECUTE ON master.dbo.xp_sqlagent_notify TO [login_name];\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#sql-agent-job-limitations-in-sql-managed-instance>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain SQL Agent job limitations in SQL Managed Instance?" }, { "from": "gpt", "value": "It is worth noting the differences between SQL Agent available in SQL Server and as part of SQL Managed Instance. For more on the supported feature differences between SQL Server and SQL Managed Instance, see [Azure SQL Managed Instance T-SQL differences from SQL Server](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/transact-sql-tsql-differences-sql-server?view=azuresql#sql-server-agent>).\nSome of the SQL Agent features that are available in SQL Server are not supported in SQL Managed Instance:\n * SQL Agent settings are read only.\n * The system stored procedure `sp_set_agent_properties` is not supported.\n * Enabling/disabling SQL Agent is currently not supported. SQL Agent is always running.\n * While notifications are partially supported, the following are not supported:\n * Pager is not supported.\n * NetSend is not supported.\n * Alerts are not supported.\n * Proxies are not supported.\n * Eventlog is not supported.\n * Job schedule trigger based on an idle CPU is not supported.\n * Merge replication job steps are not supported.\n * Queue Reader is not supported.\n * Analysis Services is not supported.\n * Running a script stored as a file on disk is not supported.\n * Importing external modules, such as dbatools and dbachecks, are not supported.\n * PowerShell Core is not supported.\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#learn-more>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Learn more?" }, { "from": "gpt", "value": "* [What is Azure SQL Managed Instance?](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/sql-managed-instance-paas-overview?view=azuresql>)\n * [What's new in Azure SQL Managed Instance?](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/doc-changes-updates-release-notes-whats-new?view=azuresql>)\n * [Azure SQL Managed Instance T-SQL differences from SQL Server](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/managed-instance/transact-sql-tsql-differences-sql-server?view=azuresql#sql-server-agent>)\n * [Features comparison: Azure SQL Database and Azure SQL Managed Instance](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/learn.microsoft.com/en-us/azure/azure-sql/database/features-comparison?view=azuresql>)\n\n[](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<#next-steps>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Next steps?" }, { "from": "gpt", "value": "* [Configure Database Mail](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/sql/relational-databases/database-mail/configure-database-mail>)\n * [Troubleshoot outbound SMTP connectivity problems in Azure](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Feedback?" }, { "from": "gpt", "value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/sqlfeedback>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\n[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fjob-automation-managed-instance%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain Additional resources?" }, { "from": "gpt", "value": "Events\n[ FabCon Vegas ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)\nApr 1, 4 AM - Apr 3, 4 AM\nThe ultimate SQL, Power BI, Fabric, and AI community-led event. March 31 - April 2. Use code MSCUST for a $150 discount. Prices go up Feb 11th.\n[ Register today ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/fabcon25/sqllearnt2?ocid=fabcon25_learn_sqlt2_azdata>)" } ]
[ { "from": "system", "value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation." }, { "from": "human", "value": "Can you explain In this article?" }, { "from": "gpt", "value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fmanaged-instance%2Fjob-automation-managed-instance%3Fview%3Dazuresql>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025" } ]