Skip to content

Commit 7a49c32

Browse files
committed
Merge branch 'main' into QuarFTB-chrisda
2 parents 34456a4 + c1bb451 commit 7a49c32

File tree

298 files changed

+3641
-1038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+3641
-1038
lines changed

.openpublishing.redirection.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6920,16 +6920,6 @@
69206920
"redirect_url": "/powershell/module/exchange/update-distributiongroupmember",
69216921
"redirect_document_id": false
69226922
},
6923-
{
6924-
"source_path": "exchange/virtual-folder/exchange/Get-DefaultTenantBriefingConfig.md",
6925-
"redirect_url": "/viva/insights/personal/reference/briefing-pause",
6926-
"redirect_document_id": false
6927-
},
6928-
{
6929-
"source_path": "exchange/virtual-folder/exchange/Set-DefaultTenantBriefingConfig.md",
6930-
"redirect_url": "/viva/insights/personal/reference/briefing-pause",
6931-
"redirect_document_id": false
6932-
},
69336923
{
69346924
"source_path": "teams/teams-ps/teams/New-CsTeamsShiftsConnectionTeamMap.yml",
69356925
"redirect_url": "https://review.learn.microsoft.com/en-us/powershell/module/teams/",

exchange/docs-conceptual/app-only-auth-powershell-v2.md

Lines changed: 29 additions & 29 deletions
Large diffs are not rendered by default.

exchange/docs-conceptual/connect-exo-powershell-managed-identity.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Use Azure managed identities to connect to Exchange Online PowerShell
33
ms.author: chrisda
44
author: chrisda
55
manager: dansimp
6-
ms.date:
6+
ms.date: 6/21/2023
77
ms.audience: Admin
88
audience: Admin
99
ms.topic: article
@@ -30,7 +30,6 @@ The rest of this article explains how to connect using managed identity, and the
3030
>
3131
> - [New-UnifiedGroup](/powershell/module/exchange/new-unifiedgroup)
3232
> - [Remove-UnifiedGroup](/powershell/module/exchange/remove-unifiedgroup)
33-
> - [Set-UnifiedGroup](/powershell/module/exchange/set-unifiedgroup)
3433
> - [Remove-UnifiedGroupLinks](/powershell/module/exchange/remove-unifiedgrouplinks)
3534
> - [Add-UnifiedGroupLinks](/powershell/module/exchange/add-unifiedgrouplinks)
3635
>
@@ -93,10 +92,10 @@ Connect-ExchangeOnline -ManagedIdentity -Organization contoso.onmicrosoft.com
9392
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:
9493

9594
```powershell
96-
Connect-ExchangeOnline -ManagedIdentity -Organization <YourDomain>.onmicrosoft.com -ManagedIdentityAccountId <UserAssignedManagedIdentityPrincipalIdValue>
95+
Connect-ExchangeOnline -ManagedIdentity -Organization <YourDomain>.onmicrosoft.com -ManagedIdentityAccountId <UserAssignedManagedIdentityClientIdValue>
9796
```
9897

99-
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).
10099

101100
The rest of this section explains how to connect using supported Azure resources. For example:
102101

@@ -135,7 +134,7 @@ After you've successfully created the PowerShell runbook, do the following steps
135134
In a Windows PowerShell window in the Azure VM, use the command as described in the beginning of this section. For example:
136135

