Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
384 stars 1.25k forks source link

az datafactory repository configuration resolves to git path when executed from bash #3005

Open riezebosch opened 3 years ago

riezebosch commented 3 years ago

Extension name (the extension in question)

datafactory

Description of issue (in as much detail as possible)

az datafactory factory create -n $factory -g $rg --factory-vsts-configuration account-name="" collaboration-branch="master" last-commit-id="???" project-name="" repository-name="" root-folder="/" tenant-id=""

{
  "additionalProperties": null,
  "createTime": "2021-01-29T13:34:03.837108+00:00",
  "eTag": "\"00009795-0000-0d00-0000-60265cd90000\"",
  "globalParameters": null,
  "id": "/subscriptions/***/resourceGroups/lb-dev-logistiekinfo/providers/Microsoft.DataFactory/factories/***",
  "identity": {
    "principalId": "***",
    "tenantId": "***"
  },
  "location": "westeurope",
  "name": "***",
  "provisioningState": "Succeeded",
  "repoConfiguration": {
    "accountName": "###",
    "collaborationBranch": "master",
    "lastCommitId": "refs/heads/adf_publish",
    "projectName": "###",
    "repositoryName": "###,
    "rootFolder": "C:/Program Files/Git/",
    "tenantId": "***",
    "type": "FactoryVSTSConfiguration"
  },
  "resourceGroup": "###",
  "tags": {},
  "type": "Microsoft.DataFactory/factories",
  "version": "2018-06-01"
}

See the rootFolder property.

We worked around this by using this: root-folder=''

yonzhan commented 3 years ago

datafactory

yungezz commented 3 years ago

hi @qwordy could you pls have a look? thanks

qwordy commented 3 years ago

@yungezz @riezebosch Will do, thanks