boundless-monkey-2042
07/29/2021, 2:50 PMvar wwwroot = new Storage.Blob("wwwroot", new Storage.BlobArgs
{
ResourceGroupName = resourceGroup.Name,
AccountName = storageAccount.Name,
ContainerName = staticWebsite.ContainerName,
Source = new FileArchive(".\\wwwroot.zip"),
ContentType = "Folder",
});
tall-librarian-49374
07/29/2021, 2:53 PMnew FileArchive("./wwwroot")
?boundless-monkey-2042
07/29/2021, 3:01 PMvar index_html = new Storage.Blob("index.html", new Storage.BlobArgs
{
ResourceGroupName = resourceGroup.Name,
AccountName = storageAccount.Name,
ContainerName = staticWebsite.ContainerName,
Source = new FileAsset("./wwwroot/index.html"),
ContentType = "text/html",
});
var notfound_html = new Storage.Blob("404.html", new Storage.BlobArgs
{
ResourceGroupName = resourceGroup.Name,
AccountName = storageAccount.Name,
ContainerName = staticWebsite.ContainerName,
Source = new FileAsset("./wwwroot/404.html"),
ContentType = "text/html",
});
const wwwroot = new storage.Blob("wwwroot", {
resourceGroupName: resourceGroup.name,
accountName: storageAccount.name,
containerName: staticWebsite.containerName,
source: new pulumi.asset.FileArchive(`./wwwroot`),
contentType: "folder",
});
error: Error: failed to register new resource index.html [azure-native😒torage:Blob]: 2 UNKNOWN: failed to compute asset hash: asset path './wwwroot' is a directory; try using an archive
tall-librarian-49374
07/29/2021, 4:02 PMboundless-monkey-2042
07/29/2021, 4:03 PM