Menu

Virtual Geek

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

Stuffs from real IT system ADMINISTRATORS world and my LAB

Create List or Remove VMware VM Snapshots with PowerCLi

This is very handy and useful PowerCLI script, when I do my labs or production deployment changes on VMware environment. Whenever I have multiple servers to make changes and wants to ensure no problem should occur after changes, I take temporary VMware snapshots. But working with snapshot manually in GUI on multiple VMs, it is time consuming and sometimes there is no accuracy. Here to have perfect…

Read more

Ansible authenticate to Microsoft Azure using credential profiles Part 2

This part is continuation of Ansible authenticate to Microsoft Azure using credential profiles Part 1. Earlier I used automatic variables to use profile while executing ansible yaml script. But it is sometimes very inefficient, So inside the Ansible azure yaml code you can use profile parameter as highlighted below in the script. Security profiles are found inside ~/.azure/credentials file (In…

Read more

Ansible authenticate to Microsoft Azure using credential profiles Part 1

My earlier article Quickstart How to authenticate Ansible with Microsoft Azure was for basic and foundation for authentication to azure using Ansible. But I have scenarios with multiple subscriptions to automate multiple azure clouds using Ansible, in that case I will make use of multiple credentials profiles for those subscriptions.

The file ~/.azure/credentials will contain all the subs…

Read more

Quickstart How to authenticate Ansible with Microsoft Azure

This article is first part of Deploy create Virtual Network vNET in Azure cloud using Ansible Here I am going to show multiple ways to authenticate Ansible with Microsoft Azure cloud. Very first method is very simple using azure az cli. Make sure you have installed azure cli application on linux where ansible playbooks will be executed. Use below command to login and try your Ansible yaml playboo…

Read more

Azure add create a Subnet to existing Virtual Network using PowerShell

This is second part of the earlier written article Create a Azure Virtual Network with Subnet using PowerShell. Here in this blog I will create subnet in already created Azure vNET (Virtual Network). I have defined Azure vNET and subnets in Powershell variables. I am creating a Azure vNET without any subnet as shown in below example.

Download this script New-AzSubnetInvNet.ps1 here or it is …

Read more

Create a Azure Virtual Network with Subnet using PowerShell

Azure VNet (Virtual Network) is the essential element for your private network in the Azure Cloud. Virtual Network allows various kinds of Azure resources, such as Azure Virtual Machines (VM), to securely connect with each other, the internet, and on-premises networks. In this article I will be creating Azure Virtual Network using PowerShell. The very first command is to connect azure cloud. (Make…

Read more

Deploy create Virtual Network vNET in Azure cloud using Ansible

This is ansible code example for deploying creating vNET (Virtual Network) on Microsoft Azure cloud. This is working basic ansible yaml/yaml script.

Below example shows how it is deployed using ansible-playbook command from the linux using ansible-playbook command.

Download this script here or it is also available on github.com/janviudapi.

ubuntu@ansible:/home$ cd /home/ubuntu/Docum…

Read more

Azure PowerShell Get-AzStorageShare Could not get the storage context

While working with Azure Storage Account Shares report, while running below Azure az PowerShell command to get shares list, it was throwing error.

Get-AzStorageShare -Name testbackup
Get-AzStorageShare: could not get the storage context. Please pass in a storage context or set the current storage context.

Microsoft Azure az Get-AzStorageShare could not get the storage context. Please pass in a storage context or set the current storage context.png

Solution: To resolve this error message and get the information about shares, …

Read more

PowerCLi Connect-VIServer could not connect using the requested protocol

There is a common issue you might have faced while connecting to either vCenter server or Esxi Server using Vmware PowerCLI.

Connect-VIserver $esxiServer -User $user -Password $password
Connect-VIServer could not connect using the requested protocol. 
Additional Information: The remote server returned an unexpected resource: (302) Found.

Microsoft Powershell VMware Azure powercli set-powercliconfiguration connect-viserver invalidcertificateaction ignore use systemproxy.png

Solution: The provided server name or ip add…

Read more

PowerCLI The SSL connection could not be established see inner exception

Recently while working with Vmware PowerCLI on one of my new laptop, when connecting to esxi server and vCenter server with Connect-VIserver command, I was receiving below error.

Connect-VIServer $esxiserver -User $user -Password $password
Connect-VIServer The SSL connection could not be established, see inner exception. 

VMware vSphere vCenter Esxi Connect-viserver powercli ssl connection could not be established powershell inner exception.png

This error is occuring due to vCenter or Esxi isn't configure…

Read more

View older posts »

Page Views

8134421

This is really helpful.

nope, still having the same issue after running these commands

Thanks for the comment. Do you have any tips for 'someone who just wants to work in AWX and not all the other stuff'.
I'm havin' a bitch of a time finding good docs.

It works !! Great job !!!! Really Appreciate

thank you so much for this guide, unfortunately I am getting this (server 2016):
LDAP over Secure Sockets Layer (SSL) will be unavailable at this time because the server was unable to obtain a certificate.

Additional Data
Error value:
8009030d The credentials supplied to the package were not recognized

what did I miss??

Follow me on Blogarama