I am very honored to be named a VMware vExpert again... and yeah it was announced on Feb 17, 2022 however at that time somehow missed that email ;)
I would like to Congratulations to all those who made in the vExpert 2022 list.
Welcome to my blog...this blog focuses on day 2 day Cloud Ops & VMware virtualization stuff...keep learning :)
I am very honored to be named a VMware vExpert again... and yeah it was announced on Feb 17, 2022 however at that time somehow missed that email ;)
I would like to Congratulations to all those who made in the vExpert 2022 list.
In this quick post would discuss the process and steps involved in rotating the expiring Azure AD application certification configured for AWS SSO login.
This is applicable where you have your AWS account SSO configured with Azure Active Directory and the associated application password is about to expire or maybe already expired.
Before you start, make sure to have the appropriate AWS IAM and Azure AD permission or involve the teams having the required access to create an application certificate (in Azure) and rotate the same in AWS.
Now, login to AWS and take the backup of currently used metadata.
#first you need to connect to your Azure account
Connect-AzAccount
#Get the list of Subscriptions availabe in your Azure account
Get-AzSubscription
#Set the desired subscription as default
Select-AzSubscription -Subscription "Subscription name"
#Set the required variable to make this scriprt reusable
$rgName = read-host "Enter the resourceGroup name where this VM reside"
$vmName = read-host "Enter the VM name"
Set-AzVM -Name $vmName ResourceGroupName $rgName -redeploy
#first you need to connect to your Azure account
az login
#List Subscription in your Azure account
az account list --output table
#to set your Subscription as default for this session
az account set --subscription "Name of your Subscription
az vm redeploy -name "name of the VM" -group "resource group name"During VM redeployment operation the Status of the VM changes to Updating as the VM prepares to redeploy and then changes to Starting as the VM boots up on a new Azure host.