Azure B2C统计数据消失?如何恢复及获取更详细统计?
Hey KaraZL, let's work through getting your Azure stats back and accessing more detailed data—here's what you can try:
恢复注册用户数量等统计功能
Start with these troubleshooting steps to get the basic stats showing again:
- Verify your RBAC permissions: Make sure you have a role like Contributor, Owner, or Monitoring Reader assigned to the relevant Azure resource. You can check this by going to your resource's page → Access control (IAM) → View my access. If permissions are missing, ask your admin to grant you the right role.
- Check Azure Service Health: Temporary service outages can break stats display. Head to the Service Health panel (found in the left navigation bar of the Azure Portal) to see if there are active issues with the service you're using (e.g., Azure AD, App Service, AD B2C). If there's an outage, you'll just need to wait for Microsoft's engineering team to resolve it.
- Clear portal/browser cache: Sometimes cached data causes loading glitches. Try clearing your browser cache, opening the portal in incognito mode, or switching to a different browser. You can also reset the Azure Portal itself by clicking your profile icon in the top-right → Reset portal.
- Enable diagnostic settings (if required): For some services like AD B2C, basic stats depend on diagnostic logs being enabled. Go to your resource page → Diagnostic settings → Ensure you've selected the relevant log categories (e.g., AuditLogs, SignInLogs) and configured a storage account or Log Analytics workspace to store them. Without this, the stats panel might stay empty.
获取更详细的统计数据
Once basic stats are working, here's how to dig deeper:
- Use Azure Monitor Log Analytics: This is your go-to for custom, detailed queries. For example, if you want to track daily user registrations in Azure AD B2C, you can run a query like this:
You can tweak this to filter by user attributes, geographic location, or registration method, then visualize the results as charts or tables.AuditLogs | where OperationName == "User created" | summarize DailyRegistrations = count() by bin(TimeGenerated, 1d) | sort by TimeGenerated asc - Leverage service-specific analytics panels:
- For Azure AD: Head to Azure AD Reports → Usage & insights to access pre-built reports on registration trends, user login patterns, and application usage.
- For App Service with Application Insights: Open the Application Insights resource linked to your app, then explore the Users and Sessions tabs for detailed behavior data like user retention, session duration, and feature usage.
- Export data for advanced analysis: If you need to combine Azure stats with other datasets, export your Monitor logs to Power BI to build interactive dashboards, or export to Azure Blob Storage to analyze with tools like Apache Spark or Excel.
内容的提问来源于stack exchange,提问作者KaraZL
相关产品推荐
相关产品推荐

