How can I redirect the console output of the CustomScriptExtension to the ADO release pipeline? #15670
-
Setting custom script extension to a VM from Azure DevOps Release pipeline. Everything is working, however I am unable to see the output/console log of the script extensions. All I can see the following message after the setting the extensions. RequestId IsSuccessStatusCode StatusCode ReasonPhrase
How can I redirect the console output of the CustomScriptExtension to the ADO release pipeline? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Azure VM extensions write the logs to a file on disk but do not seem to have an API that allows to stream the logs. Can you also submit a feature request so we can route this feedback to the service team managing VM Extensions? |
Beta Was this translation helpful? Give feedback.
Azure VM extensions write the logs to a file on disk but do not seem to have an API that allows to stream the logs.
Currently, you would have to add to your ADO pipeline a step to run a command that exports the logs from the VM for example using a PSRemoting session. This article explains how to upload a file but a similar approach could be used to download a file.
Can you also submit a feature request so we can route this feedback to the service team managing VM Extensions?