I can use Azure SDK for .Net to create a azure web app, but I do not know how to deploy my project with the sdk.
var app = await azure.WebApps
.Define(app1Name)
.WithRegion(Region.USWest)
.WithNewResourceGroup(rgName)
.WithNewWindowsPlan(PricingTier.StandardS1)
.WithJavaVersion(JavaVersion.V8Newest)
.WithWebContainer(WebContainer.Tomcat8_0Newest)
.CreateAsync();
According to my research, if you want to use Azure SDK for .NET to deploy your web app to Azure App Service, you refer to the following code :
//use web deploy method to deploy
app5.Deploy()
.WithPackageUri("")//please provide the usl of your project
.WithExistingDeploymentsDeleted(true)
.Execute();
For more details, please refer to the sample .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.