Ground Truth field notes · defensive security

Home›Cloud Security›Cloud posture

Field case · Teams Phone · DR planning

A pre-staged outage greeting for a Teams auto attendant

A disaster recovery plan asked three questions about the company's main phone number. Each one sounded like a five-minute answer, and each one needed a check first. Here's what the checks found, the holiday-dated-in-the-past trick that gives you an outage switch, and the honest answer on failover.

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:

  1. Who administers it, and who can change its greeting?
  2. Can we have an outage greeting ready ahead of time, and what does switching it on involve?
  3. 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.

HOLIDAY HANDLING IS CHECKED FIRST Incoming call Outage holiday date covers now? yes Outage greeting then shared voicemail OFF: dated in the past ON: move range to now no Business hours? open closed Normal menu sales, research, operator After-hours flow unchanged
The switch is a date, not a setting. The Outage holiday sits ahead of business hours in the routing order. Dated in the past, it never matches, so callers go through the normal menu exactly as before.

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.

WHAT THE NUMBER SURVIVES Keeps answering Office internet down Servers or cloud estate down Business applications down Staff take calls on the Teams mobile app; the outage greeting can play Goes down Teams calling service outage No automatic fallback on a Calling Plan The pre-staged greeting runs on the same service, so it won't play either Carrier forwarding needs Operator Connect
The greeting is for your outages, not Microsoft's. Everything on the left is where it earns its keep. On the right, nothing hosted in Teams can help.

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.

SymptomRoot causeFix
Every write cmdlet returned Access Denied, even after a reconnectTeams Administrator had just been activated through PIM and hadn't reached Teams yet; reads work without it, so a read proves nothingThe Teams admin center worked first. Or wait 10–15 minutes and reconnect in a fresh window
Backup and live menu look different when nothing changedA JSON backup stores enums as numbers: Tone1 = TransferCallToTarget becomes 1 = 2Compare both sides as JSON, not as printed values
Greeting text isn't quite what was approvedThe admin center tidies text-to-speech punctuationRead back the exact text if the wording matters to the client
Voicemail reaches the group mailbox but nobody's inboxGroup members aren't subscribers by default, and -AutoSubscribeNewMembers didn't stick on a group seconds oldAdd the members as Subscribers, set auto-subscribe again, and read both back
The admin who built it starts getting the client's outage voicemailsWhoever creates a group becomes its owner and a memberMake a client contact the owner, then remove yourself as owner and member
Collection was of a fixed size when removing an authorized userAuthorizedUsers is a fixed array, so .Remove() and .Clear() failAssign a filtered copy: $aa.AuthorizedUsers = [guid[]]@($aa.AuthorizedUsers | ? { $_ -ne $id })
Set-CsAutoAttendant: cannot contain multiple call flows with the same ID or nameAn Outage call flow was already on the auto attendant from earlier staging; the new one had the same nameList 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.

  1. Authorized users, and the policy each one actually has
  2. The policy's permissions: only the three greeting changes are True
  3. The holiday association is on the auto attendant
  4. The Outage schedule's date range is in the past, so it's off
  5. The outage call flow carries the approved greeting and action
  6. The voicemail target is the outage group, type SharedVoicemail, transcription on, and every person on the list is a subscriber
  7. 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

Comments

Questions or corrections welcome. Sign in with GitHub to join the thread.