Skip to content

Instantly share code, notes, and snippets.

View Muthuramandevops's full-sized avatar

Muthuramandevops

View GitHub Profile
@Muthuramandevops
Muthuramandevops / publicip.ps1
Created February 14, 2024 05:42 — forked from irlperu/publicip.ps1
Get All Public IP's in Azure Subscription
#Login-AzAccount
Get-AzSubscription
Select-AzSubscription -SubscriptionId SubscriptionIdHere
Get-AzPublicIpAddress | select -Property *name,@{name='sku';e={$_.sku.name}}
# Loop through all Subscriptions that you have access to and export the information
Get-AzSubscription | foreach-object {