将Windows目录映射到Azure文件存储 [英] Map windows directory to Azure File Storage

查看:60
本文介绍了将Windows目录映射到Azure文件存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文件存储中创建了一个测试目录,但是如何映射到它以便从Windows轻松访问对我来说不起作用。我为这个客户端创建了一个Blob存储登录,但不满足我的安全性。我想将一些活动的
目录更改为文件存储以便频繁访问,并将Blob存储保留为存档。 


所以我需要持久登录文件存储我可以在机器启动时执行,以便客户端始终可以访问其文件。 我使用CMD并创建了一个简短的脚本来安装Blob我只是想为文件存储做些什么。  


谢谢,我已经和我斗争了好几个月了坦率地说,我没有选择。  (我的客户正在推动解决方案!) 


Steve Malmquist

解决方案

您好此时,Steve,


对Azure文件共享的访问权限基于存储帐户名和存储帐户密钥。它不以任何方式与Azure AD集成。当您在Windows操作系统中创建映射到Azure文件共享的驱动器时,您需要将存储帐户名称
指定为用户名,并将两个存储帐户密钥之一指定为用户密码。


通过在Credential Manager中存储存储帐户名/存储帐户密钥(通过cmdkey命令),可以使此映射在重新启动后保持不变。
的详细信息
https: //docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows


hth

Marcin


I have created a test directory in File Storage but how to map to it for easy access from Windows isn't working for me. I created a login for Blob Storage for this client that doesn't satisfy the security how I'd like. I want to change some of their active directories to File Storage for frequent access and leave the Blob storage as an archive. 

So I need a persistent login for File Storage that I can have execute when the machine boots so the client can always have access to their files.  I used CMD and created a short script to mount the Blob I just want something to do that for File Storage.  

Thank you, I've fought with this for months and frankly I'm out of options.  (My client is pushing for a solution!) 

Steve Malmquist

解决方案

Hi Steve,

access to Azure file shares is, at this point, based on the storage account name and storage account keys. It does not integrate in any way with Azure AD. When you create a drive mapping to an Azure file share from within a Windows OS, you need to specify the storage account name as the user name and one of two storage account keys as the user's password.

You can make this mapping persist across reboots by storing the storage account name/storage account key in the Credential Manager (via cmdkey command). Details at https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows

hth
Marcin


这篇关于将Windows目录映射到Azure文件存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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