powershell - TFS - No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription -


i trying run task on tfs requires ad set up. managed set connections, reason subscription on tfs not selected. not sure account have log in, set default subscription. -default parameter deprecated btw.

task add-on trying use downloadable here: https://marketplace.visualstudio.com/items?itemname=rbengtsson.appservices-start-stop&showreviewdialog=true

tfs build error: enter image description here

i tried set via power-shell: enter image description here

i have tested azure appservices stop task on side, , found task works azure classic connection type, while used azure resource manager connection type, got same error message you.

according source code of azure appservices stop task on github, task uses azure power shell below stop service:

$website = get-azurewebsite -name $webappname stop-azurewebsite -name $webappname 

it seems stop-azurewebsite works azure classic, can't find in using azure powershell azure resource manager.

in conclusion, if want use azure appservices stop task, need choose azure classic connection type:

enter image description here


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -