Menu

Virtual Geek

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

Blog posts : "microsoft"

Why is my Azure recovery services vault not getting deleted?

While working on Azure Portal Get Azure virtual machine backup reports using Powershell I was trying to decommision few Azure Recovery Service Vault (Backup) resource by deleteing it, I went to Azure portal selected Recovery Service Vault from Resource Group and pressed delete button, but I was rec…

Read more

Azure Powershell : Operation returned an invalid status code 'BadRequest'

While working on few Azure Powershell scripts I was keep receiving an error 'BadRequest' whenever I was trying to create a new resource in Azure. I kept on trying to resolve an error but didn't find any proper solution to it. Initially the message was not much friendly so to dig down further I went …

Read more

Create Azure Key Vault Certificates on Azure Portal and Powershell

I had one requirement to create a SSL certificates on Azure Key Vault, I have Key Vault already deployed with earlier written articles Create key vault and secrets with access policies in Microsoft Azure. I just wanted to create new SSL certificate in it so using managed Identity In the the future…

Read more

Get Azure virtual machine backup reports using Powershell

I found my junior colleague are gathering Azure virtual machines backup report manually so I thought to write and pull Azure Virtual Machine Backup (Recovery services vault) report including Backup status and Summary using Microsoft PowerShell script to ease the task.

To check the current backup…

Read more

PowerShell List All Azure Resverations

Recently in one of the Azure project my client was utilizing Azure Reservations Instances (Azure RI) they wanted a Microsoft PowerShell script from me to pull the list report. Below is the screenshot of all configured reservations on the Azure Portal.

Microsoft Azure reservations All succeded scope subscription VM RI Virtual Machine Powershell az.reservations module subscription cost optimization.png

To work on Azure Reservations with Power…

Read more

Install an SSL-TLS Certificate In Microsoft IIS web server

After Install and Configure IIS Web Server on Windows Server I wanted to add SSL/TLS certificate on web site on IIS web server, These are the step by step procedure to add certificate, Open Server Manager on windows server, from Tools click Internet Information Services (IIS) Manager

Microsoft windows server IIS web server Internet information services manager tools server manager add ssl tls certificate edit binding

I…

Read more

Install and Configure IIS Web Server on Windows Server

I was working on a client project where customer had more than 200 vCenter servers of mix version, My goal was to design and automate patching the VMware vCenter Server Appliance from a Zipped Update Bundle. As per the criteria I found first requirement was to install and configure a Web Server, for…

Read more

Create and manage Azure budgets

Whenever I assign permissions on new Azure Subscription to new colleage groups I always create either new Azure budget or manage existing budget alert group to receive necessory subscription cost spending communications. After creating or managing budget I can ensure users are informed of the subscr…

Read more

PowerShell slice array into groups of smaller arrays

This is a small script to slice array into groups of smaller array, and I use it in my scripts most often. This script is very helpful when I want to batch process multiple server at time but not on all the server, instead fewer servers at servers in batch. Once I have a very big fat list of servers…

Read more

Powershell Convert range of numbers into another list of numbers maintaining ratio

Recently I was working on some PowerShell GUI project, Where I wanted to convert a range of number into another range of number maintaining ratio, for this I had to use one Arithmetic Math formula and, for example I have numbers between 1 to 200, Which I wanted to fit into new number of range bet…

Read more

PowerShell HPE ILO4 Rest API automation examples

Using Microsoft PowerShell to consume and automate any Restful API is very easy. In my earlier article I showed how to automate VMware product to automation rest api - Powershell Using vRealize Log Insight Rest API. In this article I am using HPE ILO4 Rest API to write automation scripts and how …

Read more

Powershell Write-Eventlog The source name test does not exist on computer localhost

I was writing one GUI program on Microsoft Powershell, One of the requirement was logs (Information, Warnings and Errors) must be written under Event Log - Event Viewer, So troubleshooting or information viewing for program operations is easy and everything is logged properly. To fulfill the task th…

Read more

PowerShell Invoke-WebRequest The underlying connection was closed: Could not establish trust relationship for the SSL TLS secure channel.

I face below error frequently whenever try to automate a website running self signed or invalid certificate, Here is my lab vCenter server for demo which is using self signed SSL certificate. This causes my script to fail whenever using Invoke-WebRequest to automate website. You can trust the cer…

Read more

PowerShell Invoke-WebRequest The request was aborted Could not create SSL TLS secure channel

I was testing automating few banking websites to check uptime, Invoke-WebRequest is use to access webiste, using this command I wrote a script to access bank website with PowerShell commands, but while executing scripts it was failing to access web site and showing below error.

Invoke-We…

Read more

Add and manage TLS SSL certificates on Azure Web App

Uploading to Azure Web Apps Using FTP

Web apps works as very good hosting plan, you can host your website apps on line with Azure very easily. This is 3rd article in the series how to upload files to web app. Once Azure Web Apps is configured, next step is to upload custom web application built with php + html codes on it. Go to the Res…

Read more

Azure azcopy login error Selected user account does not exist in tenant 'Microsoft Services' and cannot access the application '579a7132-0e58-4d80-b1e1-7a1e2d337859'

While working with new version 10 of azcopy.exe I was facing error while login. After logging in the browser it was not accepting my username and password to login to Azure.What it says is I am not able to login to '579a7132-0e58-4d80-b1e1-7a1e2d337859', and my user account doesn't exist for login.…

Read more

AzCopy copy transfer fails with 403 This request is not authorized to perform this operation using this permission

Azcopy is a great command-line tool for automating Azure storage, it is a simple yet powerful command line interface that allows you to copy files to and from Azure storage and between Azure storage accounts. I was doing POC of the latest version of azcopy.exe, (There 2 different flavors available f…

Read more

Configure a custom domain in Azure Web Apps

Create and deploy a website with Microsoft Azure web app service plan

I was testing Microsoft Azure web app resource service for one of a incoming project, it allows you to publish and manage your website easily without having to work with the the underlying servers, storage, or network assets, basically it is a PAAS (Platform as a service), it is helps you to focus o…

Read more

20 Blog Posts

Blog Search

Page Views

5330604

Follow me on Blogarama