Power shell execution for creating Shared Mailbox

Avinash54
Tera Contributor

I wanted to run few power shell activity such as creating a shared mailbox for azure ad cloud(not on-premise).

in order to do that we would a Mid Server to carry out the activity.

Can you help me with the architecture flow of how mid server will be configured to connect to Azure cloud to perform these activities ?

 

 

3 REPLIES 3

Niklas Peterson
Mega Sage
Mega Sage

Hi,

 

Are there any special requirements why you would want to do it with powershell?
I would recommend to use the Microsoft Graph API instead. Then you would not need a MID server, instead you can make the REST API calls directly from the ServiceNow instance to Azure.

 

https://learn.microsoft.com/en-us/graph/use-the-api

 

Regards,
Niklas

Hi,

 

That would have been the best to approach for the use case, though the problem here is that GraphAPI does not support/capability to perform certain operations such as - Creating a shared mailbox.

Therefore I think of using MID Server in this case for which I want to know how can a MID Server be setup in AZURE Cloud and what configurations are needed at the MID Server which can connect to AZURE AD and perform PowerShell activities.

 

Hi,

Thanks for clarifying. I just assumed it supported Exchange Online as well. I stand corrected!

 

Not sure about the details you need. Hopefully someone else can help you!

But I did find this post which talks about similar things. Maybe you can find some input there.

 

https://www.servicenow.com/community/developer-forum/information-on-how-to-add-users-to-exchange-onl...

 

Regards,
Niklas