You need an user with admin privileges on the subscription.
Multi-Factor Authentication it is not supported.
Copy the next source and paste in Microsoft PowerShell console
#Write your file Path
$path = "C:\...\filename.profile"
Save-AzureRmProfile -Path $path
Open Microsoft PowerShell version 4 or 5. Paste and execute the source
The collected data will contain only the structure of your resources and not the contents or data inside the VMs or other resources.
The password provided is used only for data collection, kept securely during the process, and deleted immediately when finished.
Both credentials and captured data will be used only for the purpose of the capture, analyzing your environment.