Skip to content

Commit a7da0de

Browse files
committed
Remove AzContext autosave disabling and timing
Eliminated the code block that disabled AzContext autosave and its associated timing measurement. This streamlines the profile script and removes unnecessary operations.
1 parent 19af37d commit a7da0de

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

profile.ps1

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ if ($env:ExternalDurablePowerShellSDK -eq $true) {
8383
$SwDurableSDK.Stop()
8484
$Timings['DurableSDK'] = $SwDurableSDK.Elapsed.TotalMilliseconds
8585

86-
$SwAzContext = [System.Diagnostics.Stopwatch]::StartNew()
87-
try {
88-
$null = Disable-AzContextAutosave -Scope Process
89-
} catch {}
90-
$SwAzContext.Stop()
91-
$Timings['DisableAzContext'] = $SwAzContext.Elapsed.TotalMilliseconds
92-
9386
$SwAuth = [System.Diagnostics.Stopwatch]::StartNew()
9487
try {
9588
if (!$env:SetFromProfile) {

0 commit comments

Comments
 (0)