Relative Content

Tag Archive for azurepowershell

PowerShell list virtual directories inside azure storage account

The below PowerShell script provides directory details filtered with directory name “internal” and tag name ” Business” also with container name “landing”, I noticed few storage accounts with project directories inside directory “internal” and trying to list them all in the output.

connect to azure ad with serviceprincipal to get a listing of users and info

trying to connect to azure ad and get a listing of accounts that match a specific company and get a file with the account info. the script works if I use an interactive login but I need to automate this with the serviceprincipal login. get an error at get-azureaduser in this script. what am I doing wrong?

PowerShell script to list Azure storage blobs

I have this requirement to get storage account details and list storage blobs filtered out by specific container “test”. I got this reference code from stackoverflow which will output the container based on tag value. I tried adding the “if” condition to the same script to filter container details which isn’t giving any results, also unsure how to list blobs in the same script filtered by container “test”.