-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert the BlobCollection into a ComponentResource (#1)
* throw new NotSupportedException("The source provided is not a folder."); * 0.1.0
- Loading branch information
Showing
5 changed files
with
63 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
https://github.com/StefH/GitHubReleaseNotes | ||
|
||
GitHubReleaseNotes.exe --output CHANGELOG.md --exclude-labels question invalid doc --version 0.0.2 | ||
GitHubReleaseNotes.exe --output CHANGELOG.md --exclude-labels question invalid doc --version 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
# Pulumi.Azure.Extensions | ||
[![NuGet](https://buildstats.info/nuget/Pulumi.Azure.Extensions)](https://www.nuget.org/packages/Pulumi.Azure.Extensions) | ||
|
||
# Pulumi.Azure.Constants | ||
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(sourceFolder, new BlobCollectionArgs | ||
var blobCollection = new BlobCollection("static-website-files", new BlobCollectionArgs | ||
{ | ||
// Required | ||
Source = sourcefolder, | ||
Type = BlobTypes.Block, | ||
StorageAccountName = storageAccount.Name, | ||
StorageContainerName = "$web", | ||
AccessTier = BlobAccessTiers.Hot | ||
}); | ||
``` | ||
|
||
There is no need to specify the ContentType for each file, this is automatically resolved using [MimeTypeMap](https://github.com/samuelneff/MimeTypeMap). | ||
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters