title: Getting 'didn't match node selector' when running Docker Windows container in Azure AKS
body: <p>In my local machine I created a Windows Docker/nano server container and was able to 'push' this container into an Azure Container Registry using this command (The reason why I had to use the Windows container is because I have to use  CSOM in the ASP.NET Core and it is not possible in Linux)</p>
  
  <pre><code>docker push MyContainerRegistry.azurecr.io/myimage:v1
  </code></pre>
  
  <p>That Docker container IS visible inside the Azure container registry which is MyContainerRegistry</p>
  
  <p>I know that in order to run it I have to create a Container Instance; however, our management team doesn't want to go with that path and wants to use AKS instead</p>
  
  <p>We do have an AKS cluster created</p>
  
  <p>The kubectl IS running in our Azure shell</p>
  
  <p>I tried to create an AKS pod using this command</p>
  
  <pre><code>kubectl apply -f myyaml.yaml
  </code></pre>
  
  <p>These are contents of yaml file</p>
  
  <pre><code>apiVersion: apps/v1beta1
  kind: Deployment
  metadata:
    name: mypod
  spec:
    replicas: 1
    template:
      metadata:
        labels:
          app: mypod
      spec:
        containers:
        - name: mypod
          image: MyContainerRegistry.azurecr.io/itataxsync:v1
          ports:
          - containerPort: 80
        imagePullSecrets:
        - name: mysecret
        nodeSelector: 
            beta.kubernetes.io/os: windows
  </code></pre>
  
  <p>The pod successfully created. </p>
  
  <p>When I run 'get pods' I see a newly created pod</p>
  
  <p>However, when I get into details of this pod, I see the following </p>
  
  <blockquote>
    <p>"Warning  FailedScheduling  3m (x2 over 3m)  default-scheduler  0/3
    nodes are available: 3 node(s) didn't match node selector."</p>
  </blockquote>
  
  <p>Does it mean that I simply can't run Docker Windows container in Azure using AKS?</p>
  
  <p>Is there any way I can run Docker Windows container in Azure at all?</p>
  
  <p>Thank you very much for your help!</p>