I have a custom content type called "Project" that inherits from the Document Set content type, that is created from the Content Type Hub (CTH) in SharePoint Online. This "Project" CT has two additional columns being: Project Name and Project Location.
I have a custom provisioning process for specific types of sites using the PnP Provisioning Engine and Azure run-books that creates the site and adds the "Project" content type. After the Site is created, the CTH timer job runs and eventually updates the "Project" content type I created to include the "project name" and "project location" fields.
Currently the only when I can check when the timer job is complete is to check the UI. Basically I open the newly created site every so often and try and create a new "Project" content type and see that columns from the CTH have come across.
Does anyone know if there is a way via PowerShell/C#/programmatically to poll a newly created Site and check when my content type has been updated by the CTH timer sync job?