Enabling User for Enterprise Voice in Office 365

Step 1 - Connect to Office 365


Import-Module SkypeOnlineConnector
$Credential = Get-Credential
$Session = New-CsOnlineSession -Credential $Credential
Import-PSSession -Session $session -AllowClobber

Step 2 - Check user is homed in SFBO


Get-CsOnlineUser -Identity "adelev@directrouting.guide" | fl RegistrarPool

Step 3 - Enable Enterprise Voice


Set-CsUser -Identity "adelev@directrouting.guide" -OnPremLineURI tel:+61770101001 -EnterpriseVoiceEnabled $true -HostedVoiceMail $true

Step 4 - Grant voice policy


Grant-CsOnlineVoiceRoutingPolicy -Identity "adelev@directrouting.guide" -PolicyName "Australia"