2
votes

I followed this article to auto deploy my GitLab master branch to Azure. Under the "Deployment" section in the Azure portal, I selected "Deployment options" -> "Choose Source", which presents these 3 options.

  1. Local Git Repository
  2. GitHub
  3. Bitbucket

There is no "External Repository" option as the article suggests, so dead end there. I thought perhaps I could accomplish this via the Azure CLI instead. I fumbled by way through the help screens and arrived at this command:

az webapp deployment source config --slot stage -u [MY_GITLAB_PROJECT_URL] --branch master --resource-group [MY_GROUP] --name [MY_PROJET_NAME]

The command errors with: "The parameter [MY_GITLAB_PROJECT_URL] has an invalid value". I tried the SSH url, the HTTPS url (with the .git suffix) and the URL to the repo. No dice.

Any suggestions? Im on the free trial plan, if that makes a difference.

1

1 Answers

4
votes

The reason why you are not seeing "External Repository" is that you have a linux based app and that feature is not there for linux based apps.

Linux CI/CD

However if your app were a windows based app, you would see external repositories as an option:

Windows CI/CD

You can put in a feature request for this here: https://feedback.azure.com/forums/169385-web-apps-formerly-websites