Convert mailbox to shared in Azure runbook

Bennett 21 Reputation points
2022-08-26T15:53:45.39+00:00

Hello,

Trying to run automation in our environment for departing users through Runbook, when attempting to convert like I do through local powershell using:

`function setShared($email){

Set-Mailbox $email -Type Shared  

output "Setting mailbox to shared"  

}`

I get the error that -Type is not an acceptable parameter, what is the parameter I need to call through Set to allow the box to be converted to Shared?

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
648 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,134 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,222 questions
{count} votes