Skip to content

Commit

Permalink
allow for external durable sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Apr 21, 2024
1 parent bf0d2de commit c704fb5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
}
}

if ($env:ExternalDurablePowerShellSDK -eq $true) {
try {
Import-Module AzureFunctions.PowerShell.Durable.SDK -ErrorAction Stop
Write-Host 'External Durable SDK enabled'
} catch {
Write-LogMessage -message 'Failed to import module - AzureFunctions.PowerShell.Durable.SDK' -LogData (Get-CippException -Exception $_) -Sev 'debug'
$_.Exception.Message
}
}

try {
Disable-AzContextAutosave -Scope Process | Out-Null
} catch {}
Expand Down

0 comments on commit c704fb5

Please sign in to comment.