Visual Studio使用ServiceDefinition.csdef设置文件夹权限 [英] Visual Studio Set Folder Permissions Using ServiceDefinition.csdef

查看:105
本文介绍了Visual Studio使用ServiceDefinition.csdef设置文件夹权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 在Azure上运行的云服务(经典)网站(Visual Studio 2015)。我需要将其中一个文件夹的权限更改为"读/写"。我知道我可以手动在approot或siteroot文件夹中执行此操作,但这些权限会被反复覆盖

I have  Cloud Services (Classic) website (Visual Studio 2015) running on Azure. I need to change the permissions of one of the folders to Read/ Write. I know I can do this in the approot or siteroot folder manually but these permissions get overwritten every now and again.

据我所知,使用ServiceDefinition.csdef设置权限是这样做的正确方法,但是怎么做?

From what I understand, setting the permission using ServiceDefinition.csdef is the proper way to do it but how?

推荐答案

我看到这样做的唯一方法是手动更改approot或siteroot正如你的建议。如果设置被覆盖,则听起来可能有GPO正在重置权限。 

The only way I have seen this done is by changing the approot or siteroot manually as you suggest. If the settings are getting overwritten it sounds like there might be a GPO that is resetting the permissions. 

堆栈溢出的一些用户发现了一些有趣的工作来设置您可能会觉得有用的权限

Some users on stack overflow found some interesting work arounds to set permissions you might find useful

https://stackoverflow.com/questions/50111222/how-to-set-file-folder-permission-for-azure-cloud-service-package

https://stackoverflow.com/questions/50111222/how-to-set-file-folder-permission-for-azure-cloud-service-package

您是否尝试登录与云服务关联的虚拟机并更改权限?这会被覆盖吗? 

Have you attempted to login to the Virtual Machine associated with the cloud service and changing permissions? Does that get overwritten as well? 

否则,你能分享一些你发现可以通过ServiceDefinition做到这一点的链接吗?我找不到与此有关的任何内容。 

Else, can you share some links of where you found you can do it via ServiceDefinition? I am not finding anything relating to that. 


这篇关于Visual Studio使用ServiceDefinition.csdef设置文件夹权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