the question relates to the following commit:
https://github.com/Microsoft/vso-agent-tasks/commit/8188a0275ffa303620b092fd9fb6fdf9de33a0bc
I started out with defining resource definitions and looked at several vso tasks as an example. Then I stumbled upon sourceDefinitions being replaced with dataSourceBindings.
Is there any documentation available on how to use these and the possible dataSourceNames?
my question relates to azure rm automation accounts and resource group names.
Where one would be a parameter to the accountname datasource.
Thanks in advance,
//Stijn
@yaananth IIRC you know the details of this stuff, correct?
@ericsciple I am not aware of any docs, @roniga might know about it.
@roniga please comment
Adding Muthu @kmkumaran
Any chance you can open-source this so we can utilize whatever currently exists in the absence of documentation?
I have already come across the following items that would be nice to have in a pickList:
Thanks!
@omeshp @GitHubSriramB can one of you comment on it?
RM added binding. Waiting for comment and/or documentation pointer.
@gregjhogan Datasource bindings for Azure endpoint (or for any other endpoint) can be obtained by querying the service endpoint type:
e.g.
https://fabfiber.visualstudio.com/defaultcollection/_apis/distributedtask/serviceendpointtypes?type=Azure
This will retrieve the details of Azure (Classic) endpoint type. The details will include the data sources supported by the endpoint type.
We are in the process of documenting details on the service endpoint REST APIs & how to customize service endpoints. We don't have anything to share with you as such right now.
@GitHubSriramB thanks for the info! I don't really care about classic (ASM) but it looks like ARM endpoint info can be found here: https://instance-name.visualstudio.com/defaultcollection/_apis/distributedtask/serviceendpointtypes?type=AzureRM
Thanks!
@GitHubSriramB thanks for the info! It's really valuable!
However, I can get informations on the 5 default service endpoint types (Azure, AzureRM, ServiceFabric, Chef and Jenkins) but I can't get anything for the GitHub endpoint, although I know it has some datasources exposed to list repos and branches.
Do you know another way to pull these informations on endpoint types not listed by the service you mentionned?
Thanks again!
@asiffermann We currently don't support dataSources for GitHub endpoint. Will let you know in case we start to support them going forward.
@asiffermann To clarify - we don't support datasources for any other endpoint type that isn't returned from the API.