Question: how to find active directory domain guid?
Answer: The "proper" way to find your Azure AD Tenant domain GUID is by going to the Azure AD admin centre and clicking on the "Azure Active Directory" link and going to Properties. The Directory ID is your GUID and you can copy it straight from there.