如何添加其他帐户以访问Azure文件存储 [英] How to add additional account to access Azure file storage

查看:146
本文介绍了如何添加其他帐户以访问Azure文件存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

是否可以创建其他帐户来访问Azure文件存储?我们大约有3名员工在同一个文件上工作,但是文件打开和同步遇到了很大的延迟.我不确定Azure如何处理文件锁.我们正在考虑创造 每个员工都有一个新帐户,以查看问题是否可以改善.谢谢!

Is there any way to create additional account to access Azure File storage? We have around 3 staffs working on the same file and experiencing a big delay for the file opening and syncing. I am not sure how Azure handle the file lock. We are thinking of creating a new account for each staff to see whether the problem can be improve. Thank you!

推荐答案

嗨Alleanza,

Azure文件共享的操作与Windows或其他平台上的SMB文件共享的操作相同;如果用户的应用程序打开了文件上的锁,具体取决于打开的锁的类型,则当应用程序持有该文件的句柄时,没有其他人可以写入该文件.那里 有多种类型的锁,有些允许他人在有人打开写操作时进行读取,有些则不允许在写入发生时进行所有读取,或者在读取发生时禁止进行所有写入.文件锁也可能不适用于整个文件-应用程序的功能非常强大 灵活性.这与共享其他用户无关.

尽管这与共享上的用户数量无关,但值得注意的是,今天,Azure文件共享上仅接受一个用户名/密码:即存储帐户名(用户名)和存储帐户密钥(密码) ).多种的 人们可以使用该用户名从不同的计算机,本地或云中同时登录共享,但是仍然只有一个用户登录共享.当我们将AAD身份验证和授权引入Azure文件时,这种情况将会改变 -用户将使用Windows身份而不是存储帐户名称/存储帐户密钥登录.请注意,即使具有此功能,也不会改变SMB中锁定的工作方式.

我的建议是查看您的应用程序如何使用锁.如果这是您正在开发的应用程序,则也许可以切换用于允许在同一文件上进行共同编辑的锁定类型,尽管请注意,这将需要在应用程序内产生额外的开销. 这很可能是您使用的由其他人编写的应用程序,在这种情况下,您将受到应用程序开发人员的控制.例如,对于Office应用程序,不允许通过SMB进行共同编辑(当然,有充分的理由不这样做:). 如果您正在处理Office文档,则SharePoint Online可能是获得协作功能的更好选择.

希望这会有所帮助!

谢谢

威尔·格里斯
程序管理器,Azure文件

Hi Alleanza,

Azure file shares operate the same as SMB file shares on Windows or other platforms; if a user's application opens a lock on a file, depending on the type of lock opened, nobody else can write to that file while the application is holding a handle to it. There are multiple kinds of locks, some allow others to read while somebody has a write open, others disallow all reads while writes are happening or all writes while reads all happening. File locks also may not apply to an entire file - applications have a great deal of flexibility. This has nothing to do with having other users on the share.

Although this has nothing to do with the number of users on the share, it's worth noting that today, only one username/password is accepted on an Azure file share: namely, the storage account name (username) and the storage account key (password). Multiple people can use this username to login to the share simultaneously, from different machines, on-premises or in the cloud, but it's still only one user logging on to the share. This will change when we bring AAD authentication and authorization to Azure Files - users will login with their Windows identities instead of a storage account name/storage account key. Please note that even with this feature, this will not change how locking works in SMB.

My suggestion is to look at how your application uses locks. If this is an application you are developing, perhaps you can switch the lock type used to allow co-editing on the same file, although note this will require additional overhead within your application. More likely, this is an application you are using written by somebody else, in which case you are at the mercy of the application developer. For example, co-editing is not allowed via SMB for Office applications (of course there are good reasons why not :)). If you're working on an Office document, SharePoint Online might be a better choice to get collaboration features.

Hope this helps!

Thanks,

Will Gries
Program Manager, Azure Files


这篇关于如何添加其他帐户以访问Azure文件存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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