LogoLogo
Partner Portal Login
  • Welcome
  • Getting Started
    • Becoming A Partner
    • Getting Support
      • Community Services
        • SMTP Servers
        • DNS Servers
      • Service Status and Incidents
        • Status Page
        • nbn Incident Notifications
    • Accounts & Billing
      • Billing Overview
      • How to pay
  • Services
    • Connectivity
      • nbn TC4
        • Getting Started
        • Troubleshooting
          • nbn Self-Diagnostic Tool
        • Technical References
          • nbn TC4 Sevice Classes
          • nbn TC4 AVC-ID
      • nbn Enterprise Ethernet
        • Getting Started
      • Internet Services
        • IP Geolocation
        • Troubleshooting
          • Advanced Troubleshooting
            • nbn Enterprise Ethernet
            • Telstra Ethernet Access and AAPT Fibre
            • nbn TC4 Connectivity
              • FTTP (Fibre to the Premise)
              • FTTN/B (Fibre to the Node/Basement) or VDSL2
              • FTTC (Fibre to the Curb)
              • HFC (Hybrid Fibre Coaxial)
              • Wireless
          • Logging a fault for your WAN Service
          • WAN Diagnostic Tool
          • WAN Monitoring
        • Technical Reference
          • What is CGNAT and How does it work?
          • Ethernet Service Shaping Requirements
          • Router configuration for Telstra 4G/5G services
      • SD-WAN
        • Getting Started
          • How to login to Antares V2 Portal
          • Getting Familiar with Antares Portal
      • Requesting co-managed router access
    • Voice over IP (VoIP)
      • Best Practices to Protect You from Toll Fraud
      • Best Practice Guidelines
      • Inbound Numbering System
        • How to access the Inbound Numbering System?
        • Creating a new user
        • Diverting a 1300/1800 number
        • Moving a DID between services
        • Creating a basic IVR
      • Grandstream Device Management System (GDMS)
        • How to login to the GDMS platform
        • How to run diagnostic tests within the GDMS
        • How to add a site and move a VoIP Device into it
        • How do I add/remove users from the GDMS Portal?
      • 3CX Guides
        • How to configure our CTS Trunk on 3CX
        • Resolving Call Quality issues on 3CX deployments
        • How to configure a SIP Trunk on 3CX
        • Changes to default 3CX Headers
      • Microsoft Teams Direct Routing
        • Getting Support for Microsoft Direct Routing
        • Configuration Guide
        • Troubleshooting Call Routing
        • Unable to Dial Internationally from Teams
        • Creating a resource account and assigning a Direct Routing DID
        • "Call cannot be connected" error with Auto-Attendants and Queues
        • Creating Dial Plans to Prefix Outbound Calls
      • Brand Specific Guides
        • NetComm Router/ATA
          • How to register VOIPnow extension to NetComm device (NL1901ACV)
        • Cisco
          • SPA112 - Fax Settings
        • Grandstream
          • How to enable TLS encryption on Grandstream phone
          • Upgrading the firmware on Grandsteam phones
          • Setting up voicemail on the DP720 (Cordless Handset)
          • How to setup a VoIP Account on a Grandstream phone
          • Grandstream GXP2140 Voicemail
          • Setting up Monitored Call Parking
      • General
        • Getting Started with your VoIP Reseller Account
        • How much bandwidth do I need for VoIP?
      • VoIP Troubleshooting
        • VoIP Troubleshooting Guide
        • VoIP Fault Guide
        • SIP ALG and turning it off
        • Emails from VoIPNow going to SPAM
      • Number Porting
        • Can I port my existing phone numbers over?
        • How do I port numbers over to Hosted Network?
        • Reasons for Number Port Rejection
      • VoIPNow Guides
        • How to activate call recording in VOIPnow
        • Configuring Charging Plans to add margin to outbound calls
        • Configuring Charging Plans to add margin to 13/1300/1800 Inbound calls
        • What is a valid Caller ID?
        • How can I make Anonymous Calls?
        • Getting a breakdown on the resources for an Organization
        • Configuring Fax to Email
        • VoIP Bundle Creation & Implementation
        • Uploading Sound files to VoIPNow
        • How does Call Parking work on VoIPNow?
        • Transferring Calls Waiting in Queues
        • How to setup a Queue (Hunt Group)
        • How to find a list of all the numbers assigned to your Service Provider account
        • How to do a context jump based on the incoming Called DID
        • How to change Music on Hold for an extension
        • Creating and updating a time interval
        • How to apply a time interval to an Incoming Call Rule
        • How to add an Incoming Caller ID Prefix with an IVR
        • Applying sound files to an IVR
        • How to configure an IVR to transfer to an external number
        • How to enable International Call barring on Organizations and Users
        • List of the common issues submitted by the partners
        • How to Configure BLF on Virtual Multi-Purpose Key
        • How to configure Intercom/Paging
        • How to configure TLS and SRTP on VOIPnow and Grandstream Phones
        • How to give end customer an access to VOIPnow to view/manage the CDR and Call recordings
      • SIP Trunk Requirements: Ports, Protocols, and Codecs
    • Cloud
      • Infrastructure as a Service
        • Getting Started
          • How to login to vCloud Director
          • vCloud Resource Allocation
        • Virtual Machines & vApps
          • Creating a new Virtual Machine
          • What is a vApp and how to create one?
          • Mounting an ISO to a VM
          • Accessing the VM console
          • Using VM snapshots
          • Converting a VM to a Template
        • Backup and Restorations
          • Accessing Veeam Self Service Backup Portal
          • Creating a Backup Job
          • Enabling Application-Aware Processing in Veeam Self-Service Portal
          • Setting up Guest Processing
          • How to start a File Level Restore
          • How to carry out a full VM restore
          • Archived: Restoring a VM or guest files
        • Networking
          • Routed, Isolated and Direct networks in vCloud
          • How to create/delete a vApp network
          • How to create/delete a new Organization level network
        • Administrative Tasks
          • Creating Users
          • What is a 'Catalog' and how to create one
          • Uploading ISO files or OVA/OVF templates
          • Setting up Azure AD SAML based authentication for vCloud
          • Microsoft Software Licensing
          • Activating Windows Servers
          • Checking and Decreasing IaaS resources
      • Backup as a Service
        • Tenant Management via VSPC
          • VSPC Overview
          • Creating Companies
          • Adjusting tenant storage allocation
        • Configuration with Veeam B&R
          • Getting Started
          • Configuring Backup Jobs
          • Configuring Backup Copy Jobs
            • Seeding Backup Copies
        • Configuration of Veeam Agents via VSPC
          • Getting Started
          • Installing Agents
          • Using backup policies
      • Disaster Recovery as a Service
        • Getting Started
        • Configuring Replication Jobs
        • Seeding Replicas
        • Failover
          • Partial Failover
          • Full Site Failover
          • Accessing replica VMs
  • Partner Portal
    • General
      • Manage Contacts
      • How to cancel services in the Partner Portal
    • Rebilling System
      • End Customers Management
        • Services
        • Recurring and Once-Off Charges
      • Charging Plans
      • Rebilling Configuration
        • Integrations
        • Integration Errors
        • Email Settings
        • Product Settings
        • Bank Account
        • Invoice Details
    • Service Qualifications
      • How perform a WAN Service Qualification
      • WAN Service Qualifications Drafts
      • WAN Service Qualification History
      • FTTP Upgrade
    • Security
      • Multi-Factor Authentication
      • Microsoft Single Sign-On (SSO)
      • Account Permissions
