A client's director of technology was updating their disaster recovery plan and sent three questions about the company's main toll-free number, which runs through a Teams auto attendant:
- Who administers it, and who can change its greeting?
- Can we have an outage greeting ready ahead of time, and what does switching it on involve?
- If Microsoft 365 goes down, does the number go down with it?
All three sound like five-minute answers. None of them should be answered from memory, because each one depends on how this tenant is set up.
01Check before you answer
Two read-only lookups changed what we told the client.
Who can change it. The auto attendant listed two authorized users. Both had left the company. That looks like a problem, but neither had a voice applications policy assigned, and the tenant only had the Global and Tag:Default policies, with every permission set to False. So in practice the listed users couldn't change anything, and nobody on the client side could either.
Being listed as an authorized user means nothing on its own. The TeamsVoiceApplicationsPolicy is what grants the permissions.
What the number actually is. The number type decides the whole failover answer, so look it up rather than assume it:
# Which resource account and number sit behind the auto attendant (Get-CsAutoAttendant -Identity <aa-id>).ApplicationInstances | % { Get-CsOnlineApplicationInstance -Identity $_ | Select DisplayName, PhoneNumber } # CallingPlan, OperatorConnect or DirectRouting? Get-CsPhoneNumberAssignment -TelephoneNumber <+1888...> | Select TelephoneNumber, NumberType, PstnPartnerName, ActivationState
It came back CallingPlan, with Microsoft as the partner.
02The outage greeting: a holiday dated in the past
Teams has no outage switch, so we built one out of holiday call handling.
Holiday call handling takes priority over business hours whenever a holiday's date range covers the current time. That's the whole mechanism.
So the switch is a holiday called Outage, dated to a day that has already passed. It's linked to its own call flow, which plays the outage greeting and then sends the caller to a shared voicemail. Because the date is in the past, it never triggers. To turn it on, you move the date range to now. To turn it off, you move it back. It takes effect in minutes, and the normal business hours menu is never touched.
We kept one generic message rather than a greeting per scenario. Callers don't need to know whether it's the network, the servers or an application. They need to hear that there's a problem and what happens next:
"Thank you for calling. We're currently experiencing a technical issue and some services may be unavailable. Please leave a message and we'll get back to you as soon as possible."
The voicemail goes to a Microsoft 365 group that holds only the people on the outage list, set as the auto attendant's SharedVoicemail target with transcription on. Each person gets the message and transcript in their own inbox, so nobody has to remember to check a group mailbox in the middle of an outage. That only happens if they're subscribers, not just members:
# Outage voicemail group: members AND subscribers, hidden from the address book New-UnifiedGroup -DisplayName "Outage Voicemail" -Alias outage-voicemail ` -AccessType Private -Members $people Set-UnifiedGroup outage-voicemail -HiddenFromAddressListsEnabled $true ` -AutoSubscribeNewMembers:$true Add-UnifiedGroupLinks outage-voicemail -LinkType Subscribers -Links $people # Point the outage call flow at it $vm = New-CsAutoAttendantCallableEntity -Identity $groupId -Type SharedVoicemail ` -EnableTranscription -EnableSharedVoicemailSystemPromptSuppression
A separate, shorter list says who may ask the admins to switch the greeting on. Both lists go in the DR plan.
For the "who can change it" part, the client's technology lead was added as an authorized user, with a new voice applications policy that allows greeting changes and nothing else: business hours, after hours and holiday greetings. Changing greetings this way needs no Teams Premium. Changing holiday dates as an authorized user does, so switching the outage holiday on stays with the admins.
03The honest answer on failover
A Calling Plan number lives in Microsoft's cloud. That cuts both ways.
We wrote that into the DR plan as it stands. The plan doesn't promise a fallback that doesn't exist, and it didn't turn into a pitch for re-architecting the line. If the client later wants carrier-side forwarding, that's a separate decision with its own cost.
The one-line model
A holiday dated in the past is an outage switch you can flip in minutes, but it only helps while Teams itself is up. Say both halves in the DR plan.
04Gotchas from the build
None of these are in the docs' happy path.
| Symptom | Root cause | Fix |
|---|---|---|
| Every write cmdlet returned Access Denied, even after a reconnect | Teams Administrator had just been activated through PIM and hadn't reached Teams yet; reads work without it, so a read proves nothing | The Teams admin center worked first. Or wait 10–15 minutes and reconnect in a fresh window |
| Backup and live menu look different when nothing changed | A JSON backup stores enums as numbers: Tone1 = TransferCallToTarget becomes 1 = 2 | Compare both sides as JSON, not as printed values |
| Greeting text isn't quite what was approved | The admin center tidies text-to-speech punctuation | Read back the exact text if the wording matters to the client |
| Voicemail reaches the group mailbox but nobody's inbox | Group members aren't subscribers by default, and -AutoSubscribeNewMembers didn't stick on a group seconds old | Add the members as Subscribers, set auto-subscribe again, and read both back |
| The admin who built it starts getting the client's outage voicemails | Whoever creates a group becomes its owner and a member | Make a client contact the owner, then remove yourself as owner and member |
| Collection was of a fixed size when removing an authorized user | AuthorizedUsers is a fixed array, so .Remove() and .Clear() fail | Assign a filtered copy: $aa.AuthorizedUsers = [guid[]]@($aa.AuthorizedUsers | ? { $_ -ne $id }) |
| Set-CsAutoAttendant: cannot contain multiple call flows with the same ID or name | An Outage call flow was already on the auto attendant from earlier staging; the new one had the same name | List CallFlows first. If the flow exists, change its greeting and menu in place instead of adding another |
# Default menu unchanged? Compare like for like. $before = $bak.DefaultCallFlow.Menu.MenuOptions | ConvertTo-Json -Depth 10 -Compress $now = $aa.DefaultCallFlow.Menu.MenuOptions | ConvertTo-Json -Depth 10 -Compress $before -eq $now # True = keys, actions and targets all match
05Validate, then call it
Seven read-only checks, then two real phone calls.
- Authorized users, and the policy each one actually has
- The policy's permissions: only the three greeting changes are True
- The holiday association is on the auto attendant
- The Outage schedule's date range is in the past, so it's off
- The outage call flow carries the approved greeting and action
- The voicemail target is the outage group, type SharedVoicemail, transcription on, and every person on the list is a subscriber
- The default menu matches the pre-change backup
Then call the number and hear the normal greeting. For the DR plan's annual test, do it once more after hours: switch the outage greeting on, call in and leave a voicemail, confirm it lands in every inbox on the list with a transcript, then switch it off and call again. Screenshots of each step are the test evidence.
Back up before you touch it
Export the auto attendant with Get-CsAutoAttendant | ConvertTo-Json -Depth 15 before the change. It's the only way check 7 has something to compare against, and the only record of how the live menu was wired if something goes wrong.
Sources & further reading
- Manage voice applications policies in Microsoft Teamswhat authorized users can change, and which settings need Teams Premium
Comments
Questions or corrections welcome. Sign in with GitHub to join the thread.