Closed alecor191 closed 5 years ago
/cc @wangcai0124 / @athinanthny
You do not need to use the Arm resource format name in the yamls. Can you share all your yamls ? I was able to deploy a service using the same definition:
application: schemaVersion: 1.0.0-preview2 name: counterApp-az properties: description: Azure Service Fabric Mesh Counter Application. services:
Thanks @anantshankar17 for looking into this.
Could it be that it is related to the fact that I'm deploying both Windows and Linux services as part of the same deployment? Currently it consists of one Linux service (that's the one with the volume) and two stateless Windows services (no volume definitions).
If I remove the two Windows services from the deployment and only deploy the Linux service, I don't get that error message anymore. However, the overall deployment times out for me (but that could be related to my service).
Yes, at the moment you cannot combine Windows and Linux services as part of the same application/ deployment. However, I would expect the alone Linux deployment to go through. Let us know if you continue to face trouble there.
Issue description
I'm trying to attach a volume to a Linux service following instructions in Store state with Azure Files volume. Here the service description:
I'm getting the following error when running
az mesh deployment create --input-yaml-files ...
:I tried several values (e.g.
/app/data
,/data
,data
, ...) all with the same result.And here the
volume.yaml
file:I found a doc in the MS Docs repo that uses
/app/data
in the YAML sample, however, it doesn't seem to work for me.Any thoughts on what I'm missing?
Potentially related issue working with volumes - documentation issue?
BTW when following Store state with Azure Files volume to set the
name
field ofvolumeRefs
tothe deployment failed with the following error (note how
resourceId('Microsoft.ServiceFabricMesh/volumes'
is listed twice):Changing the YAML file to the following "worked" (i.e. I didn't get that error anymore, however, I can't confirm that it actually works, as I'm blocked on the issue mentioned at the top).
So not sure if the docs need to be updated as we only need to provide the volume name and not the ARM syntax pointing to the
resourceId
, or if there is another issue with my YAML file.