diff --git a/deploy/app_function.go b/deploy/app_function.go index 79fdaaf..e8facd4 100644 --- a/deploy/app_function.go +++ b/deploy/app_function.go @@ -118,6 +118,10 @@ func (o *FunctionApp) Plan(ctx context.Context, pctx *config.PluginContext, r *r ContentType: fields.String("application/zip"), } + if o.Build.LocalArchiveHash == "" { + r.GetAppResource(o.App, "archive", o.Archive) + } + _, err = r.RegisterAppResource(o.App, "archive", o.Archive) if err != nil { return err