Skip to content

Instantly share code, notes, and snippets.

@cnunciato
Created December 6, 2022 21:51
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 cnunciato/49ed2e4448ea3edb26e307f89b146f32 to your computer and use it in GitHub Desktop.
Save cnunciato/49ed2e4448ea3edb26e307f89b146f32 to your computer and use it in GitHub Desktop.
Program.cs
using Pulumi;
using Pulumi.Azure.Core;
using Pulumi.Azure.Storage;
return await Deployment.RunAsync(() =>
{
var resourceGroup = new ResourceGroup("resourceGroup");
// Create a storage account.
var storageAccount = new Account("storage", new AccountArgs
{
ResourceGroupName = resourceGroup.Name,
AccountReplicationType = "LRS",
AccountTier = "Standard"
}).Name.Apply(storageAccountName => {
// Do something with the name of the storage account.
Pulumi.Log.Info(storageAccountName);
// Return the name.
return storageAccountName;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment