title: Azure Containers deployment - "Operation failed with status 200: Resource State Failed"
body: <p>From Azure we try to create container using the Azure Container Instances with prepared YAML. From the machine where we execute az container create command we can login successfully to our private registry (e.g fa-docker-snapshot-local.docker.comp.dev on <strong>JFrog Artifactory</strong> ) after entering password and we can docker pull it as well</p>
  <pre><code>docker login fa-docker-snapshot-local.docker.comp.dev -u svc-faselect
  Login succeeded
  </code></pre>
  <p>So we can pull it successfully and the image path is the same like when doing manually docker pull:</p>
  <pre><code>   image: fa-docker-snapshot-local.docker.comp.dev/fa/ads:test1 
  </code></pre>
  <p>We have YAML file for deploy, and trying to create container using the az command from the SAME server. In the YAML file we have set up the same registry information: server, username and password and the same image</p>
  <pre><code>az container create --resource-group FRONT-SELECT-NA2 --file ads-azure.yaml
  </code></pre>
  <p>When we try to execute this command, it takes for 30 minutes and after that message is displayed: &quot;Deployment failed. Operation failed with status 200: Resource State Failed&quot;</p>
  <p>Full Yaml:</p>
  <pre><code>apiVersion: '2019-12-01'
  location: eastus2
  name: ads-test-group
  properties:
    containers:
    - name: front-arena-ads-test
      properties:
        image: fa-docker-snapshot-local.docker.comp.dev/fa/ads:test1
        environmentVariables:
          - name: 'DBTYPE'
            value: 'odbc'
        command:
        - /opt/front/arena/sbin/ads_start
        - ads_start
        - '-unicode'
        - '-db_server test01'                        
        - '-db_name HEDGE2_ADM_Test1'                        
        - '-db_user sqldbadmin'                              
        - '-db_password pass'                   
        - '-db_client_user HEDGE2_ADM_Test1'                
        - '-db_client_password Password55'                
        ports:
        - port: 9000
          protocol: TCP
        resources:
          requests:
            cpu: 1.0
            memoryInGB: 4
        volumeMounts:
        - mountPath: /opt/front/arena/host
          name: ads-filesharevolume
    imageRegistryCredentials: # Credentials to pull a private image
    - server: fa-docker-snapshot-local.docker.comp.dev
      username: svcacct-faselect
      password: test
    ipAddress:
      type: Private
      ports:
      - protocol: tcp
        port: '9000'
    volumes:
    - name: ads-filesharevolume
      azureFile:
        sharename: azurecontainershare
        storageAccountName: frontarenastorage
        storageAccountKey: kdUDK97MEB308N=
    networkProfile:
      id: /subscriptions/746feu-1537-1007-b705-0f895fc0f7ea/resourceGroups/SELECT-NA2/providers/Microsoft.Network/networkProfiles/fa-aci-test-networkProfile
    osType: Linux
    restartPolicy: Always
  tags: null
  type: Microsoft.ContainerInstance/containerGroups
  </code></pre>
  <p>Can you please help us why this error occurs?
  Thank you</p>