Data collection can be run from any client with access to Azure AD. For hybrid components (AD FS, AAD Connect, etc.), it is recommended to run the collection locally on those specific servers.
Prerequisites
Ensure you have the following credentials:
- Azure Active Directory: Global Administrator or Global Reader.
- Hybrid Components (AD FS, Azure AD Proxy, AAD Connect): Domain or local administrator access.
Execution Steps
- Authenticate: Use
Connect-AADAssessment with the ClientId of the app created in Entra ID. - Collect Data: Run
Invoke-AADAssessmentDataCollection to produce an output package.
If the command fails before completion, retry using the -SkipReportOutput parameter.
To specify a custom output directory, use the -OutputDirectory parameter.
Output Format: The package is named AzureADAssessmentData-<TenantDomain>.aad.
## Authenticate
Connect-AADAssessment -ClientId "AppId of app created in the previous step"
## Export data
Invoke-AADAssessmentDataCollection
## Retry if failed
Invoke-AADAssessmentDataCollection -SkipReportOutput
## Custom directory
Invoke-AADAssessmentDataCollection "C:\Temp"