2017-09-07 13 views
1

私はAzureRMからの入力データを入力するVSTSタスクに取り組んでいます。誰でもデータバインディング参照(xxxxxxxとマークされています)を調べるのに役立ちますか?オートメーションアカウントに関するデータを取得したいのですが、それを見つけることができませんでした。どうもありがとう。VSTSタスク - Azure RMサービスリファレンス

"inputs":[ 
    { 
     "name": "ConnectedServiceName", 
     "type": "connectedService:AzureRM", 
     "label": "Azure RM Subscription", 
     "required": true, 
     "helpMarkDown": "Azure Resource Manager subscription", 
    }, 
    { 
     "name": "ResourceGroupName", 
     "label": "Resource Group", 
     "type": "pickList", 
     "required": true, 
     "helpMarkDown": "Provide the name of a resource group.", 
     "properties": { 
     "EditableOptions": "True" 
    }, 
    { 
     "name": "AutomationAccount", 
     "type": "pickList", 
     "label": "Automation Account Name", 
     "required": true, 
     "helpMarkDown": "Select or Type Automation Account Name", 
     "properties": { 
      "EditableOptions": "True" 
     } 
    } 
], 
"dataSourceBindings": [ 
    { 
     "target": "ResourceGroupName", 
     "endpointId": "$(ConnectedServiceName)", 
     "dataSourceName": "AzureResourceGroups" 
    }, 
    { 
     "target": "AutomationAccount", 
     "endpointId": "$(ConnectedServiceName)", 
     "dataSourceName": "xxxxxxxxxxxxxxxxx" 
    }, 
] 

答えて

0

私はそれを見つけました。エンドポイントAzureRMサービスのREST APIで

"dataSources": [ 
         "@{name=TestConnection; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}?api-version=2016-06-01; resourceUrl=; resultSelector=jsonpath:$}", 
         "@{name=AzureResourceGroups; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/resourcegroups?api-version=2016-02-01; resourceUrl=; resultSelector=jsonpath:$.value[*].name}", 
         "@{name=AzureStorageAccountRM; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.Storage/storageAccounts?api-version=2015-06-15; resourceUrl=; resultSelector=jsonpath:$.value[*].name}", 
         "@{name=AzureRMStorageAccountByLocation; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.Storage/storageAccounts?api-version=2015-06-15; resourceUrl=; resultSelector=jsonpath:$.value[?(@.location ==\u0027{{location}}\u0027)].name}", 
         "@{name=AzureRMStorageAccountIdByName; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.Storage/storageAccounts?api-version=2015-06-15; resourceUrl=; resultSelector=jsonpath:$.value[?(@.name ==\u0027{{storageAccountName}}\u0027)].id}", 
         "@{name=AzureVirtualMachinesV2Id; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.Compute/virtualMachines?api-version=2015-06-15; resourceUrl=; resultSelector=jsonpath:$.value[*].id}", 
         "@{name=AzureRMWebAppNames; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.Web/sites?api-version=2015-08-01; resourceUrl=; resultSelector=jsonpath:$.value[*].name}", 
         "@{name=AzureRMServerfarmId; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.Web/sites?api-version=2015-08-01; resourceUrl=; resultSelector=jsonpath:$.value[?(@.name==\u0027{{WebAppName}}\u0027)].properties}", 
         "@{name=AzureAppKind; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.Web/sites?api-version=2015-08-01; resourceUrl=; resultSelector=jsonpath:$.value[?(@.name==\u0027{{WebAppName}}\u0027)].properties}", 
         "@{name=AzureRMWebAppKind; endpointUrl={{{endpoint.url}}}/{{{ServerfarmId}}}?api-version=2015-08-01; resourceUrl=; resultSelector=jsonpath:$}", 
         "@{name=AzureRMWebAppResourceGroup; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.Web/sites?api-version=2015-08-01; resourceUrl=; resultSelector=jsonpath:$.value[?(@.name==\u0027{{WebAppName}}\u0027)].properties.resourceGroup}", 
         "@{name=AzureRMWebAppSlotsId; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/resourceGroups/{{{ResourceGroupName}}}/providers/Microsoft.Web/sites/$(WebAppName)/slots?api-version=2015-08-01; resourceUrl=; resultSelector=jsonpath:$.value[*].id}", 
         "@{name=AzureRMLoadBalancers; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/resourceGroups/{{{ResourceGroupName}}}/providers/Microsoft.Network/loadBalancers?api-version=2016-09-01; resourceUrl=; resultSelector=jsonpath:$.value[*].name}", 
         "@{name=AzureLocations; endpointUrl={{{endpoint.url}}}/subscriptions/$(endpoint.subscriptionId)/locations?api-version=2016-09-01; resourceUrl=; resultSelector=jsonpath:$.value[*].displayName}", 
         "@{name=AzureLocations2; endpointUrl={{{endpoint.url}}}/subscriptions/$(endpoint.subscriptionId)/locations?api-version=2016-09-01; resourceUrl=; resultSelector=jsonpath:$.value[*]}", 
         "@{name=AzureRMContainerRegistries; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.ContainerRegistry/registries?api-version=2017-03-01; resourceUrl=; resultSelector=jsonpath:$.value[*]}", 
         "@{name=AzureKeyVaults; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.KeyVault/vaults?api-version=2016-10-01; resourceUrl=; resultSelector=jsonpath:$.value[*].name}", 
         "@{name=AzureKeyVaultsList; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.KeyVault/vaults?api-version=2016-10-01; resourceUrl=; resultSelector=jsonpath:$.value[*]}", 
         "@{name=AzureKeyVaultListVaults; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.KeyVault/vaults?api-version=2016-10-01; resourceUrl=; resultSelector=jsonpath:$}", 
         "@{name=AzureKeyVaultListVaultsWithSkipToken; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.KeyVault/vaults?api-version=2016-10-01\u0026$skiptoken={{{SkipToken}}}; resourceUrl=; resultSelector=jsonpath:$}", 
         "@{name=AzureKeyVaultListSecretsTestConnection; endpointUrl=https://{{{KeyVaultName}}}.{{{endpoint.AzureKeyVaultDnsSuffix}}}/secrets?maxresults=1\u0026api-version=2016-10-01; resourceUrl={{{endpoint.AzureKeyVaultServiceEndpointResourceId}}}; resultSelector=jsonpath:$}", 
         "@{name=AzureKeyVaultGetSecretTestConnection; endpointUrl=https://{{{KeyVaultName}}}.{{{endpoint.AzureKeyVaultDnsSuffix}}}/secrets/nonexistingrandomsecretname?api-version=2016-10-01; resourceUrl={{{endpoint.AzureKeyVaultServiceEndpointResourceId}}}; resultSelector=jsonpath:$}", 
         "@{name=AzureKeyVaultSecrets; endpointUrl=https://{{{KeyVaultName}}}.{{{endpoint.AzureKeyVaultDnsSuffix}}}/secrets?api-version=2016-10-01; resourceUrl={{{endpoint.AzureKeyVaultServiceEndpointResourceId}}}; resultSelector=jsonpath:$}", 
         "@{name=AzureKeyVaultSecretsWithSkipToken; endpointUrl=https://{{{KeyVaultName}}}.{{{endpoint.AzureKeyVaultDnsSuffix}}}/secrets?api-version=2016-10-01\u0026$skiptoken={{{SkipToken}}}; resourceUrl={{{endpoint.AzureKeyVaultServiceEndpointResourceId}}}; resultSelector=jsonpath:$}", 
         "@{name=AzureVirtualMachineScaleSetNames; endpointUrl={{{endpoint.url}}}/subscriptions/{{{endpoint.subscriptionId}}}/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2017-03-30; resourceUrl=; resultSelector=jsonpath:$.value[*].name}", 
         "@{name=AzureRMDependencyData; endpointUrl={{{endpoint.url}}}/metadata/endpoints?api-version=1.0; resourceUrl=; resultSelector=jsonpath:$}" 
        ], 
+0

あなたはこれをどこから見つけましたか?私は 'connectedService:AzureRM'からdataSourceBindingsで利用可能なものを記述したドキュメントを見つけることができません – GGirard

0

利用可能なサービス・エンドポイント上のブログの記事、実際にあります:あなたはまた、全体の構造を取得するために、サービスエンドポイントと同じREST呼び出しを行うことができますようにService endpoints – Data sources

が見えるが、

https://YourVSTSSubscription.visualstudio.com/defaultcollection/_apis/distributedtask/serviceendpointtypes?type=AzureRM 
関連する問題