Search This Blog

Saturday, 26 April 2025

Creating a NuGet Package Feed to Host Artifacts

Step-by-Step Guide: Creating a NuGet Package Feed to Host Artifacts

🔹 Step 1: Create a C# Class Library and Generate NuGet Package

  1. Open Visual Studio.
  2. Go to File → New → Project.
  3. Select Class Library (.NET Standard) or .NET Framework.
  4. Name the project (e.g., ClassLibrary1) and click Create.
  5. Right-click the project in Solution Explorer and select Properties.
  6. Go to the Package tab.
  7. Check Generate NuGet package on build.
  8. Fill in metadata fields as needed (Package ID, Version, Author, etc.).
  9. Build the project in Release mode.

Note: The .nupkg file will be generated in bin\Release\.

🔹 Step 2: Set Up a NuGet Feed in Azure DevOps

  1. Go to Azure DevOps Portal and log in.
  2. Create a new project named Own-Artifacts.
  3. Click Create.
  4. In the left-hand menu, click Artifacts.
  5. Click + Create Feed.
  6. Enter the following:
    • Name: Feed-OwnNuGet
    • Visibility: People in your cloud user
  7. Click Create.

🔹 Step 3: Publish the NuGet Package to Azure DevOps Feed

  1. Ensure nuget.exe is installed and available in your system path.
  2. Open a Command Prompt or Developer Command Prompt.
  3. Run the following command:
nuget.exe push -Source "https://pkgs.dev.azure.com/clouduser/Own-Artifacts/_packaging/Feed-OwnNuGet/nuget/v3/index.json" -ApiKey az "D:\hc-git\ClassLibrary1\bin\Release\ClassLibrary-hc1.1.0.0.nupkg"

Note: Replace the path with the actual location of your .nupkg file.



NuGet Feed

✅ Summary

  • You created a class library and generated a NuGet package.
  • You set up a private NuGet feed in Azure DevOps.
  • You published the package to your own feed.

Monday, 29 April 2024

Elasticsearch - Nodes, clusters, and shards

What is Ingress

Ingress.

Enabling traffic.

  • Openning the cluster to receive external traffic.
Traffic routing
  • Defining the traffic routes to backend services.
Traffic Reliability
  • Ensure Reliable, Secure communication.

Monday, 21 August 2023

Orchestration Tools

Orchestration Tools.

Orchestration - automation that supports processes and workflows, such as provisioning resources.

  • Scale up and scale down applications on request
  • Auto scale applications based on usage
  • Create self-healing systems by spinning down unhealthy node and replacing them with new ones
Orchestration Tools Examples

  • Docker Swarm
  • kubernetes
  • Zookeeper
  • Terraform

Configuration Management Tools

Configuration Management Tools.

What is configuration Management?

  • Resolves configuration drift
  • Maintaining desired state
  • The process of systematically handling chnages to a system
  • Maintain integrity of a system over time
  • Automation plays an key role
    • Puppet
    • Ansibel
    • Chef
    • Salt

Examples

Ansible
  • Open Source
  • Declarative configuration
  • YAML configuration files
  • No control server needed - but ansible tower available
  • No agents needed, just python and ssh


Puppet
  • Declarative configuration
  • Manage state through a UI
  • Custom modules use puppet DSL
  • Pushes chnages to clients using control server and agents installed on clients.


Chef
  • Procedural configuration
  • Agent/Server
  • Uses chef DSL


Salt
  • Declarative configuration
  • Agent (minions) /Server (Master) - but can support agentless
  • Uses YAML
  • Support for event-driven automation


Note:
Idempotent Behavior - is an operation that can be applied multiple times without changing the result beyound the initial application. E.g. 1 x 1 = 1
- Configuration management tools will avoid reapeating tasks.
- The desired state is maintained even if you run it multiple times.

Why use Configuration Management?
  • Quick provisioning of New servers
  • Quick Recovery from Critical Events
  • No more snowflake
  • Version controlfor the server Envirnment
  • Replaced Environment

Build Automation Tools

Build Automation Tools.

Examples

  • Java: ant, maven, gradle
  • JavaScript: npm, grunt, gulp
  • Packer: build machine images and containers

Saturday, 19 August 2023

DevOps Tools Periodic Table

Search the world's most comprehensive index of full-text books.

The Periodic Table of DevOps Tools is the industry's go-to resource for identifying best-of-breed tools across the software delivery lifecycle

DevOps Periodic table - https://digital.ai/learn/devops-periodic-table/

Creating a NuGet Package Feed to Host Artifacts

Step-by-Step Guide: Creating a NuGet Package Feed to Host Artifacts 🔹 Step 1: Create a C# Class Library and Generate NuG...

Recent Post