Skip to content

Instantly share code, notes, and snippets.

@hibri
Created October 5, 2022 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hibri/5e2ce57377d1ebddfaa71237ab95c593 to your computer and use it in GitHub Desktop.
Save hibri/5e2ce57377d1ebddfaa71237ab95c593 to your computer and use it in GitHub Desktop.
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