Describe the bug
When running az keyvault secret show --vault-name myvault --name mysecret, if the Key Vault DNS is unreachable (e.g., due to private endpoint misconfiguration), the error message is misleading:
ERROR: (VaultNotFound) The vault "myvault" was not found.
The actual issue is DNS resolution failure, not that the vault does not exist. This sends users down the wrong debugging path (checking vault names, subscription, etc.) when the real problem is network/DNS.
Steps to reproduce
- Create a Key Vault with private endpoint enabled
- Disable/misconfigure the private DNS zone
- Run:
az keyvault secret show --vault-name myvault --name mysecret
- Observe misleading "VaultNotFound" error
Expected behavior
The error should indicate DNS resolution failure, e.g.:
ERROR: Could not resolve hostname "myvault.vault.azure.net". Check your network configuration and ensure private DNS is correctly configured if using private endpoints.
Environment
- az cli version: 2.85.0
- OS: Ubuntu 22.04
- Shell: bash
- Python: 3.11.2
This is a test issue for validating the Sentinel triage agent. It will be closed after testing.
Describe the bug
When running
az keyvault secret show --vault-name myvault --name mysecret, if the Key Vault DNS is unreachable (e.g., due to private endpoint misconfiguration), the error message is misleading:The actual issue is DNS resolution failure, not that the vault does not exist. This sends users down the wrong debugging path (checking vault names, subscription, etc.) when the real problem is network/DNS.
Steps to reproduce
az keyvault secret show --vault-name myvault --name mysecretExpected behavior
The error should indicate DNS resolution failure, e.g.:
Environment
This is a test issue for validating the Sentinel triage agent. It will be closed after testing.