-
-
Save cnunciato/49ed2e4448ea3edb26e307f89b146f32 to your computer and use it in GitHub Desktop.
Program.cs
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
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