tag:help.appveyor.com,2012-11-13:/discussions/questions/3110-build-configurations-for-automatic-packaging-azure-web-jobAppVeyor: Discussion 2018-08-25T02:15:11Ztag:help.appveyor.com,2012-11-13:Comment/418634372017-02-01T23:59:49Z2017-02-01T23:59:49ZBuild configurations for automatic packaging Azure web job<div><p>I see nothing wrong with your configuration, however usually
files which need to be deployed are in
<code>bin\$(configuration)</code> sub folder for the project
folder. I assume that <code>BrightSkool.EmailWebJob</code> is in
the root of project folder and you can do <code>dir
BrightSkool.EmailWebJob</code> during the build.</p>
<p>Please send us build log to understand the problem more.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/418634372017-02-02T06:06:23Z2017-02-02T06:06:24ZBuild configurations for automatic packaging Azure web job<div><p>Hi Ilya,</p>
<p>I managed to zip the artifacts by pointing artifacts path to
debug folder in the yml configurations. Below is the updated
yml</p>
<pre>
<code>version: 1.0.{build}
before_build:
- cmd: nuget restore BrightSkool.EmailWebJob.sln
build:
verbosity: minimal
artifacts:
# This will zip up all files in the bin\debug or bin\release folder.
- path: BrightSkool.EmailWebJob\bin\Debug
name: BrightSkoolEmail
type: zip
deploy:
- provider: AzureWebJob
website: bsnotification
username: $bsnotification
password:
secure: dTv8ubx5ziYDswQqZmF
artifact: BrightSkoolEmail</code>
</pre>
<p>Now am facing different issue. Even though i give proper
credentials of web job.</p>
<pre>
<code>401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.</code>
</pre>
<p>attached my build log for your reference. Thank you</p>
<ul>
<li>Madhu</li>
</ul></div>Madhu Babutag:help.appveyor.com,2012-11-13:Comment/418634372017-02-02T18:38:32Z2017-02-02T18:38:32ZBuild configurations for automatic packaging Azure web job<div><p>Hi Madhu,</p>
<p>With web jobs you can use credentials from publishing profile
you download, or deployment credentials you set on Azure portal
(more details about those credentials here <a href="https://github.com/projectkudu/kudu/wiki/Deployment-credentials">https://github.com/projectkudu/kudu/wiki/Deployment-credentials</a>)</p>
<p>From what I see your username ($bsnotification) looks like it is
from publishing profile. But passwords provided in publishing
profile are much longer, and after AppVeyor encrypted them, they
are even longer. Do if you decide to use credentials from
publishing profile, you need to take password from it (file should
look like bsnotification.azurewebsites.net.PublishSettings),
encrypt it with <a href="https://ci.appveyor.com/tools/encrypt">https://ci.appveyor.com/tools/encrypt</a>
and then put to YAML.</p>
<p>Or you can use Deployment (user level) credentials you can setup
in Azure portal. In this case name is what you decide to do, not
$bsnotification. By the way advantage of using deployment
credentials is that you can use them with deployment slots.</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/418634372017-02-22T12:29:21Z2017-02-22T12:29:22ZBuild configurations for automatic packaging Azure web job<div><p>Hi Ilya,</p>
<p>I used the credentials from the downloaded publishing profile,
Only thing is i just typed the part of it in this post, since i
don't want to expose the password.</p>
<p>Next thing, i encrypted the password downloaded from publishing
profile using the provided link and placed the password.</p>
<p>No luck, still same issue<br></p>
<pre>
<code>401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.</code>
</pre>
<p>attached my latest yml and build logs, for your reference</p>
<p>Regards,<br>
Madhu</p></div>Madhu Babutag:help.appveyor.com,2012-11-13:Comment/418634372017-02-22T20:41:55Z2017-02-22T20:41:55ZBuild configurations for automatic packaging Azure web job<div><p>Hi Madhu,</p>
<p>I believe that problem is indentation. Add 2 more spaces before
<code>secure</code> and check if this works. YAML format is very
sensitive to indentation, and if you are not sure you can always
try to do basic settings in UI, then use <code>Export YAML</code>
menu.</p>
<p>Ilya.</p></div>Ilya Finkelshteyn