Hi all, I have a question about AzureNative and Do...
# azure
a
Hi all, I have a question about AzureNative and Docker. I am trying to setup a ContainerApp with dotnet and I used the example and that was all working fine. Now I want to add an Azure File share as a Volume but I cannot find any examples or I can not figure it out. Is there someone who can help me out. I can add the code file if required. I am using node-red image.
b
I would also like to know how to do this. Adding a persistent volume is basic functionality but I did not find any example, too.
It will be so helpful because then I can move away from the Azure container group in favor of Azure Container Apps. https://github.com/pulumi/examples/tree/master/azure-cs-containerapps
e
You could try creating one through the Azure portal and then exporting it as ARM templates. Often gives useful info to reengineer as API calls.
m
Hi @ambitious-sugar-80031 and @brief-church-89967, Trying to figure out the situation: Yes you can create a Azure File share https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/fileshare/ Please use the
2022-05-01
version! And then you can mount the share via the App config:
Copy code
properties:
  managedEnvironmentId: xxxx
  configuration:
  template:
    containers:
    - image: <IMAGE_NAME>
      name: my-container
      volumeMounts:
      - volumeName: azure-files-volume
        mountPath: /my-files
    volumes:
    - name: azure-files-volume
      storageType: AzureFile
      storageName: mystorage
a
Coming a bit further, getting now 'Storage not found under managed environment'. So going to look for that
Got it all working, thank you for the example
m
Awesome!
Is this helping you @brief-church-89967 too? If not hit me up
b
Yes, @ambitious-sugar-80031 shared his solution with me, thank you.