This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Demo – get the code here | |
https://cda.ms/1gR | |
Sign up for 12 months free Azure | |
https://cda.ms/1dc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:[email protected]/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| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:boron | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY . /usr/src/app | |
EXPOSE 3000 | |
CMD ["npm", "start"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:boron | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY . /usr/src/app | |
EXPOSE 3000 | |
CMD ["npm", "start"] |
NewerOlder