Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

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

Packages

No packages published

Languages