Allowing active directory login to Azure China Cloud

Moved resource ID out of constants - it's not constant anymore.
Test fixes
Merge pull request #1212 from christav/mooncake-ad-fix

Enable Active Directory login to Azure China