Skip to content

Commit 9da4e46

Browse files
authored
Merge branch 'dev' into 2781-what-happened-to-the-parameters-descriptions
2 parents c239398 + 7ad8c6d commit 9da4e46

File tree

1,253 files changed

+130
-12154
lines changed

Some content is hidden

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

1,253 files changed

+130
-12154
lines changed

.azure-pipelines/config/credscan/credscan-suppressions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@
3838
"file": [
3939
"src\\Users.Actions\\beta\\examples\\Test-MgBetaUserPassword.md",
4040
"src\\Users.Actions\\beta\\examples\\Update-MgBetaUserPassword.md",
41+
"src\\Users.Actions\\beta\\examples\\Reset-MgBetaUserAuthenticationMethodPassword.md",
4142
"src\\Users.Actions\\v1.0\\examples\\Update-MgUserPassword.md"
4243
],
4344
"_justification": "[Users.Actions] Examples contain random values recognized as secret"
4445
},
4546
{
4647
"file": [
47-
"src\\DeviceManagement.Actions\\beta\\examples\\Update-MgBetaDeviceManagementVirtualEndpointOnPremisConnectionAdDomainPassword.md"
48+
"src\\DeviceManagement.Actions\\beta\\examples\\Update-MgBetaDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword.md"
4849
],
4950
"_justification": "[DeviceManagement.Actions] Examples contain random values recognized as secret"
5051
},
Lines changed: 0 additions & 11 deletions

src/Authentication/Authentication/Cmdlets/InvokeMgGraphRequest.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,8 +999,11 @@ private string QualifyFilePath(string path)
999999
/// </summary>
10001000
private void ResetGraphSessionEnvironment()
10011001
{
1002-
_originalEnvironment = GraphSession.Instance.Environment;
1003-
GraphSession.Instance.Environment = _originalEnvironment;
1002+
var currentEnvironment = GraphSession.Instance.Environment;
1003+
if(currentEnvironment != null && !currentEnvironment.Equals(_originalEnvironment))
1004+
{
1005+
GraphSession.Instance.Environment = _originalEnvironment;
1006+
}
10041007
}
10051008

10061009
#region CmdLet LifeCycle
@@ -1039,6 +1042,8 @@ private async Task ProcessRecordAsync()
10391042
if (ShouldCheckHttpStatus && !isSuccess)
10401043
{
10411044
var httpErrorRecord = await GenerateHttpErrorRecordAsync(httpResponseMessageFormatter, httpRequestMessage);
1045+
// A reset of the GraphSession Environment is required to avoid side effects
1046+
ResetGraphSessionEnvironment();
10421047
ThrowTerminatingError(httpErrorRecord);
10431048
}
10441049
await ProcessResponseAsync(httpResponseMessage);

src/Beta.Applications/beta/examples/Add-MgBetaApplicationKey.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/Beta.Applications/beta/examples/Add-MgBetaApplicationPassword.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Beta.Applications/beta/examples/Add-MgBetaServicePrincipalTokenSigningCertificate.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/Beta.Applications/beta/examples/Clear-MgBetaApplicationVerifiedPublisher.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/Beta.Applications/beta/examples/Confirm-MgBetaApplicationMemberGroup.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Beta.Applications/beta/examples/Confirm-MgBetaServicePrincipalMemberGroup.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Beta.Applications/beta/examples/Find-MgBetaApplicationSynchronizationJobSchemaDirectory.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)