Azure / azure-quickstart-templates

Azure Quickstart Templates
https://aka.ms/azqst
MIT License
13.85k stars 16.02k forks source link

VSTS error in PS tasks #5368

Open g0pinath opened 5 years ago

g0pinath commented 5 years ago

--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

Sorry to hear you had a bad experience with one of the templates :worried: But, in case you're just asking a question, we're happy to help. You can also check if the question might already have been asked here https://github.com/Azure/azure-quickstart-templates/issues?utf8=%E2%9C%93&q=is%3Aissue

We've created an outline of recommended sections to fill out that will help make this Pull Request awesome!

--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

[Template Name goes here](Template link goes here)

Issue Details

The script given to import PFX to vault secret works well on local workstations. But when I am trying to add this to a VSTS pipeline task I am getting " Exception calling "Import" with "3" argument(s): "Access denied."

Repro steps (if necessary, delete otherwise)

1. 2. 3. 4. 5.

g0pinath commented 5 years ago

Actually this is not an issue with the template itself, but the VSTS agent. When I used the same code in a private build agent in VSTS it worked fine, problem is with hosted agents