Menu

Virtual Geek

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

Stuffs from real IT system ADMINISTRATORS world and my LAB

Using Ansible for Managing VMware vSphere Infrastructure

On this second part article of after How to install Ansible on Linux for vSphere configuration, I have written here 2 Ansible playbook files (play tasks created) to configure VMWare ESXi servers. Language for the ansible playbook files is YAML/YML format. When using Ansible to use on VMware vSphere, pyVmomi python module is required (already installed and shown in earlier article). Ansible u…

Read more

How to sign PowerShell ps1 scripts

By reading the article subject first question rose to the mind why you should sign PowerShell scripts? The answer is whenever we download powershell script or we receive it from another users, The digital signature allows the user to confirm the validity of the certificate used to sign the script. It also allows the user to ensure that the script hasn't been tampered with since it was signed. Al…

Read more

Creating an internal PowerShell module repository

I was at client location and online Microsoft PSGallery was blocked as per company security policy, They wanted to only allow to use local respository which will only have tested and verified PowerShell modules. For this we suggested to configure a solution local PowerShell repository. In the Microsoft Powershell there is a option to configure local central PSGallery for better collaboration and s…

Read more

Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send

I was setting up a local on premises PSRepository server for collaboration purpose between my team also future planning is to limit users downloading modules from only from in-house PowerShell repositories. Local repository was setup but while publishing module on the repository I was getting below error.

Publish-Module -Path C:\On -Repository OnPremRepo -Force
Microsoft.PowerShell.Utility\…

Read more

Get-PSRepository WARNING Unable to find module repositories

I was at one of my client's location and setting up PowerShell enviroment. I was trying to download few PowerShell modules from online PSGallery with below commands, while received the errors. After trying find and install PowerShell module with required parameters, in both the error outputs it was asking to run cmdlet Get-PSRepository

Find-Module Posh-SSH
PackageManagement\Find-Pack…

Read more

Managing ESXi SSL certificate properties from vCenter server

One of the way to manage esxi certificate properties is using vCenter server, This is good option where you don't have generate a certificate for every indivisual Esxi. You just need to configure valid SSL certificate once on the vCenter VMCA. Improving Esxi security by using vCenter server can ensure that all the esxi servers are compliant on SSL certificate configuration. To configure the settin…

Read more

Part 3 Git clone version control integration in Visual Studio Code

Part 1 Git version control integration in Visual Studio Code
Part 2 Git master branch source control integration in Visual Studio Code 
Part 3 Git clone version control integration in Visual Studio Code
github git visual studio code vscode working directory staging area local repository repote repo sitory git add commit merge fetch checkout push.png

All the earlier articles were to create a new git repository locally first and push/upload the existing code on remote git server. Now I will ask my colleague to pull/clone Git repository o…

Read more

Part 2 Git master branch source control integration in Visual Studio Code

Part 1 Git version control integration in Visual Studio Code
Part 2 Git master branch source control integration in Visual Studio Code
Part 3 Git clone version control integration in Visual Studio Code

powershell visual studio code vscode source code version control github git branch master merge push post pull.png

Origin/Master and branches works as code snapshot/checkpoint, The default branch name in Git is origin/master (first initial commit). A branch in Git is simply a lightweight movable pointer…

Read more

Part 1 Git version control integration in Visual Studio Code

Part 1 Git version control integration in Visual Studio Code
Part 2 Git master branch source control integration in Visual Studio Code
Part 3 Git clone version control integration in Visual Studio Code

git github visual studio code diagram vcloud-lab vscode git version control git server version database.png

This article will get you to using GIT version control tool with Visual Studio Code. Git is a collaborative, free and open source distributed version control system designed to handle every…

Read more

VS code remote ssh could not establish to host, connecting was canceled

This article is based on one of the issues I was facing while configuring VSCode Remote - SSH. 

Earlier Parts
How to Setup Passwordless SSH Login on Windows
configure remote ssh extension on visual studio code

Here I configured second linux host in ssh config file. This one is not passwordless.

vs code visaul studio code remote - ssh remote development troubleshooting adding another host remote file over ssh scp with visual studio code  ssh target remote explorer.png

When I connect to the second linux server for first time it asked to verify fingerpri…

Read more

View older posts »

Page Views

3255062

I believe each app have it's own auth token which gets issued after login with MFA in this case. Each app you configure with conditional access with MFA will ask upon access! I think there are some services that share this token though..

You can lower the MFA requests though by configure MFA for trusted devices in the policy to bypass reauthentication for a chosen period, but this doesn't affect that you still have separate MFA prompts for different apps..

Guess this no longer works. Microsoft forced all Partners to use MFA. I am getting prompted when executing (Connect-msolService -Credential $managedCred). The following code no longer works.

$managedCred = Get-StoredCredential -Target o365
Connect-msolService -Credential $managedCred

What's a good admin PowerShell solution using MFA to authenticate to multiple services?

Hi,

Is there way to do this with a command line (or) PowerCLI..? Please let me know.

Follow me on Blogarama