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
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:
Comments
Post a Comment