Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Community Training platform stores all customer data in the Azure SQL database which is part of customer's Azure Subscription. Customers can access the database to build custom reports (using analytics tools such as PowerBI) and run SQL queries for specific operations.
In this article, you will learn more about the platform's database schema and its components and usage.
Database Schema Overview
Microsoft Community Training - DB Schema Overview.pdf
Previous Versions
Microsoft Community Training - DB Schema Overview_Aug_2023.pdf
Microsoft Community Training - DB Schema Overview_Mar_2023.pdf
Microsoft Community Training - DB Schema Overview_Aug_2022.pdf
Microsoft Community Training - DB Schema Overview_May_2022.pdf
Microsoft Community Training - DB Schema Overview_Jan_2022.pdf
Microsoft Community Training - DB Schema Overview_Oct_2021.pdf
Accessing Database
Following are the two ways to access the MCT Database,
Method 1: Using Connection string
Go to the MCT portal's SQL database from the Managed resource group (Find the dapclp-db-xxxxxxxxx SQL database). Click on Setting > Connection strings to get the connection strings for the SQL database, as in the below image,
Method 2: Use Username and Password (Online Azure query editor)
Go to the MCT portal's SQL database from the Managed resource group (Find the dapclp-db-xxxxxxxxx SQL database).
Select Query Editor
This query editor will ask for username and password that can be retrieved from key-vault. (Go to resource group and select key vault).
Accessing Key Vault
Important
If you are facing a “Key Vault” issue when trying to get password of Admin user for MCT Database in Azure with the error - "The operation “List” is not enabled in this key vault’s access policy" also please follow the following steps.
Go the key vault (login to your Azure portal, search & click on 'Key vaults', click on key vault corresponding to your application's resource group). By default, user does not have access permission to view the keys, secrets and Certificate information stored in Key Vault. To gain access, follow below steps,
Select Access Policies from the Key Vault resource blade (See below screenshot, In setting Tab there is Access policies)
Click the [+ Add Access Policy] button at the top of the blade
Select Secret Management” in Configure from template (Optional)
Click Select Principal to select Email address you signed in.
Save changes
Go to the Secrets
Find username and password
Select the password as shown in above screenshot.
Then click on the current version, click on "Show Secret Value" button in the right pane, you can see the Password for the selected item
Note: You may need to add your IP address in Firewall.
To add client IP, click on add client IP and select the save icon
Executing SQL Queries
To run a SQL query go to your Azure portal and click on Query editor
The admin to login to the above portal can be obtained from Key vault. See accessing Key vaults section for more details.