Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Stuffs from real IT system ADMINISTRATORS world and my LAB

Azure OIDC OpenID Connect password less with GitHub Actions

This documentation describes in what way to organize GitHub Actions to authenticate with Microsoft Azure Entra ID using OpenID Connect (OIDC) for secure and automated deployments to Azure. This guide covers key ideas like credentials, federated identity, and customer-managed keys for data encryption and use them securely in GitHub Actions pipeline.

Federation permits external OpenID Connect id…

Read more

Part 4.2 GitHub Actions manage Microsoft Azure Cloud with az CLI

In this article, I will guide through the procedure of securely keeping Azure credentials in GitHub Actions Repository Secrets and using them to authenticate with Azure CLI commands. This enables the execution of GitHub Actions workflows, automating various tasks and deployments in Azure. By storing Azure credentials as secrets in GitHub, 
You can Authenticate to Azure services using the Azure…

Read more

Part 4.1 GitHub Actions deploy azure resources with PowerShell

After successfully configuring and setting up Azure and Terraform in GitHub Actions, I embarked on a Proof of Concept (POC) to automate PowerShell scripts (Azure az module) using GitHub Actions. I meticulously automated all the job steps using PowerShell, with a primary focus on utilizing credentials to establish a secure connection to the Microsoft Azure cloud and perform the necessary configurat…

Read more

Part 4 GitHub Actions deploy azure resources with Terraform backend

In this section, I'm leveraging the azurerm backend to keep the Terraform state (tfstate) file in an Azure Storage Account. This will make sure that the Terraform state is centralized and consistent across different environments and team members. Every time I push changes to my Terraform configuration files to GitHub, Terraform will compare the updated code with the current state of the infrastru…

Read more

Part 3 Automating and Planning Azure Resources with Terraform and GitHub Actions

GitHub Actions is a CI/CD tool that automates tasks and workflows within your repository. It lets you to create custom workflows, trigger actions, and keep sensitive information securely. Common use cases include automating testing, deployment, and code quality checks. You can also use GitHub Actions to automate Azure Terraform deployments, enabling consistent and repeatable infrastructure provis…

Read more

Configure SNMP Service on HPE ILO Redfish Rest API using PowerShell

In our team, a colleague was tasked with configuring SNMP settings on multiple HPE ILO portals. To streamline this process and avoid manual labor, they sought my expertise in automation. I leveraged the HPE ILO Redfish REST API with PowerShell to automate the task, utilizing the comprehensive API documentation available at https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/#snmp-ports-configu…

Read more

Reboot remote Linux server from PHP PowerShell web server for privileged users

This HTML tool enables users to restart Linux servers remotely from their web browser, providing a convenient and efficient way to manage server operations. Built using HTML, PHP, and PowerShell, this project is designed to be hosted on a Windows XAMPP server only. 

For added security and authorization, privileges can be defined in the JSON file located in the 'dbase' folder. This allows admin…

Read more

HTML JavaScript generate GUID

Here is a small HTML project I created to generate a new GUID each time the "Generate New GUID" button is clicked. Additionally, this project includes a feature that allows you to easily copy the generated GUID to your clipboard by clicking on a copy icon next to the GUID. The project uses basic HTML, CSS, and JavaScript, and it showcases how simple web functionality can be implemented in a lightw…

Read more

Part 2 Terraform modules using a github.com repository as a source

In this article, I will guide you through the process of configuring a Terraform module hosted on GitHub.com as a source for the use inside Terraform module projects. In my previous blog (Part 1), I demonstrated how to set up a GitHub.com repository and branch using HashiCorp Terraform code.

To Start, I will initialize a Git repository and push a module folder to store our Terraform module. Thi…

Read more

Create GitHub repository and branches using Terraform

In this blog post, I will walk you through using HashiCorp Terraform to create and configure repositories and branches on an existing GitHub account. Before we begin, it's important to note that you should already have an active GitHub account.

To allow Terraform to interact with your GitHub account and perform the necessary operations, you'll need to generate a Personal Access Token (PAT). Thi…

Read more

View older posts »

Page Views

11964718

THIS! This worked, thank you so much!

Almost 1h spent troubleshooting silly windows errors...all other "tutorials" and "guides" should really just link this ste.

Thank you.

I wish I would have read this a few days ago. This fixed my issues. Much appreciated.

Where I can run this script?

This is one of the best how-to articles I have ever found. Thanks!

Follow me on Blogarama