Additional constants for creating and configuring Microsoft Azure resources with Pulumi Azure.
Instead of using custom strings when creating a resource:
var storageAccount = new Account("test", new AccountArgs
{
ResourceGroupName = resourceGroup.Name,
AccountReplicationType = "LRS", // You need to specify the correct string here
AccountTier = "Standard" // You need to specify the correct string here
});
With this package, you can easily use constants:
var storageAccount = new Account("test", new AccountArgs
{
ResourceGroupName = resourceGroup.Name,
AccountReplicationType = StorageAccountReplicationTypes.LocallyRedundantStorage, // You can now use a constant here
AccountTier = StorageAccountTiers.Standard // You can now use a constant here
});
Constants are defined for the following resources:
- AppServicePlan
- Blob
- ConfigurationStore (AppConfiguration)
- Cognitive (CognitiveServices)
- Container
- Core (ResourceGroup)
- FunctionApp
- Insights (ApplicationInsights)
- Storage