SOLVED

Powershell and Microsoft Graph

Copper Contributor

Hello, 

 

I'm using Microsoft Graph module (because exchange online is deprecated) and I can't create bulk mailbox room type.  

 

I registered an enterprise application with mailboxsettings.readwrite rights, I created a secret and I succeed to connect my script to Microsoft 365 with the id of tenant and the secret ID of the application. 

 

I have a csv file wich contains multiple mailbox room type to create. 

 

But, I canno't find the way to create bulk room mailbox from a csv file with mg graph module. 

 

Thank's for your help ! 

4 Replies
The Exchange Online PowerShell module is NOT deprecated, don't know where you read that. Graph cannot be used for any admin operations in Exchange Online, so you don't really have a choice here, stick to the Exchange Online module :)

@Vasil Michev 

 

Thank's you for your response, i saw (don't remember where) that exchangeonlinemanagement was deprecated. 

 

Good news it's not :-). 

 

But when I try to connect i got every time this error : 

 

YoannS_0-1708461135286.png

 

best response confirmed by YoannS (Copper Contributor)
Solution
Update your module, we're currently on 3.x.x.
The AzureAD and MSOL modules are deprecated from March 31, 2024. That's probably what you heard. Exchange Online is in hearty good health. You can use the Graph SDK to create new user accounts and mailbox-enable the accounts by assigning a license to the account that contains an Exchange Online service plan. See https://practical365.com/create-new-microsoft-365-account-powershell/ and https://practical365.com/azure-ad-account-creation-standardization/
1 best response

Accepted Solutions
best response confirmed by YoannS (Copper Contributor)
Solution
Update your module, we're currently on 3.x.x.

View solution in original post