Menu

Virtual Geek

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

Blog posts

Access credential parameters stored in Ansible Tower within a playbook

This article is helpful in below operations.

  • How to access credential (secret vault values) parameters stored in Ansible Tower within a playbook? (For example: Secrets, username, password, etc)
  • How to use these variables when delegating to another host in the same playbook?

Resolution

Read more

Update vCenter Server Appliance (VCSA) from VAMI portal

This is a step by step procedure updating vCenter Server Appliance (VCSA) using VAMI portal. Before making update to vCenter server make sure you properly backup vCenter server using article Backup VMware vCenter server using SMB protocol.  As I am testing update in DEV environment I have taken a s…

Read more

Convert PowerShell ps1 to EXE using native windows tool iexpress

Some times it is essentials to convert your codes to EXE. In my scenario when I try to provide script to end users and if I expect them not to modify the script before running or executing it, I can convert any cmd bat or PS1 script to EXE easily using native windows tool called iExpress.exe, and ex…

Read more

Git clone or push Missing or invalid credentials fatal authentication failed

While working with Git clone I was receiving fatal: Authentication failed and Missing or invalid credentials error. This happens due to missing password or it is not mentioned.

Git Visual studio clone fatal authentication ansible awx fatal variable pass connection error vscode missing or invalid credentials scm.png

[vjanvi@ansiblwcentos variablepass]$ git clone http://[email protected]/Bonobo.Git.Server/ansibleawx.git
Clonin…

Read more

PowerShell GUI get patch updates information with disk space and uptime

This script helps to get last installed patches, updates with dates, Server/System Last boot Uptime and C drive disk space information. This script was asked by one of the my SCCM team to troubleshoot in case if patches/updates installation are failing.

After executing script you can view the inf…

Read more

HOW to Add multiple email addresses to Distribution Groups in Exchange online Office 365

I was working with one of my client on a automation solution with PowerShell for Exchange Online. I wanted to write a PowerShell script to add secondary alias email addresses to Distribution Groups in Exchange online Office 365.

Base of the script is Set-DistributionGroup cmdlet which does all …

Read more

Second VMKernel port not working or reachable on nested ESXi server in VMware ESXi server

I was building nested VMware vSphere lab for POCs. While configuration I was facing strange issue after installing nested ESXi server as virtual machine on Physical ESXi Server, I created Few VMs and VMKernel ports on nested ESXi VM. But when I was trying to connect VMs or new VMKernel port it was f…

Read more

Ansible Azure An exception occurred during task execution. TypeError deprecated() got an unexpected keyword argument

After upgrading Ansible Azure plugin module, while running my old ansible scripts against Azure resources to change or get information I was receiving error of TypeError: deprecated() got an unexpected keyword argument. (My credentials are stored in the file location of vim ~/.azure/credentials

Read more

Staging vCenter Server Appliance (VCSA) updates using Rest API

This script is a another part of Upgrade vCenter Server Appliance (VCSA) with VMware PowerCLI. In this article I am using Rest API calls to update VCSA via VAMI. At the moment I am able to stage the updates, but installation of update to vCenter is not working. Once I get solution I will revise thi…

Read more

Upgrade vCenter Server Appliance (VCSA) with VMware PowerCLI

I had bunch of vCenter Server appliance (VCSA) to update/upgrade. Although the upgrade process using vCenter Server VAMI portal (5480) is fairly very simple and easy as shown in Patching update VMware vCenter Server Appliance from a zipped update bundle Web server. But I wanted it to get it automat…

Read more

VMware PowerCLI Clone VM from template with customization specs in vCenter

This is a second alternative script to VMware PowerCLI Clone and Deploy VM from template in vCenter. In earlier article I did customization of newly cloned Virtual Machine using Windows PowerShell commands which I executed using Invoke-VMscript. Here in this script I used inbuilt customization pro…

Read more

VMware PowerCLI Clone and Deploy VM from template in vCenter

This VMware PowerCLI helps cloning and deploying Virtual Machine from template in vCenter Server. I had to write OS customization for Windows 2019 server because due to some reason native customization profile was failing. Here in this script there are 3 files in the script package, first file is 

Read more

PowerShell How to find file and folders in Azure Storage Account Blobs and Containers

This script helps to find files and folders on Azure Storage Accounts blobs and containers.

There are two PowerShell variables I have mentioned, First Variable is $searchFile use file extension or names you want to search. Report are generated in file path mentioned under variable $exportCsv.

Read more

Powershell GUI System Hardware Information

After publishing a project Create an interactive HTML report with PowerShell data, few people gave me feedback, They implemented this and found it very useful that it shows the serial number of server/desktop hardware parts without opening the system and doesn't require downtime, All happens remotel…

Read more

Create multiple Azure vnet (Virtual Network) using ansible

This is a second part of Deploy create Virtual Network vNET in Azure cloud using Ansible, in this part I am creating multiple vNets with single Ansible script. All the info and details related to new vNet added in separate vnet variable yml file in json format as shown below.

Azure Virtual network json ansible yaml mutliple vnets creation resources arm templates resource group address prefixes cidr location vnet name.jpg

Next in below …

Read more

Running Your First PowerShell Scripts With Jenkins and Git

Jenkins is the the top and leading open source automation server, It offers hundreds of plugins to help building (develop), deploying and automating any project. It is a great orchestration tool for automation. In this article I will use it to schedule a simple Job for PowerShell script using Git. 

Read more

Send Email using PowerShell with .net object System.Net.Mail.MailMessage

I have written this article to understand how email can be sent using System.Net.Mail.MailMessage .net object with PowerShell. Below is the complete documentation regarding this object https://learn.microsoft.com/en-us/dotnet/api/system.net.mail.mailmessage?view=net-7.0. Although you can use simp…

Read more

Send system disk space utilization HTML report Email using PowerShell

This script generates system disk drive usage HTML reports using PowerShell. This is very handy for sending weekly or daily reports of servers in html or host it on web server for monitoring. In my case VDI team contacted me for creating a system Disk HTML reports for VDI and sending them to concern…

Read more

How to install Ansible AWX on Ubuntu using Kubernetes K8S

This is step by step in the detailed installation guide of Ansible AWX operator (Automation controller Tower). On this channel earlier I had written 2 articles on how to install Ansible AWX operator but they are no longer valid as the installation instruction has been changed. For any new changes yo…

Read more

Can not execute kustomize build issue installing Ansible AWX Operator

While installing Ansible AWX operator tower (Automation Controller) for the development team, I was receiving the below error. I was following the official installation guide given from https://github.com/ansible/awx-operator.

kustomize kustomization.yaml yml kubernetes manifest configuration vmware vsphere ansible awx operator azure ansible platform automation controller tower setup sevalsymlink git.jpg

ubuntu@AnsibleAWX:~$
ubuntu@AnsibleAWX:~$ kustomize build . …

Read more

20 blog posts

Blog Search

Page Views

11406903

Follow me on Blogarama