O365 number in “Failed” status / AssignmentFailed

Obtaining numbers in Office365 is pretty straight-forward. Just go to the Skype for Business Admin Portal, navigate to Voice -> Phone Numbers and click on the big plus sign:

Now, aside the licensing pre-requisites I was talking about here, you will also have to have setup Emergency Locations.

I am not going to go through what are Emergency Locations since are very well explain at docs.microsoft, however, note that:

  • In the US, an Emergency Location is required when assigning a phone number to a user.
  • In EMEA, an Emergency Location is required when acquiring the phone number from the portal or porting the number to Microsoft.

Also, I would like to emphasize on the Emergency Calling Terms and Conditions and to be more specific, Admins should communicate to all users with Calling Plans in Office 365 that although Calling Plans can be used anywhere in the world where an Internet connection is available, users should not make an Emergency Services call from a location outside their home country/region because the call likely will not be routed to the appropriate call center in that country/region.

Moving forward with acquiring phone numbers, it is very important to understand that in order to successfully activate a phone number in Office365, the address setup in the Emergency Location which you will use to acquire the number, must match the phone number’s area code.

For example, I can successfully create an Emergency Location for Barcelona and then use it to acquire a Madrid phone number, however, after the number being stuck in “Provisioning” state for a while, it will then fail to activate, changing its status to “Failed”:

 

Doing a quick lookup in powershell for phone numbers which are not in Active state, will lead us straight to our broken phone number:

Now if indeed you have a wrong Emergency Address set on this number and you would like to change it, please note that:

  • You can use the “Change” button for the Emergency address
  • You must also grant this number to a user, otherwise it will not allow you to Save your settings
  • Once you Activate your number with an Emergency Location, you can no longer change it by yourself. If indeed you have activated a number with a specific Emergency Location and you need to change it, then you must get in contact with ptneu[at]Microsoft.com

Doing another query in PowerShell, i can now see the number changed its ActivationState from Assignment Failed, to Assignment Pending, and moreover, it is also displaying my tenantID along with the ObjectID of the user to whom i’ve assigned it:

Fast forward through the night and querying the number again, I can see it both in the portal and PowerShell that now is activated:

 

Sabin.

User and Service numbers

In Office365, you can get two types of numbers: User numbers and Service number. Well, if the naming isn’t explanatory enough for you, I’ll elaborate this subject below. 

While User numbers can only be assigned to user accounts (you@yourdomain.tld), Service number cannot be assigned to users, but to services like: Auto Attendant, Call Queues or Conferencing Bridges. 

Aside the purpose, there are also capacity differences between these numbers. While User numbers can only handle a few simultaneous calls, Service numbers can handle hundreds of calls simultaneously. 

To get a better picture on Service number, imagine you call your mobile phone Carrier and you hit the Interactive Voice Response. Next to you, most likely other users are dialing that very same number and wonder around the IVR, so that Service number better be ready to handle a lot of Simultaneous calls. 

A little more info on: 

User numbers: 

Available for: 

  • Belgium 
  • Canada 
  • France 
  • Germany 
  • Ireland 
  • Netherlands 
  • Spain 
  • United kingdom 
  • US & Puerto Rico 

 Pre-requisites: 

SfBOnline/Microsoft Teams license + Phone System + Domestic/International Calling + Communication Credits (optional). 

 Please note that if you go with “E-packs”, E5 already includes SfBOnline, Microsoft Teams and Phone System licenses, so you’ll only have to get Domestic or International Calling license and optionally Communication Credits (get it if you plan to dial destinations where included minutes don’t permit calling). 

 Regarding how many numbers you can acquire, you should know that it depends on the number of licenses you have. The formula is: 

Domestic and/or International Calling license * 1.1 + 10 

 So, if you have 5 Domestic Calling licenses and 5 international Calling ones, you can get: 

10*1.1+10=21 

 Getting the numbers: 

At the time of writing this one, numbers are still to be acquired from the “old” Skype for Business Admin Center -> Voice -> Phone numbers. 

!note that you will only be able to get phone numbers for the countries where Domestic/International Calling is available: 

 

 

!note 2: For some countries like Belgium and Germany, you cannot purchase the numbers directly from the portal, so you’ll have to submit a number request to ptneu[at]microsoft.com. 

For this, access first this link and select the Country or region to find the appropriate number request. 

!note 3: Phone number in this scenario can only be granted to users via the GUI. 

In powershell, the online-acquired phone number is visible under the LineUri attribute if doing a get-csonlineuser. However, setting value to the LineUri attribute via set-csuser -identity “your user” -LineUri tel:+44xxx, will throw the following error message:
Unable to set “LineURI”. This parameter is restricted within Remote Tenant PowerShell. 

+ CategoryInfo          : InvalidArgument: (:) [Set-CsUser], ManagementException 

+ FullyQualifiedErrorId : LineURI,Microsoft.Rtc.Management.AD.Cmdlets.SetOcsUserCmdlet 

Be advised that a similar attribute holding phone value (OnPremLineUri) can be granted value via the set-csuser cmdlet, however, you should not do that for online-acquired numbers. 

The OnPremLineUri attribute will be setup with a phone number only in Hybrid-Voice scenarios, but that is a different discussion. 

!note 4: Getting Phone numbers also requires setting up an Emergency Location. Stay around for an article regarding this topic

The conclusion is: Online-acquired numbers should and will be granted to users only via the Skype for Business Online Admin Center. 

 

Service numbers: 

As I was writing at the beginning, Service numbers can handle a high number of incoming calls simultaneously and are assigned to services like: Auto Attendants, Call Queues or Conferencing Bridge.

We should note that Service numbers can also be:

  • Regular numbers
  • Toll-free numbers

Toll-free numbers are numbers which can be dialed locally at zero cost for the caller. However, since someone actually has to pay for the call, you will need Communication Credits setup and you will be charged for each incoming call.

To get an idea on the costs, visit Microsoft’s voice calling page, scroll down to “See rates for where you want to call” and select your country and currency. You will download a nice Excel which displays rates for both incoming (to toll-free service numbers) and outgoing calls. Don’t worry, incoming calls to user numbers or regular service numbers are not charged.

Available for:

Service numbers are available to acquire for quite alot of countries as you can see in the screenshot below:

However, to make sure Service numbers (regular or toll-free) are available for the country where you want to get them, visit Microsoft’s “Country and region availability for Audio Conferencing and Calling Plans” page and select from the drop-down menu the country:

As you can see, in Romania I cannot get Calling Plans (Domestic/International Calling), so no User numbers for me, but I can get instead Service numbers, both regular and Toll-free. Moreover, I can also get Communication Credits to cover the expenses if I go for a toll-free number:

Pre-requisites: 

In order to be able to acquire Service numbers, you have to have Phone System and/or Audio Conferencing licenses added to your tenant, and of course, if you wish to get toll-free numbers, then Communication Credits need to be added as well.

Regarding the number of Service numbers you can get, the math is simpler here:

Tenants with:

  • 1 – 25 licenses can get 5 Service numbers
  • 26 – 49 licenses can get 10 Service numbers
  • 50 – 99 licenses can get 20 Service numbers

The list goes up to 1500 service numbers, so if you wanna see exactly where your organization is positioning, have a look here.

Sabin