skip to Main Content

Azure – Convert Output or Object in Array to Table Powershell

I created a custom object $customsa = New-Object -TypeName psobject $customsa | Add-Member -MemberType NoteProperty -Name Name -Value (Get-AzStorageAccount).StorageAccountName $customsa | Add-Member -MemberType NoteProperty -Name Tier -Value (Get-AzStorageAccount).AccessTier $customsa | Add-Member -MemberType NoteProperty -Name Replication -Value (Get-AzStorageAccount).sku.Name $customsa | Add-Member…

VIEW QUESTION

Powershell – Get-AzureADAuditSignInLogs multiple filters

I'm trying to Get last signin date for Global Admins $role = Get-AzureADDirectoryRole | Where-Object {$_.displayName -eq 'Global Administrator'} $admins = @(Get-AzureADDirectoryRoleMember -ObjectId $role.ObjectId | select DisplayName, UserPrincipalName) Foreach ($admin in $admins){ $upn = $admin.UserPrincipalName $signons = Get-AzureADAuditSignInLogs -Filter "UserPrincipalName…

VIEW QUESTION
Back To Top
Search