Skip to content

Commit 8cd20ae

Browse files
msewawerupeombwa
andauthored
Added examples to cmdlets (#1199)
* Added examples to cmdlets * Minor edit Co-authored-by: Peter Ombwa <peombwa@microsoft.com>
1 parent 7259ddd commit 8cd20ae

File tree

4 files changed

+42
-54
lines changed

4 files changed

+42
-54
lines changed
Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
1+
### Example 1: Get the federation settings for a federated domain
72

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
113
```powershell
12-
PS C:\> {{ Add code here }}
4+
Get-MgDomainFederationConfiguration -DomainId 'contoso.com' -InternalDomainFederationId '2a8ce608-bb34-473f-9e0f-f373ee4cbc5a' | Format-List
135
14-
{{ Add output here }}
6+
ActiveSignInUri : https://sts.deverett.info/adfs/services/trust/2005/usernamemixed
7+
DisplayName : Contoso
8+
FederatedIdpMfaBehavior : rejectMfaByFederatedIdp
9+
Id : 2a8ce608-bb34-473f-9e0f-f373ee4cbc5a
10+
IsSignedAuthenticationRequestRequired :
11+
IssuerUri : http://contoso.com/adfs/services/trust/
12+
MetadataExchangeUri : https://sts.contoso.com/adfs/services/trust/mex
13+
NextSigningCertificate : MIIC3jCCAcagAwIBAgIQEt0T0G5GPZ9
14+
PassiveSignInUri : https://sts.contoso.com/adfs/ls/
15+
PreferredAuthenticationProtocol : wsFed
16+
PromptLoginBehavior :
17+
SignOutUri : https://sts.deverett.info/adfs/ls/
18+
SigningCertificate : MIIC3jCCAcagAwIBAgIQFsO0R8deG4h
19+
SigningCertificateUpdateStatus : Microsoft.Graph.PowerShell.Models.MicrosoftGraphSigningCertificateUpdateStatus
20+
AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metadata#domains('contoso.com')/federationConfiguration/$entity]}
1521
```
1622

17-
{{ Add description here }}
18-
23+
This examples retrieves the federation settings for the specified domain.
Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
1+
### Example 1: Configure federation settings for a federated domain
72

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
113
```powershell
12-
PS C:\> {{ Add code here }}
4+
New-MgDomainFederationConfiguration -DomainId "contoso.com" -ActiveSignInUri "https://sts.contoso.com/adfs/services/trust/2005/usernamemixed" -DisplayName "Contoso" -IssuerUri "http://contoso.com/adfs/services/trust/" -MetadataExchangeUri "https://sts.contoso.com/adfs/services/trust/mex" -NextSigningCertificate "MIIC3jCCAcagAwIBAgIQEt0T0G5GPZ9" -PassiveSignInUri "https://sts.contoso.com/adfs/ls/" -SignOutUri "https://sts.contoso.com/adfs/ls/" -SigningCertificate "MIIC3jCCAcagAwIBAgIQFsO0R8deG4h" -FederatedIdpMfaBehavior "rejectMfaByFederatedIdp" | Format-List
135
14-
{{ Add output here }}
6+
ActiveSignInUri : https://sts.deverett.info/adfs/services/trust/2005/usernamemixed
7+
DisplayName : Contoso
8+
FederatedIdpMfaBehavior : rejectMfaByFederatedIdp
9+
Id : 2a8ce608-bb34-473f-9e0f-f373ee4cbc5a
10+
IsSignedAuthenticationRequestRequired :
11+
IssuerUri : http://contoso.com/adfs/services/trust/
12+
MetadataExchangeUri : https://sts.contoso.com/adfs/services/trust/mex
13+
NextSigningCertificate : MIIC3jCCAcagAwIBAgIQEt0T0G5GPZ9
14+
PassiveSignInUri : https://sts.contoso.com/adfs/ls/
15+
PreferredAuthenticationProtocol : wsFed
16+
PromptLoginBehavior :
17+
SignOutUri : https://sts.deverett.info/adfs/ls/
18+
SigningCertificate : MIIC3jCCAcagAwIBAgIQFsO0R8deG4h
19+
SigningCertificateUpdateStatus : Microsoft.Graph.PowerShell.Models.MicrosoftGraphSigningCertificateUpdateStatus
20+
AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metadata#domains('contoso.com')/federationConfiguration/$entity]}
1521
```
1622

17-
{{ Add description here }}
18-
23+
This examples creates new federation settings for the specified domain.
Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
1+
### Example 1: Remove federation settigs for a federated domain
72

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
113
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
4+
Remove-MgDomainFederationConfiguration -DomainId 'contoso.com' -InternalDomainFederationId '2a8ce608-bb34-473f-9e0f-f373ee4cbc5a'
155
```
166

17-
{{ Add description here }}
18-
7+
This example removes the federation settings of the specified federated domain.
Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
1+
### Example 1: Update the federation settings for a federated domain
72

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
113
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
4+
Update-MgDomainFederationConfiguration -DomainId 'contoso.com' -InternalDomainFederationId '2a8ce608-bb34-473f-9e0f-f373ee4cbc5a' -DisplayName "Contoso name change"
155
```
166

17-
{{ Add description here }}
18-
7+
This example updates the DisplayName setting.

0 commit comments

Comments
 (0)