我的代码托管在 Visual Studio Team Services 存储库上,但它要求公共 git 存储库。我怎样才能做到这一点?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;
}