https://github.com/stefh/pulumi.azure.extensions
This repository contains extensions to Pulumi Azure (e.g. BlobCollection)
https://github.com/stefh/pulumi.azure.extensions
azure blob blob-storage extensions pulumi pulumi-azure storage
Last synced: 24 days ago
JSON representation
This repository contains extensions to Pulumi Azure (e.g. BlobCollection)
- Host: GitHub
- URL: https://github.com/stefh/pulumi.azure.extensions
- Owner: StefH
- License: mit
- Created: 2020-05-02T09:44:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T18:31:26.000Z (almost 5 years ago)
- Last Synced: 2024-04-14T13:08:23.025Z (about 1 year ago)
- Topics: azure, blob, blob-storage, extensions, pulumi, pulumi-azure, storage
- Language: C#
- Size: 49.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Pulumi.Azure.Extensions
[](https://www.nuget.org/packages/Pulumi.Azure.Extensions)
[](https://codecov.io/gh/StefH/Pulumi.Azure.Extensions)Additional extensions for Microsoft Azure resources with [Pulumi Azure](https://github.com/pulumi/pulumi-azure).
The following extensions are defined:
### Storage
#### BlobCollection
_Type:_ `azure-extensions:storage:BlobCollection`When you want to publish all files from a Blazor WASM website to an Azure Storage Static Website, use the code below:
``` c#
string sourceFolder = "C:\Users\xxx\Documents\GitHub\BlazorApp\publish\wwwroot";
var blobCollection = new BlobCollection("static-website-files", new BlobCollectionArgs
{
// Required
Source = sourcefolder,
Type = BlobTypes.Block,
StorageAccountName = storageAccount.Name,
StorageContainerName = "$web",
AccessTier = BlobAccessTiers.Hot
});
```Notes:
- empty files are skipped
- there is no need to specify the ContentType for each file, this is automatically resolved using [MimeTypeMap](https://github.com/samuelneff/MimeTypeMap).