Powered by GitBook
On this page
  • Prerequisites
  • Connecting to the Cloud Services
  • Creating the resource account/s & Assigning DIDs
  • 1 - Create the Resource Account
  • Assigning DIDs to Resource Accounts
  1. Services
  2. Voice over IP (VoIP)
  3. Microsoft Teams Direct Routing

Creating a resource account and assigning a Direct Routing DID

This guide runs through how to create a resource account and assign a Teams Direct Routing DID to the account for use as a Queue or IVR.

PreviousUnable to Dial Internationally from TeamsNext"Call cannot be connected" error with Auto-Attendants and Queues

Last updated 4 years ago

Due to Teams Direct Routing being a fairly new product theres a few items that still have to be configured via PowerShell. By default Microsoft doesn't allow you to assign a DID from a Direct Routing trunk to a Resource account for use with a Queue or IVR configuration.

You can get around this limitation by using the "Skype For Business" and "AzureAD" (MSOnline) PowerShell plugins.

Prerequisites

You will need to install some modules into PowerShell before you begin. You may already have these modules, if you have them installed already it will notify you.

  1. Install the "Skype for Business PowerShell plugin" -

  2. Install the Microsoft Teams Module - Install-Module MicrosoftTeams

  3. Run this command to get the "AzureAD" plugin - Install-Module MSOnline

