Hi,
Sure. Basic example code to get you started below:
Get-AzWebApp|Select-Object -Property Name,DefaultHostName|Export-Csv -Path .\WebApps.csv -NoTypeInformation
NOTE: above will include Function Apps, API Apps, and other apps that are part of app service platform in addition to Web Apps.
You need to decide which precise properties you want to export to CSV file. Depending on the property, it may be as simple as adding it to the comma-separated list in the above command. "DefaultHostName" above is <hostname>.azurewebsites.net, which might not be what you need. Below are list of properties to choose from:
If you test and are having trouble getting a specific property you need to show up in the file add a comment and I will help with required code change(s).
If the above is helpful please click Accept Answer.
Thanks.
-TP