The usage of Set-Mailbox cmdlet for Exchange Online via new preview module and certificate

Nikita Krivets 481 Reputation points
2020-07-16T08:34:41.4+00:00

Hello,

I have some troubles with getting Set-Mailbox cmdlet to work via new certificate workflow (application + app permissions + roles + certificate + new exchange online preview module).
https://www.powershellgallery.com/packages/ExchangeOnlineManagement/2.0.3-Preview

Is it even possible in this version? If so, what the requirements are?

Thanks in advance!

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,392 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David 701 Reputation points
    2020-07-21T14:06:18.407+00:00

    and you can see that switch if you logon interactively with PS as an Exchange Admin ?

    1 person found this answer helpful.

5 additional answers

Sort by: Newest
  1. Andy David 701 Reputation points
    2020-07-21T10:54:10.19+00:00

    Sounds like something maybe just got messed up on that app? Can you delete and recreate it or was that done already ?


  2. Andy David 701 Reputation points
    2020-07-20T12:43:35.867+00:00

    The only only API Permissions you should see are:
    13062-image.png

    The "Roles and Adminstrators" menu you have in that last image arent the roles assigned to the app, its the roles that can manage it, so the Exchange Admin wouldnt be listed there by default.

    1 person found this answer helpful.

  3. Andy David 701 Reputation points
    2020-07-18T15:31:19.197+00:00

    @Nikita Krivets , What directory role did you give the app in Azure? The Exchange role should allow that. I just double-checked and I have access to that parameter connecting through the Azure app.


  4. Andy David 701 Reputation points
    2020-07-16T19:20:32.78+00:00

    I haven't seen that. I assume the app has been assigned the Exchange role.
    What happens when you use set-mailbox? I just tested and it works fine for me.