-
Notifications
You must be signed in to change notification settings - Fork 14
azure-arm-template: get CustomScriptExtension output #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I was able to run the ARM template directly against Azure, so that part is working correctly 🎉 Now we only have to make sure that GitHub outputs the logs correctly, but that should be relatively straightforward by doing something like |
Ok, let's see if this works (I'll remove the VM right after creation). |
We want to know the output that the CustomScriptExtension gives us, so let's output it from the ARM template. That way, we can access it from the azure/arm-deploy GitHub Action in a follow-up commit. Signed-off-by: Dennis Ameling <[email protected]>
6f7904c
to
0e87a06
Compare
"UriFileNamePieces": "[split(parameters('postDeploymentPsScriptUrl'), '/')]", | ||
"firstFileNameString": "[variables('UriFileNamePieces')[sub(length(variables('UriFileNamePieces')), 1)]]", | ||
"firstFileNameBreakString": "[split(variables('firstFileNameString'), '?')]", | ||
"firstFileName": "[variables('firstFileNameBreakString')[0]]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken directly from the original template we used earlier.
We want to see the output of the CustomScriptExtension in the pipeline, as it contains helpful info on things like the GfW and GitHub Actions runner versions that got installed. Signed-off-by: Dennis Ameling <[email protected]>
0e87a06
to
5e22fa6
Compare
It works!! 🎉 (Have just deleted that VM too) |
Exciting! ❤️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful work, thank you very much!
Used this for inspiration.