AZ-204 - Developer associate - Compute solutions

Last updated Jul 6, 2022 Published Jun 6, 2022

Compute solutions

Azure offers has tree services that developers can use to deploy applications, named:

In this sections we are going to go into each and everyone of those and explore how to deploy them.

Azure VMs

VM’s are the basic cloud service used, azure has different zones around the world to be used. Each vary on price and availability, when using VM’s you have the following sections:

  • Basics
  • Disks
  • Networking
  • Management
  • Advanced
  • Tags

Availability

Virtual machines availability are created when the vm is being configured, it will avoid down time while doing upgrades.

App services

Web App services

Web app services are an abstraction over the app services, they are built on top of the service plans.

Note: It is possible to deploy from visual studio. refs AZ-204 - Develop Azure Compute Solutions - Azure Web Apps

Note 2: Service plan cannot host windows and linux apps together. refs AZ-204 - Develop Azure Compute Solutions - Azure Web Apps

CORS comes enabled by default, no other origins are able to call the service refs AZ-204 - Develop Azure Compute Solutions - Azure Web Apps

Web app settings

Deploy

Deploying a new instance of a webapp

az webapp up

Integration Service Environment

ISE is a isolated environment for enterprise scale integration needs.

Databases

  • Plans

Containers

For a introduction of docker refer to docker official documentation and also for more advanced developers refer to Writing docker files tips.

The questions made in the mock exams usually mix docker concepts and azure concepts. Having a clear understanding of what each one of the things do is essential. For example, for tagging a container, the command user is from docker and not from azure cli.

  • Azure container instance
    • Provision vms to serve containers
      • create resources
      • container instance (image)
  • Azure container registry
    • private registry
      • docker build the image
      • docker tag the image
      • log into the registry via az cli (az acr login –name NAME_OF_REGISTRY) - registry credentials can be found in the menu keys
      • docker push the image
  • azure container groups
    • containers deployed under the same machine
    • configured bia YAML
    • deployed via azure cli: az container create –resource-group my-group –file my-config.yml
    • azure container instance can access storage blob or file share as a volume
    • azure container instance supports secrets

Azure Kubernetes

  • Managed kubernetes on azure
  • orchestrate containers
    • cluster
    • kubelet - agent that runs on a node
    • pod is a group of one or more containers
    • pod get shared resources (network, storage)
  • workloads
    • deploys via kubernetes yml file
  • services
    • deploys via kubernetes yml file
    • load balancer
  • kubectl tool
    • tool to interact with kubernetes cluster
    • az aks get-credentials –resource-group my-group –name my-name
      • switches the context to the aks, issuing commands locally will send them against azure
      • kubectl get nodes
      • kubectl get pods
      • kubectl get deployments
      • kubectl get service
    • log and workspaces
      • logs are sent to workspace and are defined in the cluster creation

Functions

  • Requires storage account
  • Plans
    • Pay only based on the consumption
      • pays only when the code is executed
    • App service plan
    • Always on (basic/standard plans)
      • will always be on run state
    • Functions premium

Note: It is possible to deploy (and run locally) from visual studio. refs AZ-204 - Develop Azure Compute Solutions - Azure Functions

  • Function settings?
  • Connection strings? predefined values
  • host.json used to set up different logging levels and
    • Defines properties for the function that will run

Durable Functions

Durable has a weird meaning for azure functions, durable means a workflow, in other words, durable functions are meant to orchestrate different functions across a workflow, thus, durable.

SSL Certificates

  • webapp
    • general settings allows for force https only
    • application settings overrides the defined properties in the application file
    • tls/ssl settings