A curated set of resources to help you build, learn, and scale with Azure Cosmos DB—from getting started to AI-powered development and real-world applications.
🧑💻 See the demo code produced in this session.
| Welcome back to another episode of AzureFunBytes. Every week we dive into different Azure Fundamentals in an easy to understand Twitch show. | |
| This week, all the way from Scotland, @TechieLass will help me solve three problems on twitch! | |
| How do we start a new Win VM? | |
| How do we prep this VM for prod? | |
| How do we handle cost management? | |
| Sarah and I will discuss her tenure in technology with me and even answer some questions. |
| Demo – get the code here | |
| https://cda.ms/1gR | |
| Sign up for 12 months free Azure | |
| https://cda.ms/1dc |
| Kubernetes Learning Path v2.0 | |
| - https://azure.microsoft.com/en-us/resources/kubernetes-learning-path/?WT.mc_id=code-github-jagord | |
| Administer containers in Azure - https://docs.microsoft.com/en-us/learn/paths/administer-containers-in-azure/?WT.mc_id=code-github-jagord | |
| Supported Kubernetes versions in Azure Kubernetes Service (AKS) - https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?WT.mc_id=code-github-jagord | |
| Azure Kubernetes Service (AKS) | |
| - https://docs.microsoft.com/en-us/azure/aks/?WT.mc_id=code-github-jagord |
| require 'mongo' # requires mongoid to be installed | |
| Mongo::Logger.logger.level = ::Logger::FATAL # provides logging output for fails | |
| client = Mongo::Client.new( 'mongodb+srv://admin:xxxxxxx@prod-db-dylzy.mongodb.net/hackathon?retryWrites=true' ) | |
| #client.collections.each { |coll| puts coll.name } # does a loop on listing each collection in database and then prints them to standard out | |
| cursor = client[:products].find | |
| cursor.each do |doc| |
| require 'mongo' # requires mongoid to be installed | |
| Mongo::Logger.logger.level = ::Logger::FATAL # provides logging output for fails | |
| client = Mongo::Client.new([ '127.0.0.1:27017' ], :database => 'hackathon') # establishes database connection to localhost, database name hackathon | |
| cursor = client[:products].find | |
| cursor.each do |doc| | |
| puts doc | |
| end |
| require 'mongo' # requires mongoid to be installed | |
| Mongo::Logger.logger.level = ::Logger::FATAL # provides logging output for fails | |
| client = Mongo::Client.new([ '127.0.0.1:27017' ], :database => 'hackathon') # establishes database connection to localhost, database name hackathon | |
| client.collections.each { |coll| puts coll.name } # does a loop on listing each collection in database and then prints them to standard out | |
| client.close # closes database connection |
| # delete all pods | |
| kubectl delete --all pods --namespace=default | |
| # deete all deployments | |
| kubectl delete --all deployments --namespace=default | |
| # delete all services | |
| kubectl delete --all services --namespace=default |
| # Copyright 2017, Google, Inc. | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| FROM node:boron | |
| RUN mkdir -p /usr/src/app | |
| WORKDIR /usr/src/app | |
| COPY . /usr/src/app | |
| EXPOSE 3000 | |
| CMD ["npm", "start"] |