0

My code is hosted on Visual Studio Team Services repository however it is asking for public git repository. How can i achieve this?WithPublicGitRepository

try
{
    var app = await azure.WebApps.Define(appName)
        .WithRegion(newAppService.Region)
        .WithNewResourceGroup(rgName)
        .WithNewFreeAppServicePlan()
        .WithAppSettings(newAppService.AppSettings)
        .DefineSourceControl()
        .WithPublicGitRepository("VsTs git url")
        .WithBranch("master")
        .Attach()
        .CreateAsync();
    return app.HostNames.First();                
}
catch (Exception ex) {
    throw ex;
}
PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62
User1911
  • 394
  • 1
  • 5
  • 22

1 Answers1

0

Public git repository is not supported in Visual Studio Team Services, you can use another public git repository, such as GitHub.

You can import repository to GitHub: Importing a repository with GitHub Importer

starian chen-MSFT
  • 33,174
  • 2
  • 29
  • 53