137136
```powershell
138-
$MI_ID = (Get-AzUserAssignedIdentity -Name "ContosoMI1" -ResourceGroupName "ContosoRG2").PrincipalId
137+
$MI_ID = (Get-AzUserAssignedIdentity -Name "ContosoMI1" -ResourceGroupName "ContosoRG2").ClientId
139138
140139
Connect-ExchangeOnline -ManagedIdentity -Organization contoso.onmicrosoft.com -ManagedIdentityAccountId $MI_ID
141140
```
@@ -242,6 +241,9 @@ For detailed syntax and parameter information, see [Get-AzADServicePrincipal](/p
242241

243242
#### Add the Exchange Online PowerShell module to Azure Automation accounts with system-assigned managed identities
244243

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+
245247
1. On the **Automation accounts** page at <https://portal.azure.com/#view/HubsExtension/BrowseResource/resourceType/Microsoft.Automation%2FAutomationAccounts>, select the Automation account.
246248
2. In the details flyout that opens, start typing "Modules" in the ![Search icon.](media/search-icon.png) **Search** box, and then select **Modules** from results.
247249
3. On the **Modules** flyout that opens, click ![Add module icon.](media/add-icon.png) **Add a module**.
@@ -261,17 +263,18 @@ For detailed syntax and parameter information, see [Get-AzADServicePrincipal](/p
261263
To add the module to the Automation account in Azure PowerShell, use the following syntax:
262264

263265
```powershell
264-
New-AzAutomationModule -ResourceGroupName "<ResourceGroupName>" -AutomationAccountName "<AutomationAccountName>" -Name ExchangeOnlineManagement -ContentLinkUri https://www.powershellgallery.com/packages/ExchangeOnlineManagement/3.0.0
266+
New-AzAutomationModule -ResourceGroupName "<ResourceGroupName>" -AutomationAccountName "<AutomationAccountName>" -Name ExchangeOnlineManagement -ContentLinkUri https://www.powershellgallery.com/packages/ExchangeOnlineManagement/<LatestModuleVersion>
265267
```
266268

267269
- \<ResourceGroupName\> is the name of the resource group that's already assigned to the Automation account.
268270
- \<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`.
269272
- Currently, the PowerShell procedures don't give you a choice for the runtime version (it's 5.1).
270273

271274
For example:
272275

273276
```powershell
274-
New-AzAutomationModule -ResourceGroupName "ContosoRG" -AutomationAccountName "ContosoAzAuto1" -Name ExchangeOnlineManagement -ContentLinkUri https://www.powershellgallery.com/packages/ExchangeOnlineManagement/3.0.0
277+
New-AzAutomationModule -ResourceGroupName "ContosoRG" -AutomationAccountName "ContosoAzAuto1" -Name ExchangeOnlineManagement -ContentLinkUri https://www.powershellgallery.com/packages/ExchangeOnlineManagement/3.1.0
275278
```
276279

277280
To verify that the module imported successfully, run the following command:
@@ -515,10 +518,10 @@ For instructions, see the following articles:
515518

516519
### Step 3: Store the user-assigned managed identity in a variable
517520

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:
519522

520523
```powershell
521-
$MI_ID = (Get-AzUserAssignedIdentity -Name "<UserAssignedMI>" -ResourceGroupName "<MIResourceGroupName>").PrincipalId
524+
$MI_ID = (Get-AzUserAssignedIdentity -Name "<UserAssignedMI>" -ResourceGroupName "<MIResourceGroupName>").ClientId
522525
```
523526

524527
- \<UserAssignedMI\> is the name of the user-assigned managed identity.
@@ -527,7 +530,7 @@ $MI_ID = (Get-AzUserAssignedIdentity -Name "<UserAssignedMI>" -ResourceGroupName
527530
For example:
528531

529532
```powershell
530-
$MI_ID = (Get-AzUserAssignedIdentity -Name "ContosoMI1" -ResourceGroupName "ContosoRG2").PrincipalId
533+
$MI_ID = (Get-AzUserAssignedIdentity -Name "ContosoMI1" -ResourceGroupName "ContosoRG2").ClientId
531534
```
532535

533536
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).

exchange/docs-conceptual/connect-to-exchange-online-powershell.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ This section attempts to compare older connection methods that have been replace
410410

411411
- **Certificate thumbprint**:
412412

413+
> [!NOTE]
414+
> The CertificateThumbprint parameter is supported only in Microsoft Windows.
415+
413416
```powershell
414417
Connect-ExchangeOnline -CertificateThumbPrint "012THISISADEMOTHUMBPRINT" -AppID "36ee4c6c-0812-40a2-b820-b22ebd02bce3" -Organization "contoso.onmicrosoft.com"
415418
```

exchange/docs-conceptual/connect-to-scc-powershell.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Connect to Security & Compliance PowerShell
33
author: chrisda
44
manager: dansimp
5-
ms.date:
5+
ms.date: 6/21/2023
66
ms.audience: Admin
77
audience: Admin
88
ms.topic: article
@@ -35,7 +35,7 @@ To use the older Exchange Online Remote PowerShell Module (the V1 module) to con
3535

3636
> [!NOTE]
3737
>
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).
3939
4040
- 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).
4141

@@ -58,14 +58,14 @@ Import-Module ExchangeOnlineManagement
5858
The command that you need to run uses the following syntax:
5959

6060
```powershell
61-
Connect-IPPSSession -UserPrincipalName <UPN> [-ConnectionUri <URL>] [-UseRPSSession:$false] [-AzureADAuthorizationEndpointUri <URL>] [-DelegatedOrganization <String>] [-PSSessionOption $ProxyOptions]
61+
Connect-IPPSSession -UserPrincipalName <UPN> [-ConnectionUri <URL>] [-UseRPSSession] [-AzureADAuthorizationEndpointUri <URL>] [-DelegatedOrganization <String>] [-PSSessionOption $ProxyOptions]
6262
```
6363

6464
For detailed syntax and parameter information, see [Connect-IPPSSession](/powershell/module/exchange/connect-ippssession).
6565

6666
- _\<UPN\>_ is your account in user principal name format (for example, `[email protected]`).
6767

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).
6969

7070
- The required _ConnectionUri_ and _AzureADAuthorizationEndpointUri_ values depend on the nature of your Microsoft 365 organization. Common values are described in the following table:
7171

0 commit comments

Comments
 (0)