Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefh/pulumi.azure.constants
Additional constants for creating and configuring Microsoft Azure resources with Pulumi.Azure
https://github.com/stefh/pulumi.azure.constants
azure constants pulumi resources
Last synced: 18 days ago
JSON representation
Additional constants for creating and configuring Microsoft Azure resources with Pulumi.Azure
- Host: GitHub
- URL: https://github.com/stefh/pulumi.azure.constants
- Owner: StefH
- License: mit
- Created: 2020-04-25T13:38:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T09:52:12.000Z (over 4 years ago)
- Last Synced: 2024-04-14T13:08:26.334Z (7 months ago)
- Topics: azure, constants, pulumi, resources
- Language: C#
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![NuGet](https://buildstats.info/nuget/Pulumi.Azure.Constants)](https://www.nuget.org/packages/Pulumi.Azure.Constants)
# Pulumi.Azure.Constants
Additional constants for creating and configuring Microsoft Azure resources with [Pulumi Azure](https://github.com/pulumi/pulumi-azure).## Usage
### Current
Instead of using custom strings when creating a resource:
``` c#
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:
``` c#
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