Menu

Virtual Geek

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

Stuffs from real IT system ADMINISTRATORS world and my LAB

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 failing. I tried to ping Secondary configured VMK port IPs or VM under nested ESXi server it was also…

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

Related Article: Quickstart How to authenticate Ansible with Microsoft Azure

This issue occurs…

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 this script. I have uploaded this script for my reminder that I need to complete this script.

Downl…

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 automated so once I assign task to my juniors they make less mistakes.

Note: Before starting upgrade of…

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 profiles.

(Note: If in your case customization profile is not working, check once cloning vm manuall…

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 vCenterCredentials.json where add vCenter server credentials information to connect vCenter server.…

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.

$searchFile = 'txt|csv|ps1'
$exportCsv = 'c:\temp\files.csv'

$storageAccount = Get-AzStora…

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 remotely.

There were few suggestions, Accordingly I updated my scripts. But there was one good suggest…

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 ansible yaml script, I am using foreach loop on the provided json information and create mutliple Vi…

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. 

I have installed Jenkins server on Microsoft Windows OS. To use PowerShell and Jenkins together …

Read more

View older posts »

Page Views

9295879

Love that, seems to work really well.
Is there anyway someone cleverer than me could add sql database backups? We have sql on vms and would like to get thos added to the report.

Thanks,

Steve.

thx a lot !!
worked grate !!

Hi, is there a way to add credentials to the command?
For example when the logged in user has no rights to modify the registry on the remote-computer?

my command looks like this atm:
Write-RegistryValue -ComputerName $Servername -RegistryHive LocalMachine -RegistryKeyPath "SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\Scripts\Shutdown\0\0" -ValueName 'Parameters' -ValueData force -ValueType String

The script runs with systemrights, wich has no permissions to modify registry remotly, so i would like to add credentials.

I am getting Get-AzConsumptionUsageDetail : Operation returned an invalid status code 'BadRequest' throughout multiple subscriptions and blank CSV file....is there a workaround?

Follow me on Blogarama