Skip to content

Commit fbb3172

Browse files
Enhance troubleshooting for Azure SQL Server issues
1 parent 1f6d0fa commit fbb3172

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docs/TroubleShootingSteps.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,5 +491,45 @@ For more details, refer to [Azure Storage redundancy documentation](https://lear
491491
492492
</details>
493493
494+
<details>
495+
<summary><b>SubscriptionDoesNotHaveServer</b></summary>
496+
497+
- This issue happens when you try to reference an **Azure SQL Server** (`Microsoft.Sql/servers`) that does not exist in the selected subscription.
498+
- It can occur if:
499+
- The SQL server name is typed incorrectly.
500+
- The SQL server was **deleted** but is still being referenced.
501+
- You are working in the **wrong subscription context**.
502+
- The server exists in a **different subscription/tenant** where you don’t have access.
503+
504+
**Reproduce:**
505+
1. Run an Azure CLI command with a non-existent server name:
506+
```bash
507+
az sql db list --server sql-doesnotexist --resource-group myResourceGroup
508+
```
509+
510+
or
511+
512+
```bash
513+
az sql server show --name sql-caqfrhxr4i3hyj --resource-group myResourceGroup
514+
515+
```
516+
517+
Resolution:
518+
519+
Verify the SQL Server name exists in your subscription:
520+
521+
```bash
522+
az sql server list --output table
523+
```
524+
Make sure you are targeting the correct subscription:
525+
526+
```bash
527+
az account show
528+
az account set --subscription <subscription-id>
529+
```
530+
If the server was deleted, either restore it (if possible) or update references to use a valid existing server.
531+
532+
</details>
533+
494534
💡 Note: If you encounter any other issues, you can refer to the [Common Deployment Errors](https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/common-deployment-errors) documentation.
495535
If the problem persists, you can also raise an bug in our [MACAE Github Issues](https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator/issues) for further support.

0 commit comments

Comments
 (0)