DevOps Links for 15/10/2021
Mitul Suthar's Coding Blog
by Mitul Suthar
2y ago
New GitHub Releases Public Beta GitHub releases allows repository maintainers to release versions of their software. It accompanies notes, version of the software, contributors, etc. When I see releases page of some OSS projects, I feel like so many smart people contributed to this release and how much effort goes into writing these. This new version of GitHub Releases will help maintainers with auto-generated release notes, new UI refresh, using GitHub Actions using APIs you can integrate this feature and more. Go check out the preview. You will have to turn on this feature. GitHub Advisory ..read more
Visit website
DevOps Links for 30/9/2021
Mitul Suthar's Coding Blog
by Mitul Suthar
2y ago
GitHub CLI Do you know that you can work with GitHub through the command line? But isn't it already the case when I do git commit? No that is Git CLI. GitHub - the website where you host repos and collaborate with developers to create pull requests and issues, also has a CLI. This post explains on how to get started with GitHub CLI. You can download the CLI from cli.github.com.  Using scope with ARM templates to deploy across subscriptions. Do you know ARM templates? Well ARM templates allow you to deploy your Azure resources using a JSON template. You can define resources using JSON and ..read more
Visit website
DevOps Links for 23/9/2021
Mitul Suthar's Coding Blog
by Mitul Suthar
2y ago
DevOps Exercises Everything that you can imagine related to DevOps can be found in this GitHub Repository. Most comprehensive list of DevOps exercises, questions and answers on DevOps. Enjoy. State of the DevOps Report 2021 I created a twitter thread if you want to read more. Vast majority of the organizations are stuck in the middle of their DevOps journey. They haven't been able to bridge the gap between their organizational silos and achieve meaningful organizational change. Mix of blockers for low-evolution DevOps teams include resistance to change, legacy architecture, shortage of skil ..read more
Visit website
DevOps Links for 16/9/2021
Mitul Suthar's Coding Blog
by Mitul Suthar
2y ago
Many people don't know the difference between Git and GitHub and it is a constant source of confusion for first timers. This post is a simple getting started post on Git and GitHub.   How to get started with GitHub and Git SQL Injection is still there in the top 10 OWASP list. Broken Access Control is at the top of OWASP 2021 list which you can find below.  Here is the OWASP Top 10 for 2021 A different take on branching strategy. In my opinion, you need a high degree of trust and keep changes small and adopt a strategy that works for your team. Branching Strategy - Ship / Show ..read more
Visit website
DevOps Links for 9/9/2021
Mitul Suthar's Coding Blog
by Mitul Suthar
2y ago
If you are learning GitHub Actions, then this is a good place to start. Introduction to GitHub Actions  Currently, I am deploying different kinds of .NET application to Azure using GitHub Actions. You can find more information on how to deploy to Azure App Service below.  Deploy to Azure App Service using GitHub Actions  An interesting post on GitHub Actions Limitations and Gotchas. The workflow_dispatch feature needs major improvements. If you don't know what that is, then you will keep guessing what this feature is and how to discover it. This feature is to manually trig ..read more
Visit website
What is Helm for Kubernetes?
Mitul Suthar's Coding Blog
by Mitul Suthar
4y ago
In this post, I would like to talk about what is Helm and why do we need it, installing and uninstalling a chart and difference between a repo and a hub. For this post, I am also assuming you are familiar with Kubernetes on a high level. Before we dive into the details, first, let’s understand what does the word Helm mean in English. “Helm is a lever or wheel controlling the rudder of a ship for steering.” – Merriam Webster In a ship, you might have seen a wheel like mechanism used by the captain to steer the ship as shown below. The logo for Helm (in Kubernetes context) as seen on Helm ..read more
Visit website
Passing multiple parameters in an Angular Route using RouteLink
Mitul Suthar's Coding Blog
by Mitul Suthar
4y ago
In Angular, let’s say you have a route defined like this. { path : 'user/:userId/building/:buildingid, component: UserScheduleDetailsComponent, pathMatch : 'full'} and you want to navigate the user to this component by using this route. I couldn’t easily find a way to pass these parameters by using routelink. So this is how you do it. <a [routerLink]="[ '/user/', userId, 'building', buildingId]">I am a link</a> The userid is public property in the .ts file of the controller. There is just one gotcha. In the middle, there are these hard coded strings, for eg. building, do not put ..read more
Visit website
Unit Testing ASP.NET Core Web API using XUnit and FakeItEasy
Mitul Suthar's Coding Blog
by Mitul Suthar
4y ago
Let’s take a one ASP.NET Core Web API method and add unit tests using XUnit and FakeItEasy. My environment: Visual Studio 2019 Enterprise, ASP.NET Core 2.2, FakeItEasy, AutoFixture and XUnit. Source code I have a Before and After version of the source code hosted on github. In the After folder, you can view the completed solution. System Under Test There is a ProductsController with one HTTP GET method returning a list of products and a unit test project. There is a ProductService injected into ProductsController that returns the Products. In the following section, we would like to add tests a ..read more
Visit website
PowerApps and Flow Deployment Issues
Mitul Suthar's Coding Blog
by Mitul Suthar
4y ago
In this article, we take a look at Flow deployment issues when it comes deploying multiple PowerApps applications. The issues are encountered when you have the following setup. You have multiple applications within the same environment. For instance in the same environment, you have a PowerApp called AppDEV, AppQA, AppUAT and AppPROD You have applications connected to their respective SQL Servers. You have a separate Flow for each App and they are named as FlowDEV, FlowQA, FlowUAT, and FlowPROD Each Flow will use a different connection such as SQLConnectionDEV, SQLConnectionQA, SQLConnectionU ..read more
Visit website
A22-Use Azure DevOps to build a docker image and push to private repository
Mitul Suthar's Coding Blog
by Mitul Suthar
4y ago
In this post, I want to explain the steps I took to create a docker image and push to a private docker hub repository using Azure DevOps. In the previous post, we looked at adding docker support to an existing ASP.NET Core SPA application that uses Angular 7. It took me 17th attempts to get the build to work. In hindsight, it is always easy to say, that I could have read the logs or documentation but by just following the docs or the web interface of Azure DevOps, it isn’t obvious for a new user to figure this out. You can argue that Azure DevOps is great, or this and that, but it has its quir ..read more
Visit website

Follow Mitul Suthar's Coding Blog on FeedSpot

Continue with Google
Continue with Apple
OR