Microsoft have discontinued the use of the Skype for Business Powershell plugin, you will need to install the new Teams module instead

Connecting to the Cloud Services

To create the resource account we will need to connect to Skype for Business and AzureAD modules so we can run the commands we need. It will make you login twice as we will be connecting to two different services for Microsoft Teams.

Connect to Microsoft Teams with the below commands, when connecting you will be prompted for the Teams Admin credentials. Any user with Admin access should be able to login.

Import-Module MicrosoftTeams
Connect-MicrosoftTeams

Import the MSOnline module and connect to AzureAD with the below command

Import-Module MSOnline
Connect-MsolService

To verify you are connected successfully you can run the below commands, they should return user information for you

Get-CSOnlineUser | select DisplayName ## Skype for Business Command
Get-MsolUser ## AzureAD Command

Creating the resource account/s & Assigning DIDs

Now that we are connected we can proceed with creating the resource accounts, some functions can take a few moments to sync with Microsoft's servers once they're run so if you encounter not found errors try again after a few minutes.

1 - Create the Resource Account

Run the below commads within the PowerShell window, change the application ID to suit one of the two below (depending on what you want to deploy). Adding these application ID's is the same as pressing "AutoAttendant" or "Call Queue" in the Admin Panel.

Auto-Attendant ID - ce933385-9390-45d1-9512-c8d228074e07 Call Queue ID - 11cd3e2e-fccb-42ad-ad00-878b93575e07

You will need to modify the below command with some information specific to your deployment, anything surrounded by "<" and ">" will need to be changed

New-CsOnlineApplicationInstance -UserPrincipalName <resource_emailaddress> -ApplicationId “<type_id>” -DisplayName "<resource_displayname>"

## Here is an example of a Call Queue account
New-CsOnlineApplicationInstance -UserPrincipalName callqueue@contoso.com -ApplicationId “11cd3e2e-fccb-42ad-ad00-878b93575e07” -DisplayName "Resource Account - Call Queue 1"

Once that is created we need to assign a location to the account.

Set-MsolUser -UserPrincipalName "<resource_emailaddress>" -UsageLocation AU

## EXAMPLE
Set-MsolUser -UserPrincipalName "callqueue@contoso.com" -UsageLocation AU

You will then need to assign a licence to it, you can find what licences you have with the below command. You can also assign a "Phone System - Virtual User" licence if you have them.

## Use this to get your licence type/s
Get-MsolAccountSku

## Grab the value in the "AccountSkuID" column and run the below command
Set-MsolUserLicense -UserPrincipalName <resource_emailaddress> -AddLicenses "<accountSkuId>"

## EXAMPLE
Set-MsolUserLicense -UserPrincipalName callqueue@contoso.com -AddLicenses "reseller-account:ENTERPRISEPREMIUM"

Assigning DIDs to Resource Accounts

Once you have created your Resource Account, assigned it a location and given it a licence you can then assign a DID to the account.

## Ensure the DID isn't in use anywhere else, if it is you will get an error
## as it cannot exist twice

Set-CsOnlineApplicationInstance -Identity "<resource_emailaddress>" -OnPremPhoneNumber +61<fnn>

## EXAMPLE
Set-CsOnlineApplicationInstance -Identity "callqueue@contoso.com" -OnPremPhoneNumber +61289998000 

Once that command completes successfully you should be able to login to the Teams admin panel, navigate to Org-Wide Settings >> Resource Accounts and in the table that appears you should see the DID you just assigned.

You can now assign this Resource account to either a Auto-Attendant or a Call Queue (depending on the Application ID you selected)

https://www.microsoft.com/en-au/download/details.aspx?id=39366