Well, I'm an idiot. I went through the GUI and tried to add Office Online and it complained that it requires Sharepoint as well.
So when I updated the code to
$ServicePlans = ((Get-MsolAccountSku | Where-Object {$_.AccountSkuId -eq $LicSKU}).ServiceStatus | Select-Object ServicePlan -ExpandProperty ServicePlan).ServiceName
$EnabledPlans = 'EXCHANGE_S_STANDARD','YAMMER_ENTERPRISE', 'MCOSTANDARD', 'SHAREPOINTSTANDARD', 'SHAREPOINTWAC'
$DisabledPlans = @()
foreach($Plan in $ServicePlans) {
if($EnabledPlans -notcontains $Plan) {
$DisabledPlans += $Plan
}
}
I was able to modify the license without issues.
First we need to confirm what the issue is. You create the new account in local AD, now, this issue is:
1.There is no account in Office 365---
“this user it looks like the user was created in Active Directory First, then the AD Sync synced the account to Office 365.“ this is as expected. You could force a synchronization from AD to Azure AD PowerShell is used.
To perform a delta synchronization run:
Start-ADSyncSyncCycle -PolicyType Delta
To perform a full synchronization use:
Start-ADSyncSyncCycle -PolicyType Initial
2.There is no mailbox in Office 365---
The correct way is to enable remote mailbox for the user
Enable-remotemailbox -identity “Demo User”-remoteroutingaddress demo.user@agileit.mail.onmicrosoft.com.
The proxy address will always be @tenant.mail.onmicrosoft.com
Then assign the license.
3.There is no remote mailbox on Exchange on-premise---
If a Remote Mailbox isn’t present or has been accidentally deleted, you can create one and link it up to the Office 365 mailbox.
To do this:
From Exchange Management Shell (On Premise):
Enable-RemoteMailbox username –RemoteRoutingAddress alias@domain.mail.onmicrosoft.com
You then need to get the Mailbox GUID of the Office 365 mailbox. To do this, go into Office 365 PowerShell and run:
Get-Mailbox –Identity emailaddress | fl Identity,ExchangeGUID
Copy the Mailbox GUID into your clipboard and go back to the Exchange Management Shell (On Premise):
Set-RemoteMailbox username –ExchangeGUID 8e992097-24c1-432c-8a89-98e3c7a7d283
refence:
"MigrationPermanentException: Cannot find a recipient that has mailbox GUID " error message when you try to move a mailbox in an Exchange hybrid deployment
https://support.microsoft.com/en-us/help/2956029/migrationpermanentexception-cannot-find-a-recipient-that-has-mailbox-g>
Best Answer
Part of the Office 365 experience is when you buy the suites they are meant to be integrated and work together with very little if any input from admins or users.
Skype for Business shares some things with Outlook and looks for Exchange for certain functions.