User-271186128 posted
Hi D.Eason,
Welcome to asp.net forum.
401-unauthorized: access is denied due to invalid credentials
According to your Power shell script, I suppose the issue is related to the username.
Since the deployment username contains a '$' in the beginning, then PowerShell will treats it as a local variable instead of a literal string.
To escape the username, we need to add a '`(backtick)' in front of the $ sign. Like this:
$username = "`$websitename"
Best regards,
Dillion