title: How to deploy a .NET core console app to Azure Kubernetes Service?
body: <p>I have a .NET core console application to crawl a database periodically at certain intervals. I have dockerized it and have been able to run the docker image successfully from my local system. My ultimate objective is to deploy it from AKS. So I have pushed the aforementioned image to Azure Container Registry also. Please help me figure out the next steps on how to deploy the image from ACR into AKS.</p>
  <p>The Dockerfile used to create the docker image :</p>
  <pre><code>FROM mcr.microsoft.com/dotnet/runtime:5.0
  COPY bin/Release/net5.0/publish/ App/
  WORKDIR /App
  ENTRYPOINT [&quot;dotnet&quot;, &quot;&lt;app_name&gt;.dll&quot;]
  </code></pre>
  <p>The YAML file used to deploy to AKS :</p>
  <pre><code>apiVersion: apps/v1
  items:
  - apiVersion: v1
    kind: Service
    metadata:
      annotations:
        Process: &lt;app_name&gt;
      creationTimestamp: null
      labels:
        app: &lt;app_name&gt;
      name: &lt;app_name&gt;
    spec:
      selector:
        app: &lt;app_name&gt;
    status:    
  - apiVersion: apps/v1
    kind: Deployment
    metadata:
      annotations:
        Process: &lt;app_name&gt;
      creationTimestamp: null
      labels:
        app: &lt;app_name&gt;
      name: &lt;app_name&gt;
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: &lt;app_name&gt;
      strategy: {}
      template:
        metadata:
          creationTimestamp: null
          labels:
            app: &lt;app_name&gt;
        spec:
          containers:
          - env:
            image: &quot;&lt;acr_name&gt;.azurecr.io/&lt;image_name&gt;:&lt;version_tag&gt;&quot;
            name: &lt;app_name&gt;          
            resources: {}
          restartPolicy: Always
    status: {}
  kind: List
  metadata: {}
  </code></pre>
  <p>I am relatively new to Docker technologies, and I am unsure whether this is the proper way to deploy .NET console apps to AKS or if this is the proper YAML configuration for a console app o deploy it to AKS. Please help me in figuring this out. Any help is appreciated, thanks in advance!</p>