//Cloud notes from my desk -Maheshk

"Fortunate are those who take the first steps.” ― Paulo Coelho

Ignite 2019 – Monday session #mywatchlist #todo

(1) Best practices and tips for operating and monitoring apps on Azure App Service -Now that you deployed your web app, come explore what you should be doing to monitor its health and performance and ensure uptime in the face of unexpected bugs, unanticipated demand spikes and random occurrences of Murphy’s Law. <https://myignite.techcommunity.microsoft.com/sessions/83967?source=sessions>

(2) IaaS VM operations- In recent months, Tailwind Traders has been having issues with keeping their sprawling IaaS VM deployment under control, leading to mismanaged resources and inefficient processes. In this session, look into how Tailwind Traders can ensure their VMs are properly managed and maintained with the same care in Azure as they were in Tailwind Trader’s on-premises data centers. <https://myignite.techcommunity.microsoft.com/sessions/82994?source=sessions> 

(3) Azure Reliability: Achieving resilience in the cloud – In this session learn how Microsoft is improving Azure reliability with techniques and automation to improve detection, response, recovery and prevention of issues. Understand the tools you can use to incorporate into your own systems to improve availability for critical workloads. <https://myignite.techcommunity.microsoft.com/sessions/84303?source=sessions>

(4) Empowering every developer to innovate with Microsoft Azure – Join Donovan Brown, Kendra Havens, Abel Wang, and Jeff Hollan as they take us on an end-to-end tour to showcase how developers can grow their skills and build any kind of application with the most popular toolkit in the market, collaborate with the largest developer community on the planet, and release apps in an open and innovative end-to-end cloud. <https://myignite.techcommunity.microsoft.com/sessions/81274?source=sessions>

(5) Secure your virtual machines in Azure today – You just migrated to Azure and now you need to secure them. Learn how to secure identity, compute, networking and storage. Take advantage of Azure Security Center and score score to guide you, turn on threat protection and make sure you are protecting public IP addresses with technologies like Azure Firewall and the WAF. Take advantage of policies to apply secure at scale and don’t forget to use update management. This session will give you best practices you need specifically targeting virtual machines. <https://myignite.techcommunity.microsoft.com/sessions/81968?source=sessions>

(6) Top serverless tools you can’t live without- Serverless is all about efficiency for your application, but what about you? Learn how to be more efficient when you are coding, deploying, and managing serverless solutions. Get a tour of the best tools available. <https://myignite.techcommunity.microsoft.com/sessions/89293?source=sessions>

(7) Deploy a PowerShell function app to Azure while you drink your coffee- With PowerShell function apps in preview, serverless automation is a great new option for all your Azure administration. Getting started is quick, easy, and low cost. In fact, you could deploy your app before you have finished your cup of coffee. During this talk we deploy three different apps in three different ways, so you can choose your favorite and start using it straight away.<https://myignite.techcommunity.microsoft.com/sessions/79592?source=sessions>

(8) Managing cloud native applications with Azure Blob Storage – In this session we cover when to use Azure Blob Storage; how to architect, provision, monitor, secure, and optimize to reduce costs. The four top scenarios covered include: cloud native applications, analytics, HPC, and archive/cold data storage. We also introduce new features that increase the use cases and manageability of blobs. <https://myignite.techcommunity.microsoft.com/sessions/82965?source=sessions>

(9) Build and deploy your ASP.NET Core application with DevOps in 20 minutes or less – Getting started with an ASP.NET Core application is just the beginning of your application development journey. Does it compile? How will you run tests and ensure the application is in a working state? What does your deployment story look like? In this fast-paced session, we show you how easy it is to get started with Azure DevOps as the premier solution for continuous integration and continuous deployment for ASP.NET Core. <https://myignite.techcommunity.microsoft.com/sessions/84116?source=sessions>

(10) Build a better .NET Core Azure Service – Have you been using outdated SDKs or REST to access Azure services from your cloud apps? During this session, we’ll look at the improvements that Microsoft has made in the Azure SDK by looking at a typical cloud service written with .NET Core and how the new libraries can increase your productivity and improve the reliability of your cloud services. <https://myignite.techcommunity.microsoft.com/sessions/85028?source=sessions>

(11) Outpacing change and staying challenged – Technical Fellow Jeffrey Snover joins Rick Claus on the stage to talk about how he has taken steps to actively challenge his career to take on hard technical problems and stay ahead of the constantly changing landscape. Major milestones for him have been the Monad (PowerShell) manifesto, to Windows Server technical architect, to his current roll architecting the artificial intelligence in the Office Fabric. <https://myignite.techcommunity.microsoft.com/sessions/89288?source=sessions>

(12) .NET Core CLI: A quick overview – In this session, we go over the basics of .NET Core CLI, how you can use it to build .NET Core apps, some of the changes introduced in .NET Core 3.0, and a few tips and tricks to make your life more productive as a .NET Core developer. <https://myignite.techcommunity.microsoft.com/sessions/89270?source=sessions>

(13) Discovering the end-to-end Linux on Azure experience – Learn from the Azure product team how we’re streamlining and securing your Linux migration to the cloud. In this session, we cover our investments in Linux on Azure, including tools you can leverage to migrate, deploy, and manage your Linux infrastructure on Azure. Using Red Hat, we illustrate these steps with live demos and best practices sharing. <https://myignite.techcommunity.microsoft.com/sessions/81973?source=sessions>

