sparse-intern-71089
08/01/2022, 2:41 PMclean-truck-93285
08/01/2022, 7:46 PMswift-apple-26877
08/02/2022, 11:34 AMswift-apple-26877
08/02/2022, 11:35 AMclean-truck-93285
08/02/2022, 2:44 PMclean-truck-93285
08/02/2022, 2:50 PMswift-apple-26877
08/02/2022, 2:53 PMclean-truck-93285
08/02/2022, 3:27 PMclean-truck-93285
08/02/2022, 3:34 PMclean-truck-93285
08/02/2022, 3:43 PMusing System.Collections.Generic;
using Pulumi.AzureNative.Resources;
using Pulumi.AzureNative.Web;
using Pulumi.AzureNative.Web.Inputs;
return await Pulumi.Deployment.RunAsync(() =>
{
// Create an Azure Resource Group
var resourceGroup = new ResourceGroup("resourceGroup", new ResourceGroupArgs
{
Location = "SouthCentralUs",
ResourceGroupName = "scu-dev-pulumi-rg"
});
var appServicePlan = new AppServicePlan("appServicePlan", new AppServicePlanArgs
{
Location = "SouthCentralUs",
ResourceGroupName = resourceGroup.Name,
Name = "scu-dev-pulumi-asp",
HyperV = false,
IsSpot = false,
IsXenon = false,
Kind = "app",
MaximumElasticWorkerCount = 1,
PerSiteScaling = false,
Reserved = false,
TargetWorkerCount = 0,
Sku = new SkuDescriptionArgs
{
Capacity = 1,
Family = "B",
Name = "B1",
Size = "B1",
Tier = "Basic"
}
});
var appService = new WebApp("appService", new WebAppArgs
{
Location = "SouthCentralUs",
ResourceGroupName = resourceGroup.Name,
Name = "scu-dev-pulumi-web",
ServerFarmId = appServicePlan.Id,
HyperV = false,
IsXenon = false,
Kind = "app",
Reserved = false,
SiteConfig = new SiteConfigArgs
{
NetFrameworkVersion = "v6.0",
Use32BitWorkerProcess = false,
WindowsFxVersion = "v6.0"
}
});
var metaData = new WebAppMetadata("metaData", new WebAppMetadataArgs
{
ResourceGroupName = resourceGroup.Name,
Name = appService.Name,
Properties = new Dictionary<string, string>
{
{"CURRENT_STACK", "dotnetcore"},
}
});
});
clean-truck-93285
08/02/2022, 3:44 PMswift-apple-26877
08/02/2022, 3:55 PMswift-apple-26877
01/04/2023, 1:13 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by