Az Cli - Az Devops Wiki --file-path Parameter

Viewed 93

I am looking to create and update some Azure Devops Wiki pages for my project using Az Cli from an Azure Pipeline job.

However, the required commands (examples below) all have a --file-path attribute which is described as the "Path of the file input if content is specified in the file".


 az devops wiki page create --path 'my page' --wiki myprojectwiki --file-path a.txt

 az devops wiki page update --path 'my page' --wiki myprojectwiki --file-path a.txt 

Can anyone assist with examples of how this --file-path parameter can be set or passed, for example:

  1. An input file with a remote URL, e.g. http://.... ?
  2. An input file with an Azure Repo file path?
  3. An input file stored in a shared folder with a UNC path?

Unfortunately, the basic "a.txt" example provided in the two code snippets from docs.microsoft.com (above) don't exactly provide any clarity.

1 Answers

You'll need to provide the full path to the file, e.g. C:\users\johndoe\desktop\a.txt. Then the suggested commands will work.

Related