如何获取wwwroot中的Azure App服务文件夹

发布于 2025-01-27 21:59:59 字数 214 浏览 2 评论 0原文

在特定版本数量之后,我有一个查询可以从Azure应用服务中删除文件夹。 我使用SFTP连接部署,还有一个其他选项可以在目标上删除其他文件,但这对我没有帮助。由于我想在部署后删除特定文件。它删除了所有文件。

我尝试过 azure rest api 这也没有帮助我。

需要更好的解决方案。

I have a Query to remove folders from Azure App service after specific number of Releases.
I deploy using SFTP connection and there is an additional option to Remove Additional Files at Destination but this does not helps me. Since I want to remove specific files after deployments. It remove all the files.

I have tried Azure Rest api this too didn't help me out.

Need a better solution.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沉睡月亮 2025-02-03 21:59:59
  • 在Azure Web应用中查看,添加,编辑和删除文件
  • 您可以使用kudu kudu服务的root URL 是 https://mysite.scm.azurewebsites.net/
  • 查看kudu服务仪表板
    Azure Portal =>您的Web App =>选择高级工具 => GO => 调试控制台 - > cmd

”在此处输入图像说明“

  • 来获取应用程序主目录
  • 您可以通过单击site folder => wwwroot文件夹 删除文件/文件夹单击减去图标

”在此处输入图像描述“

  • You can View, Add, Edit, and Remove files in Azure Web App using Kudu
  • Root URL of the Kudu service is https://mysite.scm.azurewebsites.net/
  • To view Kudu service dashboard
    Azure Portal => your Web App => Select Advanced Tools => Go => Debug Console -> CMD:

enter image description here

  • You can get to your application home directory by clicking the site folder =>wwwroot folder
  • To remove a files/folder click the minus icon

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文