Created
October 5, 2022 14:43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MyStack(Construct scope, string id) : base(scope, id) | |
{ | |
var azurermProviderConfig = new AzurermProviderConfig() { Features = new AzurermProviderFeatures() }; | |
var azurermProvider = new AzurermProvider(this, "AzureRm", azurermProviderConfig); | |
var resourceGroup = BuildResourceGroup(); | |
var storageAccountBuilder = new StorageAccountBuilder(this) | |
.InResourceGroup(resourceGroup) | |
.WithName("hibrifuncstr"); | |
var servicePlanBuilder = new AppServicePlan(this) | |
.InResourceGroup(resourceGroup) | |
.WithName("test-plan"); | |
new Function(this) | |
.InResourceGroup(resourceGroup) | |
.WithStorageAccount(storageAccountBuilder.Build()) | |
.UsingAppServicePlan(servicePlanBuilder.Build()) | |
.WithName("hibrifunc") | |
.Build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment