Intro:
I’m searching for a way to upload files towards sharepoint from our Azure DevOps Services Pipeline, the code throughs the error “Connect-SPOService : The ‘username’ argument is invalid”
Am I using the wrong argument?
Is there a better way to authenticate towards Sharepoint (because is a Pipeline Human intervention via “prompt” dialog box isn’t an option)
Regarding the “user value” it is an email like shown below:
$username = ‘MyUser@Email.com’
Is that what you were referring to? I mean that the user variable “value” should be in the form of an “email”?
Or is some different value I need to retrieve from a certain “Sharepoint” configuration?
As a reference that email is my corporate one and has full control under that SharePoint Space
I’m new regarding Sharepoint administration so perhaps I’m missing tons of context you already manage
Hi @matt-bloomfield, you are a genius I’ve been reading testing more and, I think my best option is to use “KeyVault” why? well because I cannot be delivering credentials through a “Prompt” because this will run in a Pipeline,
Could you help me with which command sentence/syntax should I use to call the “User” and Password store in KeyVault?
KeyVault is something I’m aware of but have not used myself and I’ve only recently starting used Azure Devops so I’m pretty new to the whole pipeline thing too.
Have a look at this tutorial, it looks like it will take you through all the necessary steps: