简体   繁体   English

如何访问上传到 Azure Webjob 的文件?

[英]How to access files uploaded to an Azure Webjob?

Some time ago I created with help from a friend an Azure Webjob using this post .前段时间,我在朋友的帮助下使用这篇文章创建了 Azure Webjob。 I had the job running for a while, then stopped it.我让工作运行了一段时间,然后停止了它。 I would like now to access/download the files/zip-folder I uploaded back then, but I don't know how to do it.我现在想访问/下载我当时上传的文件/zip 文件夹,但我不知道该怎么做。 More precisely, I want to get to what is labelled as sample.zip in the image below:更准确地说,我想了解下图中标记为 sample.zip 的内容:

在此处输入图片说明

I had the zip-file also locally saved on my computer, but ever since I have installed a new OS and deleted my old files.我的计算机上也有本地保存的 zip 文件,但是自从我安装了新操作系统并删除了旧文件之后。 I get that far to find the old job and open it (see pics below), but afterwards I am clueless.我走了那么远才找到旧工作并打开它(见下图),但后来我一无所知。 Can you walk me through what to do to get to zip-folder?你能教我怎么做才能进入 zip 文件夹吗? Tnx Tnx

PS: In case it matters, I created at some point an Ubuntu virtual environment for the job (in case terminal commands are needed to get to the zip-folder) PS:以防万一,我在某个时候为这项工作创建了一个 Ubuntu 虚拟环境(以防需要终端命令来访问 zip 文件夹)

在此处输入图片说明 在此处输入图片说明

You can do it in two different ways.你可以用两种不同的方式来做到这一点。

  • First Option is to use the Kudu Console to download the content of the WebJob.第一个选项是使用 Kudu Console 下载 WebJob 的内容。
    • Open Kudu in App Service -> Click on Debug Console -> access it until your folder opens up and it will let you download the file.在应用服务中打开 Kudu -> 单击调试控制台 -> 访问它,直到你的文件夹打开,它会让你下载文件。

D:\\home\\site\\wwwroot\\App_Data\\jobs\\triggerType == Continous||TimerTriggered D:\\home\\site\\wwwroot\\App_Data\\jobs\\triggerType == Continous||TimerTriggered

酷都访问

Kudu 控制台

  • Second through Console in App Service and here is the command for viewing the contents of the WebJob.第二个通过应用服务中的控制台,这里是查看 WebJob 内容的命令。

D:\\home\\site\\jobs{​​​​triggerType}​​​​ where triggerType == Continous || D:\\home\\site\\jobs{ triggerType} 其中 triggerType == Continous || TimerTriggered定时器触发

If this doesnt work, you can try this command -如果这不起作用,您可以尝试此命令 -

D:\\home\\site\\wwwroot\\App_Data\\jobs\\triggerType == Continous||TimerTriggered D:\\home\\site\\wwwroot\\App_Data\\jobs\\triggerType == Continous||TimerTriggered

This way, it will list out the contents of the webjob and files associated in the webjob.这样,它就会列出 webjob 的内容和 webjob 中关联的文件。 Please see below.请参阅下文。

安慰

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM