File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1- * Use rpcBaseUrl in Durable operations when possible
1+ * Set environment variable to avoid Get-AzAccessToken breaking change
Original file line number Diff line number Diff line change @@ -106,6 +106,11 @@ internal StreamingMessage ProcessWorkerInitRequest(StreamingMessage request)
106106 Environment . SetEnvironmentVariable ( "AZUREPS_HOST_ENVIRONMENT" , $ "AzureFunctions/{ workerInitRequest . HostVersion } ") ;
107107 Environment . SetEnvironmentVariable ( "POWERSHELL_DISTRIBUTION_CHANNEL" , $ "Azure-Functions:{ workerInitRequest . HostVersion } ") ;
108108
109+ // Set the environment variable to force the Get-AzAccessToken to return a
110+ // plaintext token and avoid the planned breaking change.
111+ // TODO: Remove this for the next PowerShell version (7.6).
112+ Environment . SetEnvironmentVariable ( "AZUREPS_OUTPUT_PLAINTEXT_AZACCESSTOKEN" , "true" ) ;
113+
109114 StreamingMessage response = NewStreamingMessageTemplate (
110115 request . RequestId ,
111116 StreamingMessage . ContentOneofCase . WorkerInitResponse ,
You can’t perform that action at this time.
0 commit comments