It is often useful to get the TenantID of an Azure subscription.
The easiest way to the Azure tenant ID is to go in the properties of the Azure AD. You can use the this direct link : https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Properties
In this page, you will find the Tenant ID.
For other useful scripts/tips, I recommend you to read this.