What are these Office 365 URLs about?

Admin Portal Home: https://portal.office.com/adminportal/home

Under that, the different Admin Centers’ URL naming convention is in a quite mess.

Exchange is https://outlook.office365.com/ecp/?rfr=Admin_o365&exsvurl=1&mkt=en-US&Realm=yourcompanyname.onmicrosoft.com

Skype for Business is https://adminca1.online.lync.com/lscp/?language=en-US&tenantID=yourtenaneid

SharePoint is https://yourcompanyname-admin.sharepoint.com/

Under SharePoint, there is an OneDrive document repository for every user: https://yourcompanyname-my.sharepoint.com, it actually resolves to https://yourcompanyname-my.sharepoint.com/personal/yourname_yourcompanyname_onmicrosoft_com/_layouts/15/onedrive.aspx. Other than that, there are sites and teams, and the new stuff – groups.

Default site collection: https://yourcompanyname.sharepoint.com/

Video Portal: https://yourcompanyname.sharepoint.com/portals/hub

Community: https://yourcompanyname.sharepoint.com/portals/community

Search: https://yourcompanyname.sharepoint.com/search

Compliance Policy Center: https://yourcompanyname.sharepoint.com/sites/CompliancePolicyCenter

OneDrive is https://admin.onedrive.com/

PowerApps is https://admin.powerapps.com/

Flow is https://admin.flow.microsoft.com/

Security & Compliance is https://protection.office.com/

Azure AD is https://go.microsoft.com/fwlink/?linkid=849449



PowerShell for Azure Active Directory (AAD) and Office 365

Well, this is just some notes on how to prepare PowerShell to manage Azure Active Directory and Office 365. But similar to connecting to AD in Azure, you also need to go through these steps to connect PowerShell to an Azure subscription.

This is quite interesting actually when I put them together. As AAD still has two active environment versions, same as Azure console – Classic and RM – they belong to different logins, a little confusing to admins. Also PowerShell modules need to be installed and updated to enable different cmdlets set in order to manage different products – cloud, non-cloud, 3rd-parties like AWS, etc. So when something is not working, maybe you are in a wrong dimension or Microsoft wants you to update the binary you are using.

Azure Subscription AAD Module v1 (MSOnline)
– General Availability version
– Public Preview version
AzureAD v2
– General Availability version
– Public Preview version
– Install lastest Azure Tools using Web Platform Installer
> Add-AzureAccount
> Get-AzurePublishSettingsFile
> Import-AzurePublishSettingsFile
> Select-AzureSubscription
MS Online Services Sign-in Assistant
Windows AAD Module for Windows PowerShell
Step 1: Install Azure PowerShell
Install-Module AzureRM
Download and install Azure AD Connect (.msi)
Update AAD Module > 1.0.8070.2
Download from PS Gallery
Install AAD Module
Update AAD Module
Step 2: Connect to an Azure account
Connect to Azure AD

$Msolcred = Get-credential
Connect-MsolService -Credential $MsolCred

Connect to AAD

$AzureAdCred = Get-Credential
Connect-AzureAD -Credential $AzureAdCred

Step 3: Run Azure PowerShell cmdlets

v1 cmdlets are here v2 are here
More information: PowerShell Gallery Office 365 PowerShell

One more thing: remember to check the update time of anything posted online, those older than 3 months might be useless.