Here's the official Microsoft link.
Note: If Microsoft Edge or Chrome mislabels the .diagcab file as PUA/malware, choose to keep it by tapping … in the bottom bar, choosing Keep, and then choosing Keep anyway in the dialog that appears. See this screenshot.