Skip to content

Additional constants for creating and configuring Microsoft Azure resources with Pulumi.Azure

License

Notifications You must be signed in to change notification settings

StefH/Pulumi.Azure.Constants

Repository files navigation

NuGet

Pulumi.Azure.Constants

Additional constants for creating and configuring Microsoft Azure resources with Pulumi Azure.

Usage

Current

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
});

New

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

Constants are defined for the following resources:

  • AppServicePlan
  • Blob
  • ConfigurationStore (AppConfiguration)
  • Cognitive (CognitiveServices)
  • Container
  • Core (ResourceGroup)
  • FunctionApp
  • Insights (ApplicationInsights)
  • Storage

About

Additional constants for creating and configuring Microsoft Azure resources with Pulumi.Azure

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages