Skip to content

Commit 052d25c

Browse files
Using SR Target
1 parent 68896df commit 052d25c

File tree

91 files changed

+5
-183
lines changed

Some content is hidden

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

91 files changed

+5
-183
lines changed

MS Graph/Authentication/Add-MGAUEnvironment.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ param(
4747
Import-Module Microsoft.Graph.Authentication
4848

4949
try{
50-
ConnectMSGraph
5150
[hashtable]$cmdArgs = @{ErrorAction = 'Stop'
5251
'AzureADEndpoint' = $AzureADEndpoint
5352
'GraphEndpoint' = $GraphEndpoint
@@ -67,5 +66,4 @@ catch{
6766
throw
6867
}
6968
finally{
70-
DisconnectMSGraph
7169
}

MS Graph/Authentication/Find-MGAUGraphCommand.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ param(
5757
Import-Module Microsoft.Graph.Authentication
5858

5959
try{
60-
ConnectMSGraph
6160
[hashtable]$cmdArgs = @{
6261
ErrorAction = 'Stop'
6362
}
@@ -93,5 +92,4 @@ catch{
9392
throw
9493
}
9594
finally{
96-
DisconnectMSGraph
9795
}

MS Graph/Authentication/Find-MGAUGraphPermission.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ param(
4040
Import-Module Microsoft.Graph.Authentication
4141

4242
try{
43-
ConnectMSGraph
4443
[hashtable]$cmdArgs = @{
4544
ErrorAction = 'Stop'
4645
All = $null
@@ -64,5 +63,4 @@ catch{
6463
throw
6564
}
6665
finally{
67-
DisconnectMSGraph
6866
}

MS Graph/Authentication/Get-MGAUContext.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ param(
2828
Import-Module Microsoft.Graph.Authentication
2929

3030
try{
31-
ConnectMSGraph
3231
$result = Get-MgContext -ErrorAction Stop | Select-Object *
3332

3433
if($SRXEnv) {
@@ -42,5 +41,4 @@ catch{
4241
throw
4342
}
4443
finally{
45-
DisconnectMSGraph
4644
}

MS Graph/Authentication/Get-MGAUEnvironment.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ param(
3434
Import-Module Microsoft.Graph.Authentication
3535

3636
try{
37-
ConnectMSGraph
3837
[hashtable]$cmdArgs = @{
3938
ErrorAction = 'Stop'
4039
}
@@ -54,5 +53,4 @@ catch{
5453
throw
5554
}
5655
finally{
57-
DisconnectMSGraph
5856
}

MS Graph/Authentication/Get-MGAUGraphOption.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ param(
2929
Import-Module Microsoft.Graph.Authentication
3030

3131
try{
32-
ConnectMSGraph
3332
$result = Get-MgGraphOption -ErrorAction Stop | Select-Object *
3433

3534
if($SRXEnv) {
@@ -43,5 +42,4 @@ catch{
4342
throw
4443
}
4544
finally{
46-
DisconnectMSGraph
4745
}

MS Graph/Authentication/Get-MGAURequestContext.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ param(
2929
Import-Module Microsoft.Graph.Authentication
3030

3131
try{
32-
ConnectMSGraph
3332
$result = Get-MgRequestContext -ErrorAction Stop | Select-Object *
3433

3534
if($SRXEnv) {
@@ -43,5 +42,4 @@ catch{
4342
throw
4443
}
4544
finally{
46-
DisconnectMSGraph
4745
}

MS Graph/Authentication/Invoke-MGAUGraphRequest.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ param(
4747
Import-Module Microsoft.Graph.Authentication
4848

4949
try{
50-
ConnectMSGraph
5150
$result = Invoke-MgGraphRequest -Uri $Uri -Method $Method -Body $Body -ErrorAction Stop | Select-Object *
5251

5352
if($SRXEnv) {
@@ -61,5 +60,4 @@ catch{
6160
throw
6261
}
6362
finally{
64-
DisconnectMSGraph
6563
}

MS Graph/Authentication/Remove-MGAUEnvironment.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ param(
3535
Import-Module Microsoft.Graph.Authentication
3636

3737
try{
38-
ConnectMSGraph
3938
[hashtable]$cmdArgs = @{ErrorAction = 'Stop'
4039
'Name' = $Name
4140
'Confirm' = $false
@@ -53,5 +52,4 @@ catch{
5352
throw
5453
}
5554
finally{
56-
DisconnectMSGraph
5755
}

MS Graph/Authentication/Set-MGAUEnvironment.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ param(
4545
Import-Module Microsoft.Graph.Authentication
4646

4747
try{
48-
ConnectMSGraph
4948
[hashtable]$cmdArgs = @{ErrorAction = 'Stop'
5049
'Name' = $Name
5150
'Confirm' = $false
@@ -69,5 +68,4 @@ catch{
6968
throw
7069
}
7170
finally{
72-
DisconnectMSGraph
7371
}

0 commit comments

Comments
 (0)