Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support webapp windows container #1148

Merged
merged 5 commits into from
Oct 12, 2020
Merged

Conversation

weidongxu-microsoft
Copy link
Member

fix #1146

Comment on lines 173 to 185
var appServicePlan = appServiceManager.AppServicePlans
.Define(AppServicePlanName1)
.WithRegion(Region.USEast)
.WithNewResourceGroup(GroupName1)
.WithPricingTier(PricingTier.PremiumP1v3)
.WithOperatingSystem(OperatingSystem.Windows)
.Create();

var webApp = appServiceManager.WebApps.Define(WebAppName1)
.WithExistingWindowsPlan(appServicePlan)
.WithExistingResourceGroup(GroupName1)
.WithPublicDockerHubImage("mcr.microsoft.com/azure-app-service/samples/aspnethelloworld:latest")
.Create();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Serve as sample as well.

From Portal, web app with windows docker seems had to use PremiumP1v3 or higher.

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@@ -156,5 +156,43 @@ public void WebAppWithoutPhp()
}
}
}

[Fact]
public void CanCRUDWebAppWithContainer()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be better ...WithWindowsContainer?

@weidongxu-microsoft weidongxu-microsoft merged commit 391e9bf into master Oct 12, 2020
@weidongxu-microsoft weidongxu-microsoft deleted the webapp-windows-container branch October 12, 2020 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Unable to deploy docker image to the Web App with windows serviceplan
2 participants