azure-pipelines-tasks: IIS Web App Manage - Error when using double back slash in Physical Path

Required Information

Question, Bug, or Feature?
Type: Bug

Enter Task Name: IIS Web App Manage

Environment

  • Server - Azure Pipelines

  • Account Name: gary.huynh@thedocyard.co

  • Project Name: tdyapp

  • If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

    • Project Name: tdyapp
    • Build Definition Id: 12
    • Build Definition Name: Alpha - Rolling Release
    • Build Number: Release-21
  • Agent - Hosted or Private: Private

  • Agent Version: 2.168.2

  • Agent OS: Windows_NT

  • OS of machine running on: Windows 10

Issue Description

Im currently using IIS Web App Manage task to update the IIS Website Physical path. When try to update it to a physical path with a network unc path with double backslashes, i.e:

  • \\AzureShare\Website\1.0.0

image

i get the following error.

image

However, if i use a rooted drive path (i.e. C:\Website\1.1.0) it works fine.

Task logs

tasklog_4.log

Error logs

2020-05-20T01:21:16.2086575Z ##[error]The parameter is incorrect.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

@ChrisFulstow, i have added the credentials into cmdkey and its working now, Thank you for your help, much appreciated. 🙂

@ChrisFulstow Thanks for the help!