Skip to content

Commit ece7150

Browse files
authored
Merge pull request #10149 from MicrosoftDocs/MI-chrisda
Mi-chrisda to Main
2 parents be410a7 + 0bfbf39 commit ece7150

File tree

8 files changed

+573
-9
lines changed

8 files changed

+573
-9
lines changed

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

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

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,18 +453,20 @@ This section attempts to compare older connection methods that have been replace
453453

454454
- **Exchange Online PowerShell module**:
455455

456-
- **System-assigned**:
456+
- **System-assigned managed identity**:
457457

458458
```powershell
459459
Connect-ExchangeOnline -ManagedIdentity -Organization "contoso.onmicrosoft.com"
460460
```
461461
462-
- **User-assigned**:
462+
- **User-assigned managed identity**:
463463
464464
```powershell
465-
Connect-ExchangeOnline -ManagedIdentity -Organization "contoso.onmicrosoft.com" -ManagedIdentityAccountId $ManagedIdentityAccountIdGuid
465+
Connect-ExchangeOnline -ManagedIdentity -Organization "contoso.onmicrosoft.com" -ManagedIdentityAccountId <UserAssignedManagedIdentityPrincipalIdValue>
466466
```
467467
468+
For more information, see [Use Azure managed identities to connect to Exchange Online PowerShell](connect-exo-powershell-managed-identity.md).
469+
468470
- **Basic authentication**: Not available.
469471
470472
- **New-PSSession with OAuth token**: Not available.
406 Bytes
Loading
24.6 KB
Loading
46 KB
Loading
373 Bytes
Loading

exchange/docs-conceptual/toc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@
3232
href: exchange-online-powershell-v2.md
3333
- name: Connect to Exchange Online PowerShell - modern auth and MFA
3434
href: connect-to-exchange-online-powershell.md
35-
- name: App-only authentication for unattended scripts
35+
- name: Connect using app-only authentication for unattended scripts
3636
href: app-only-auth-powershell-v2.md
37+
- name: Connect using Azure managed identity
38+
href: connect-exo-powershell-managed-identity.md
3739
- name: Enable or disable access to Exchange Online PowerShell
3840
href: disable-access-to-exchange-online-powershell.md
3941
- name: Exchange cmdlet syntax

exchange/exchange-ps/exchange/Connect-ExchangeOnline.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,12 +519,21 @@ Accept wildcard characters: False
519519
### -ManagedIdentity
520520
**Note**: This parameter is available in version 2.0.6-Preview7 or later of the module.
521521

522-
The ManagedIdentity switch connects to Exchange Online using managed identity (user-assigned or system-assigned). You don't need to specify a value with this switch.
522+
The ManagedIdentity switch specifies that you're using managed identity to connect. You don't need to specify a value with this switch.
523523

524-
Managed identity is currently supported for Azure Virtual Machines, Virtual Machine Scale Sets and Azure Functions.
524+
Managed identity connections are currently supported for the following types of Azure resources:
525+
526+
- Azure Automation runbooks
527+
- Azure Virtual Machines
528+
- Azure Virtual Machine Scale Sets
529+
- Azure Functions
525530

526531
You must use this switch with the Organization parameter.
527532

533+
For user-assigned managed identity, you must also use this switch with the ManagedIdentityAccountId parameter.
534+
535+
For more information about connecting with managed identity, see [Use Azure managed identities to connect to Exchange Online PowerShell](https://learn.microsoft.com/powershell/exchange/connect-exo-powershell-managed-identity).
536+
528537
```yaml
529538
Type: SwitchParameter
530539
Parameter Sets: (All)
@@ -541,7 +550,11 @@ Accept wildcard characters: False
541550
### -ManagedIdentityAccountId
542551
**Note**: This parameter is available in version 2.0.6-Preview7 or later of the module.
543552

544-
The ManagedIdentityAccountId parameter specifies the application ID of the service principal that corresponds to the user-assigned managed identity that's used for authentication.
553+
The ManagedIdentityAccountId parameter specifies the user-assigned managed identity that you're using to connect. A valid value for this parameter is the application ID (GUID) of the service principal that corresponds to the user-assigned managed identity in Azure.
554+
555+
You must use this parameter with the Organization parameter and the ManagedIdentity switch.
556+
557+
For more information about connecting with managed identity, see [Use Azure managed identities to connect to Exchange Online PowerShell](https://learn.microsoft.com/powershell/exchange/connect-exo-powershell-managed-identity).
545558

546559
```yaml
547560
Type: String
@@ -557,9 +570,11 @@ Accept wildcard characters: False
557570
```
558571

559572
### -Organization
560-
The Organization parameter specifies the organization when you connect using CBA or managed identity (user-assigned or system-assigned). You must use an .onmicrosoft.com domain for the value of this parameter.
573+
The Organization parameter specifies the organization when you connect using CBA or managed identity. You must use an .onmicrosoft.com domain for the value of this parameter.
561574

562-
For more information about CBA, see [App-only authentication for unattended scripts in the Exchange Online PowerShell module](https://aka.ms/exo-cba).
575+
For more information about connecting with CBA, see [App-only authentication for unattended scripts in the Exchange Online PowerShell module](https://aka.ms/exo-cba).
576+
577+
For more information about connecting with managed identity, see [Use Azure managed identities to connect to Exchange Online PowerShell](https://learn.microsoft.com/powershell/exchange/connect-exo-powershell-managed-identity).
563578

564579
```yaml
565580
Type: String

0 commit comments

Comments
 (0)