I want to deploy web api to local IIS servers by embedded in Azure DevOps IIS deploy tools. For correct deploy app need observe the following rules/order because API URL have format like: http://host/api/dev/
on web server IIS side:
WEB-SITE-NAME -virtual directory: api/ --virtual directory: api/dev ---application WEB-SITE-NAME/api/dev
i learned how create this structure on CLI appcmd:
%systemroot%\system32\inetsrv\AppCmd.exe add vdir /app.name:"WEB-API-TEST/" /path:/api /physicalpath:C:\wwwroot-api %systemroot%\system32\inetsrv\AppCmd.exe add vdir /app.name:"WEB-API-TEST/" /path:/api/dev/ /physicalpath:c\wwwroot\WEB-API %systemroot%\system32\inetsrv\AppCmd.exe add app /site.name:"WEB-API-TEST" /path:/api/dev /physicalpath:c:\wwwroot\web-api
these commands correctly work.
I tried used those options in Azure Release Pipeline but have many problems: