Import Azure resources into state and generate terraform config file into JSON format with help of Terraform and Azure devops

Export the entire Tenant wide Azure State to generate a TF config file using aztfexport and run using Azure Pipeline so that we can trigger export whenever required. Can anybody help me with the same?