我一直在努力寻找一些有助于解释的资源,以及我们如何将文件存储与Web App Service一起使用.
有一些方法可以将它与旧的Web角色一起使用,请点击此处http://fabriccontroller.net/blog/posts/using-the-azure-file-service-in-your-cloud-services-web-roles-and-工人角色/
但是,"Azure Web服务"中没有OnStart()方法.
在门户中创建Azure文件共享并复制PowerShell脚本以将其连接为驱动器Q :(已验证未使用).响应:
New-PSDrive : The network resource type is not correct
At line:3 char:1
+ New-PSDrive -Name Q -PSProvider FileSystem -Root "\\xxxx.file.c ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Q:PSDriveInfo) [New-PSDrive], Win32Exception
+ FullyQualifiedErrorId : CouldNotMapNetworkDrive,Microsoft.PowerShell.Commands.NewPSDriveCommand
Run Code Online (Sandbox Code Playgroud)
其中"xxxx"是共享名称.PS命令直接从门户复制而不是更改.
到目前为止,我只找到了有关如何在主机上创建卷的示例,例如:
version: "3.3"
services:
mysql:
image: mysql
volumes:
- db-data:/var/lib/mysql/data
volumes:
db-data:
Run Code Online (Sandbox Code Playgroud)
因此,这定义了一个名为 db-data 的卷,该卷将物理存储在运行容器的主机上。
是否可以使 db-data 卷指向 Azure 存储帐户中的 Azure 文件共享,我将如何指定所需的参数?
我已经设置了 Azure 存储文件,并在我的开发计算机中添加了一些防火墙规则来打开端口#445。但我现在无法访问我的文件共享。它也不响应 ping 命令。
但我可以从 Azure VM IaaS 服务器访问相同的文件共享。有什么我错过的吗?
我在 Azure 中有一个文件共享,其中包含文件夹,而文件夹内又包含许多文件夹。我试图通过右键单击该文件夹来手动删除该文件夹,该文件夹内有很多文件,并且显示
删除目录失败。错误:指定的目录不为空。
怎样才能删除该目录呢?需要删除的目录中有数千个文件,并且无法手动删除每个文件以删除该目录
我创建了一个 Azure 文件共享,并且可以使用 Windows 10 笔记本电脑中的映射网络驱动器连接到它。我创建了一个 hello-world Spring Boot 应用程序,其中包含用于 azure 文件共享的卷安装配置,并尝试在 docker 中的 Kubernetes 中部署-桌面。但我的 Pod 没有启动 -
hello-world-9d7479c4d-26mv2 0/1 ContainerCreating 0 15s
Run Code Online (Sandbox Code Playgroud)
这是我在描述 POD 时在事件中看到的错误 -
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 9h Successfully assigned default/hello-world-9d7479c4d-26mv2 to docker-desktop
Warning FailedMount 9h (x7 over 9h) kubelet, docker-desktop MountVolume.SetUp failed for volume "fileshare-pv" : mount failed: exit status 32
Mounting command: mount
Mounting arguments: -t cifs -o file_mode=0777,dir_mode=0777,vers=3.0,<masked> //mystorage.file.core.windows.net/myshare /var/lib/kubelet/pods/425012d1-13ee-4c40-bf40-d2f7ccfe5954/volumes/kubernetes.io~azure-file/fileshare-pv
Output: mount: /var/lib/kubelet/pods/425012d1-13ee-4c40-bf40-d2f7ccfe5954/volumes/kubernetes.io~azure-file/fileshare-pv: …
Run Code Online (Sandbox Code Playgroud) 我的代码看起来像这样
CloudFileClient client = ...;
client.GetShareReference("fileStorageShare")
.GetRootDirectoryReference()
.GetDirectoryReference("one/two/three")
.Create();
Run Code Online (Sandbox Code Playgroud)
如果目录一或两个不存在,则会出现此错误。有没有办法通过一次调用创建这些嵌套目录?
我需要从Azure Databricks访问Azure 文件。根据文档,支持Azure Blob ,但我需要此代码来处理 Azure 文件:
dbutils.fs.mount(
source = "wasbs://<your-container-name>@<your-storage-account-name>.file.core.windows.net",
mount_point = "/mnt/<mount-name>",
extra_configs = {"<conf-key>":dbutils.secrets.get(scope = "<scope-name>", key = "<key-name>")})
Run Code Online (Sandbox Code Playgroud)
或者是否有其他方法可以将Azure 文件装载到 Azure Databricks 群集或从Azure Databricks群集访问 Azure 文件?谢谢
我正在尝试使用以下命令从运行High Sierra 10.13.6的Mac连接到Azure文件共享:
mount_smbfs -d 0777 -f 0777 //dolphins:PASSWORDHERE@dolphins.file.core.windows.net/models /Users/b3020111/Azure
Run Code Online (Sandbox Code Playgroud)
但是我不断收到错误:
mount_smbfs: server connection failed: No route to host
Run Code Online (Sandbox Code Playgroud)
我已经关闭了/etc/nsmb.conf中的数据包签名:
[default]
signing_required=no
在网上浏览后,我似乎无所适从,不胜感激。
我目前已经创建了一个 Azure 存储帐户。在这个存储中,我创建了两个文件共享。我已将文件上传到每个文件共享中,并希望从 Azure DevOps 管道中访问这些文件。
我在网上研究过如何做到这一点,但没有找到详细说明如何做到这一点的资源。以前有人这样做过吗?如果是,从 azure devOps 管道读取文件共享文件的步骤是什么?
谢谢。
人们问
azure azure-storage azure-files azure-devops azure-pipelines
azure-files ×10
azure ×9
c# ×2
asp.net-mvc ×1
azure-aks ×1
azure-devops ×1
docker ×1
file ×1
kubernetes ×1