ambitious-crayon-56788
01/28/2020, 1:57 PMazure.appservice.ArchiveFunctionApp
, but when I add the zipBlob
property and remove the archive
property, I'm met with an error -
Error: Deployment [archive] must be provided.The docs describe
zipBlob
as "The blob containing all the code for this FunctionApp".
If I leave the archive
property in place, two blobs are uploaded to Storage - one is my zipBlob
and the other is the randomly named blob created by the ArchiveFunctionApp
.
I'm guessing that there is a way to do this, but the docs seem pretty light on details (in fact they don't seem to mention archive
at all), so I'm not too sure where to go from here?
• Documentation: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/azure/appservice/#ArchiveFunctionApp
const functionApp = new azure.appservice.ArchiveFunctionApp("archiveFunctionApp", {
name: "my-function-app",
resourceGroupName: resourceGroup.name,
archive: new pulumi.asset.FileArchive("./MyArchive"),
plan: appServicePlan,
account: storageAccount,
container: storageContainer,
zipBlob: zipBlob,
version: "~2",
appSettings: {
FUNCTIONS_WORKER_RUNTIME: "powershell"
}
});
tall-librarian-49374
01/28/2020, 2:02 PMzipBlob
? Can you show the snippet?archive
for whatever blob you want to use.ambitious-crayon-56788
01/28/2020, 2:04 PMtall-librarian-49374
01/28/2020, 2:05 PMzipBlob
is the property of ArchiveFunctionApp
itself - it’s an output from the resource.ambitious-crayon-56788
01/28/2020, 2:08 PMazure.storage.ZipBlob
resource?tall-librarian-49374
01/28/2020, 2:12 PMambitious-crayon-56788
01/28/2020, 2:36 PMtall-librarian-49374
01/28/2020, 3:08 PMambitious-crayon-56788
01/28/2020, 3:11 PM