I have successfully used the below commands to update our Azure DevOps project wiki in Powershell ISE.
$etagVar = (az devops wiki page show --org https://dev.azure.com/[MyOrg] --project [MyProjectName] --path '/MyWiki/HelloWorld' --wiki [MyWiki_wiki] --query eTag -o tsv)
az devops wiki page update --path 'MyWikiPath/HelloWorld' --wiki [MyWiki_wiki --content "Yessssss, it worked !!!" --version $etagVar
I now need to incorporate these two commands into a YAML Azure Pipeline. I am not particularly bothered whether this is done using Bash, PowerShell, Windows Batch Script or any Azure pipeline Task for that matter. As long as it works, I have no qualms at all.
So far, I've tried a Bash task and it's been hugely unsuccessful. Any suggestions or ideas would therefore be most appreciated.