You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After you've [created and configured a user-assigned managed identity](#create-and-configure-a-user-assigned-managed-identity), use the following syntax to connect to Exchange Online PowerShell:
You get the \<UserAssignedManagedIdentityPrincipalIdValue\> value from [Step 3: Store the user-assigned managed identity in a variable](#step-3-store-the-user-assigned-managed-identity-in-a-variable).
98
+
You get the \<UserAssignedManagedIdentityClientIdValue\> value from [Step 3: Store the user-assigned managed identity in a variable](#step-3-store-the-user-assigned-managed-identity-in-a-variable).
100
99
101
100
The rest of this section explains how to connect using supported Azure resources. For example:
102
101
@@ -135,7 +134,7 @@ After you've successfully created the PowerShell runbook, do the following steps
135
134
In a Windows PowerShell window in the Azure VM, use the command as described in the beginning of this section. For example:
@@ -242,6 +241,9 @@ For detailed syntax and parameter information, see [Get-AzADServicePrincipal](/p
242
241
243
242
#### Add the Exchange Online PowerShell module to Azure Automation accounts with system-assigned managed identities
244
243
244
+
> [!TIP]
245
+
> If the following procedure in the Azure portal doesn't work for you, try the **New-AzAutomationModule** command in Azure PowerShell that's described after the Azure portal procedure.
246
+
245
247
1. On the **Automation accounts** page at <https://portal.azure.com/#view/HubsExtension/BrowseResource/resourceType/Microsoft.Automation%2FAutomationAccounts>, select the Automation account.
246
248
2. In the details flyout that opens, start typing "Modules" in the **Search** box, and then select **Modules** from results.
247
249
3. On the **Modules** flyout that opens, click **Add a module**.
@@ -261,17 +263,18 @@ For detailed syntax and parameter information, see [Get-AzADServicePrincipal](/p
261
263
To add the module to the Automation account in Azure PowerShell, use the following syntax:
-\<ResourceGroupName\> is the name of the resource group that's already assigned to the Automation account.
268
270
-\<AutomationAccountName\> is the name of the Automation account.
271
+
-\<LatestModuleVersion\> is the current version of the ExchangeOnlineManagement module. To see the latest General Availability (GA; non-Preview) version of the module, run the following command in Windows PowerShell: `Find-Module ExchangeOnlineManagement`. To see the latest Preview release, run the following command: `Find-Module ExchangeOnlineManagement -AllowPrerelease`.
269
272
- Currently, the PowerShell procedures don't give you a choice for the runtime version (it's 5.1).
To verify that the module imported successfully, run the following command:
@@ -515,10 +518,10 @@ For instructions, see the following articles:
515
518
516
519
### Step 3: Store the user-assigned managed identity in a variable
517
520
518
-
Use the following syntax in [Azure Az PowerShell](/powershell/azure/install-az-ps) to store the PrincipalId value of the user-assigned managed identity in variable that you'll use in the upcoming steps:
521
+
Use the following syntax in [Azure Az PowerShell](/powershell/azure/install-az-ps) to store the ClientId value of the user-assigned managed identity in variable that you'll use in the upcoming steps:
To verify that the variable was captured successfully, run the command `$MI_ID`. The output should be a GUID value (for example, bf6dcc76-4331-4942-8d50-87ea41d6e8a1).
Copy file name to clipboardExpand all lines: exchange/docs-conceptual/connect-to-scc-powershell.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Connect to Security & Compliance PowerShell
3
3
author: chrisda
4
4
manager: dansimp
5
-
ms.date:
5
+
ms.date:6/21/2023
6
6
ms.audience: Admin
7
7
audience: Admin
8
8
ms.topic: article
@@ -35,7 +35,7 @@ To use the older Exchange Online Remote PowerShell Module (the V1 module) to con
35
35
36
36
> [!NOTE]
37
37
>
38
-
> If you're using version 3.2.0-Preview3 of the module, and you use `-UseRPSSession:$false` in the **Connect-IPPSSession** command, you have access to REST API cmdlets _only_. For more information, see [Updates for the EXO V3 module)](exchange-online-powershell-v2.md#updates-for-the-exo-v3-module).
38
+
> If you're using version 3.2.0 or later of the module, and you don't use the _UseRPSSession_ switch in the **Connect-IPPSSession** command, you have access to REST API cmdlets _only_. For more information, see [Updates for the EXO V3 module)](exchange-online-powershell-v2.md#updates-for-the-exo-v3-module).
39
39
40
40
- After you connect, the cmdlets and parameters that you have or don't have access to is controlled by role-based access control (RBAC). For more information, see [Permissions in the Microsoft 365 Defender portal](/microsoft-365/security/office-365-security/mdo-portal-permissions) and [Permissions in the Microsoft Purview compliance portal](/microsoft-365/compliance/microsoft-365-compliance-center-permissions).
For detailed syntax and parameter information, see [Connect-IPPSSession](/powershell/module/exchange/connect-ippssession).
65
65
66
66
-_\<UPN\>_ is your account in user principal name format (for example, `[email protected]`).
67
67
68
-
- In v3.2.0-Preview3 of the module, if you use `-UseRPSSession:$false`in the **Connect-IPPSSession** command, you connect in REST API mode. To connect in remote PowerShell mode, don't use the _UseRPSSession_ switch. For more information, see [Updates for the EXO V3 module)](exchange-online-powershell-v2.md#updates-for-the-exo-v3-module).
68
+
- In v3.2.0 or later of the module, if you don't use the _UseRPSSession_ switch in the **Connect-IPPSSession** command, you connect in REST API mode. To connect in remote PowerShell mode, use the _UseRPSSession_ switch. For more information, see [Updates for the EXO V3 module)](exchange-online-powershell-v2.md#updates-for-the-exo-v3-module).
69
69
70
70
- The required _ConnectionUri_ and _AzureADAuthorizationEndpointUri_ values depend on the nature of your Microsoft 365 organization. Common values are described in the following table:
0 commit comments