(14) At the intersection of you and your career, your uniqueness is your best superpower- You contribute to your work in a way that no one else can. Do you lead with your uniqueness or cover and blend in? Have you encountered work place humor that refers to differences as “unicorns” or “special little snowflakes?” Sometimes we hide or diminish that which makes us stand out in our career. Yet, there is no one else on the planet like us. We have something extraordinary to contribute to the world. Join this session to be inspired and pick up insights on owning your uniqueness as one of your strongest superpowers in the workplace.
<https://myignite.techcommunity.microsoft.com/sessions/83743?source=sessions>

2019-11-25 Posted by | #ignite2019, .NET, AI, AKS, Uncategorized | | Leave a comment

Failed to delete virtual network ‘k8s-vkdemo-2-vnet’. Error: Subnet virtual-node-aci is in use by and cannot be deleted

Recently I tried deleting few resource groups(RG) having AKS cluster with ACI enabled. I couldn’t get them deleted completely for some reason leaving Vnet all those RG’s.

Error message was “Failed to delete virtual network ‘k8s-vkdemo-2-vnet’. Error: Subnet virtual-node-aci is in use by and cannot be deleted.” I got the same error for other 2 cluster RG as well. I tried deleting individual sub-nets there I got an error.

With help of support and this article I was able to delete the RG. It’s is documented here -> https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet#delete-network-resources.

Here is the revised script.

# Replace <my-resource-group> with the name of your resource group
RES_GROUP=<my-resource-group>

# Replace <my_vnet_name> with the name of your VNet name
VNET_NAME=<my_vnet_name>

# Replace <my_subnet_name> with the name of your subnet name
SUBNET_NAME=<my_subnet_name>

# Get network profile ID
NETWORK_PROFILE_ID=$(az network profile list --resource-group $RES_GROUP --query [0].id --output tsv)

# Delete the network profile
az network profile delete --id $NETWORK_PROFILE_ID -y

# Get the service association link (SAL) ID
SAL_ID=$(az network vnet subnet show --resource-group $RES_GROUP --vnet-name $VNET_NAME --name $SUBNET_NAME --query id --output tsv)/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default

# Delete the default SAL ID for the subnet
az resource delete --ids $SAL_ID --api-version 2018-07-01

# Delete the subnet delegation to Azure Container Instances
az network vnet subnet update --resource-group $RES_GROUP --vnet-name $VNET_NAME --name $SUBNET_NAME--remove delegations 0

# Delete the subnet
az network vnet subnet delete --resource-group $RES_GROUP --vnet-name $VNET_NAME --name $SUBNET_NAME

# Delete virtual network
az network vnet delete --resource-group $RES_GROUP --name $VNET_NAME

2019-03-18 Posted by | AKS, Azure, Azure Dev, Uncategorized | Leave a comment

Why Azure Kubernetes Service(AKS) vs Others

What is AKS?
– deploy a managed Kubernetes cluster in Azure.
– reduces the complexity and operation overhead of managing
K8s by offloading much of that responsibility to Azure
– handles critical tasks like health monitoring and maintenance for you.
– masters are managed by Azure and You only manage and maintain the agent nodes.
– free, you only pay for the agent nodes and not for the master

tst3

Why AKS vs Others?
– Streamlined application onboarding with integrated VSTS CI/CD via DevOps Project
– Deep integration with Azure Monitor and Log Search
– Using Azure Dev Spaces for AKS – enables multiple developers to collaborate and rapidly iterate/debug microservices directly in AKS dev environment
– Open source thought leadership through projects like Virtual Kubelet, Helm, Draft, Brigade & Kashti & our contribution to the open source community
– Support for scenarios such as elastic bursting using Azure Container Instance (ACI) and Virtual Kubelet
– Users can use Key Vault for increased security and control over Kubernetes keys and passwords, create and import encryption keys in minutes
– Developers and operations can be assured their workloads will have Automated OS & Framework Patching with ACR Build
– Rich Tooling Support  VS Code/VS integration (VSCode is a free code editor; try today, you’ll thank us )

Best practice guidance
———————-
> For integration with existing virtual networks or on-premises networks, use advanced networking in AKS.
> greater separation of resources and controls in an enterprise environment

Two different ways to deploy AKS clusters into virtual networks:
+ Basic networking – Azure manages the virtual network resources as the cluster is deployed and uses the kubenet Kubernetes plugin.
+ Advanced networking – Deploys into an existing virtual network, and uses the Azure Container Networking Interface (CNI) Kubernetes plugin. Pods receive individual IPs that can route to other network services or on-premises resources.
The Container Networking Interface (CNI) is a vendor-neutral protocol that lets the container runtime make requests to a network provider. The Azure CNI assigns IP addresses to pods and nodes, and provides IP address management (IPAM) features as you connect to existing Azure virtual networks. Each node and pod resource receives an IP address in the Azure virtual network, and no additional routing is needed to communicate

$ az aks create –resource-group myAKSCluster –name myAKSCluster –generate-ssh-keys \
–aad-server-app-id \
–aad-server-app-secret \
–aad-client-app-id \
–aad-tenant-id

$ az aks get-credentials –resource-group myAKSCluster –name myAKSCluster –admin
Merged “myCluster” as current context ..

$ kubectl get nodes

NAME STATUS ROLES AGE VERSION
aks-nodepool1-42032720-0 Ready agent 1h v1.9.6
aks-nodepool1-42032720-1 Ready agent 1h v1.9.6
aks-nodepool1-42032720-2 Ready agent 1h v1.9.6

2019-03-06 Posted by | AKS, Azure Dev, Kubernetes, Linux, Microservices, PaaS | | Leave a comment

   

%d bloggers like this: