Use -exclude-secrets flag: aztfexport has an option to exclude secrets from the exported Terraform configuration. By default, it includes all the data in the exported files. To automatically exclude secrets, use the -exclude-secrets flag when running the tool.
Example command:
aztfexport -subscriptionId -exclude-secrets -outputDirectory ./output