User Manual — Back to User Manual
When using Azure-based service discovery providers in DocumentDB for VS Code, you have access to shared features for managing your Azure credentials and filtering which resources are displayed. These features are consistent across all Azure service discovery providers:
For a general overview of service discovery, see the Service Discovery documentation.
The Manage Credentials feature allows you to view and manage which Azure accounts are being used for service discovery within the extension.
You can access the credential management feature in two ways:
Manage Credentials...key icon next to the service discovery provider nameWhen you open the credential management wizard, you can:
┌────────────────────────────────────────────┐
│ Azure accounts used for service discovery │
├────────────────────────────────────────────┤
│ 👤 user1@contoso.com │
│ 👤 user2@fabrikam.com │
├────────────────────────────────────────────┤
│ 🔐 Sign in with a different account… │
│ ✖️ Exit without making changes │
└────────────────────────────────────────────┘
The credential management wizard does not provide a sign-out option. If you need to sign out from an Azure account:
⚠️ Important: Signing out from an Azure account in VS Code will sign you out globally across VS Code, not just from the DocumentDB for VS Code extension. This may affect other extensions that use the same Azure account.
The Filter feature allows you to control which Azure resources are displayed in the Service Discovery panel by selecting specific tenants and subscriptions.
You can access the filtering feature by clicking the funnel icon next to the service discovery provider name in the Service Discovery panel.
The filtering wizard guides you through selecting which Azure resources to display:
If you have access to only one Azure tenant, the wizard will skip tenant selection and proceed directly to subscription filtering:
┌────────────────────────────────────────────┐
│ Select subscriptions to include in │
│ service discovery │
├────────────────────────────────────────────┤
│ ☑️ Production Subscription │
│ (sub-id-123) (Contoso) │
│ ☑️ Development Subscription │
│ (sub-id-456) (Contoso) │
│ ☐ Test Subscription │
│ (sub-id-789) (Contoso) │
└────────────────────────────────────────────┘
If you have access to multiple Azure tenants, the wizard will first ask you to select tenants, then filter subscriptions based on your tenant selection:
Step 1: Select Tenants
┌────────────────────────────────────────────┐
│ Select tenants to include in subscription │
│ discovery │
├────────────────────────────────────────────┤
│ ☑️ Contoso │
│ (tenant-id-123) contoso.onmicrosoft.com │
│ ☑️ Fabrikam │
│ (tenant-id-456) fabrikam.onmicrosoft.com │
│ ☐ Adventure Works │
│ (tenant-id-789) adventureworks.com │
└────────────────────────────────────────────┘
Step 2: Select Subscriptions (filtered by selected tenants)
┌────────────────────────────────────────────┐
│ Select subscriptions to include in │
│ service discovery │
├────────────────────────────────────────────┤
│ ☑️ Contoso Production │
│ (sub-id-123) (Contoso) │
│ ☑️ Contoso Development │
│ (sub-id-456) (Contoso) │
│ ☑️ Fabrikam Production │
│ (sub-id-789) (Fabrikam) │
└────────────────────────────────────────────┘
Your filtering selections are automatically saved and persisted across VS Code sessions. When you reopen the filtering wizard, your previous selections will be pre-selected, making it easy to adjust your filters incrementally.
The filtering behavior differs depending on how you access service discovery:
When working within the Service Discovery panel in the sidebar:
When adding a new connection via the “Add New Connection” wizard: