File tree 2 files changed +6
-1
lines changed 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)
106
106
Environment . SetEnvironmentVariable ( "AZUREPS_HOST_ENVIRONMENT" , $ "AzureFunctions/{ workerInitRequest . HostVersion } ") ;
107
107
Environment . SetEnvironmentVariable ( "POWERSHELL_DISTRIBUTION_CHANNEL" , $ "Azure-Functions:{ workerInitRequest . HostVersion } ") ;
108
108
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
+
109
114
StreamingMessage response = NewStreamingMessageTemplate (
110
115
request . RequestId ,
111
116
StreamingMessage . ContentOneofCase . WorkerInitResponse ,
You can’t perform that action at this time.
0 commit comments