I'm running into an issue with mounted volumes on ...
# general
m
I'm running into an issue with mounted volumes on container apps in a managed environment in Azure. Specifically, the
subPath
directive is not being respected in
pulumi up
for example, in vscode I have
Copy code
volumeMounts: [
                    {
                        mountPath: "/var/log/nginx",   // Nginx writes logs here
                        volumeName: "log",
                        subPath: "log/nginx"            // Maps to /log/nginx in the file share
                    },
                    {
                        mountPath: "/var/www/html/docroot/media",  // Path where Nginx expects media files
                        volumeName: "media",
                        subPath: "media"   // Maps to /media in the Azure File Share root
                    },
and in pulumi under recources, I see
Copy code
"volumeMounts": [
        {
          "mountPath": "/var/log/nginx",
          "volumeName": "log"
        },
        {
          "mountPath": "/var/www/html/docroot/media",
          "volumeName": "media"
        }
      ]
note that the
subPath
isn't even represented. I have to go into Azure and add them manually after deployment. I can share more of the code if needed but wanted to check and see if there is something I am just blatantly doing wrong here.
The solution was using a specific version instead of the default.
azure_native.app.v20241002preview.ContainerApp