[英]Azure: Logic App, Container , and mounting an Azure File Share
I am trying to run a container instance using logic apps and I need to mount an azure file share .我正在尝试使用逻辑应用程序运行容器实例,我需要安装一个azure 文件共享。
I am using a container with azure file share.我正在使用具有 azure 文件共享的容器。 This article is very clear on how to do this with command line.
This article非常清楚如何使用命令行执行此操作。 https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files This works exactly as expected:
https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files这完全符合预期:
az container create `
--resource-group pass `
--name $CONTAINER `
--image "$REGISTRY/$CONTAINER::latest" `
--restart-policy Never `
--registry-username $USERNAME `
--registry-password $PASSWORD `
--os-type Linux `
--cpu 0.2 `
--memory 0.5 `
--azure-file-volume-account-name $ACI_PERS_STORAGE_ACCOUNT_NAME `
--azure-file-volume-account-key $STORAGE_KEY `
--azure-file-volume-mount-path $ACI_MOUNT_PATH `
--azure-file-volume-share-name $ACI_PERS_SHARE_NAME `
--environment-variables ID=XXXX
az container logs --resource-group pass --name $CONTAINER
How do you create the logic app task for the container.如何为容器创建逻辑应用程序任务。 I found the following properties:
我发现了以下属性:
But I cannot see the equivalent of但我看不到相当于
--azure-file-volume-account-name $ACI_PERS_STORAGE_ACCOUNT_NAME
--azure-file-volume-account-key $STORAGE_KEY
Also I need to:我还需要:
Make sure az is up-to-date and use the following确保 az 是最新的并使用以下命令
az container create \
--resource-group $ACI_PERS_RESOURCE_GROUP \
--name hellofiles \
--image mcr.microsoft.com/azuredocs/aci-hellofiles \
--dns-name-label aci-demo \
--ports 80 \
--azure-file-volume-account-name $ACI_PERS_STORAGE_ACCOUNT_NAME \
--azure-file-volume-account-key $STORAGE_KEY \
--azure-file-volume-share-name $ACI_PERS_SHARE_NAME \
--azure-file-volume-mount-path /aci/logs/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.