AzureManagement图书馆创建的应用程序服务链接VSTS的Git
问题描述:
我的代码是在Visual Studio团队服务知识库但是它所需要的公共git仓库主持。我怎样才能做到这一点? WithPublicGitRepository
AzureManagement图书馆创建的应用程序服务链接VSTS的Git
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;
}
答
公共Git仓库,没有Visual Studio团队服务支持,您可以使用另一个公共git仓库,比如GitHub的。
您可以导入库到GitHub上:Importing a repository with GitHub Importer
@Will更新的代码格式正确无误。 – User1911