title: Add volumes and files to a container in Azure using Pulumi
body: <p>I'm starting to use Pulumi for container deployment in Azure cloud.
  At the moment I am facing problems because I need to load some configuration files to a container of Traefik but I cannot find the correct way. The idea is that Traefik works as a reverse proxy for the other containers in the group.</p>
  <p>My problem is that no matter how much I specify the creation of a volume and try to connect it to the container, when I go to the Azure dashboard, it appears that the container does not have any connected volume.</p>
  <pre><code>import pulumi
  import pulumi_azure_nextgen as azure
  
  data_rg = azure.resources.latest.ResourceGroup(
         &quot;data-rg&quot;,
         resource_group_name=&quot;data-rg&quot;,
         location=&quot;West Europe&quot;)
  datahike_group = azure.containerinstance.latest.ContainerGroup(
          &quot;data-group&quot;,
          location=&quot;West Europe&quot;,
          container_group_name=&quot;data-cg&quot;,
          resource_group_name=data_rg.name,
          containers=[{
                      &quot;name&quot;:&quot;data&quot;,
                      &quot;image&quot;: &quot;wordpress:latest&quot;,
                      &quot;resources&quot;: {
                          &quot;requests&quot;: { &quot;cpu&quot;: 0.5, &quot;memory_in_gb&quot;: 1.5}
                      },
                  },
                  {
                      &quot;name&quot;: &quot;proxy&quot;,
                      &quot;image&quot;: &quot;traefik:latest&quot;,
                      &quot;resources&quot;: {
                          &quot;requests&quot;: { &quot;cpu&quot;: 0.5, &quot;memory_in_gb&quot;: 1.5}
                      },
                      &quot;ports&quot;: [{
                          &quot;port&quot;: 80,
                          &quot;protocol&quot;: &quot;TCP&quot;,
                          }],
                      &quot;VolumeMount&quot;: [{
                          &quot;mount_path&quot;: &quot;/etc/traefik/config_base.yml&quot;,
                          &quot;name&quot;: &quot;traefik-volume&quot;,
                      }],
                      &quot;environment_variables&quot;: [{
                          &quot;name&quot;: &quot;TRAEFIK_CONFIG_FILE&quot;,
                          &quot;value&quot;: &quot;file&quot;
                          },{
                          &quot;name&quot;: &quot;TRAEFIK_CONFIG_PATH&quot;,
                          &quot;value&quot;: &quot;/etc/traefik/config_base.yml&quot;
                          }
                      ],                    
                  },        
          ],
          ip_address={
              &quot;dnsNameLabel&quot;: &quot;dnsnamelabel1&quot;,
              &quot;ports&quot;: [{
                  &quot;port&quot;: 80,
                  &quot;protocol&quot;: &quot;TCP&quot;,
              }],
              &quot;type&quot;: &quot;Public&quot;,
          },
          volumes=[
              {
                  &quot;emptyDir&quot;: {},
                  &quot;name&quot;: &quot;datahike-volume&quot;,
              },
              {
                  &quot;name&quot;: &quot;traefik-volume&quot;,
                  &quot;secret&quot;: {
                      &quot;secretKey1&quot;: &quot;SecretValue1InBase64&quot;,
                  },
              },            
          ],
          os_type=&quot;Linux&quot;,
          tags={
              &quot;environment&quot;: &quot;testing&quot;,
          })
  
  pulumi.export(&quot;data_ip&quot;, data_group.ip_address)
  </code></pre>
  <p>Does anyone know why its failing?</p>