Microsoft has outlined that On 30 September 2025, Basic SKU public IP addresses will be retired in Azure. I have used Basic SKU public IP addresses in the last 30 days. I am trying to get a list of resources that use Basic SKU via the following , but it times out .
Is there a way i can get it using Powershell ? Also in order to avoid any issues in the future can i just upgrade to Standard SKU public IP addresses ?
CodePudding user response:
You can use this command to list all Public IP addresses in one subscription that are using the Basic SKU.
Get-AzPublicIpAddress | Where-Object { $_.Sku.Name -eq 'Basic' }
You can also query the Resource Graph in order to get the corresponding Public IP addresses across all subscriptions in your tenant:
Search-AzGraph -Query "resources | where type =~ 'Microsoft.Network/publicIPAddresses' | where sku.name =~ 'Basic'"
You can upgrade to Standard SKU if the IP address is disassociated and has static allocation method.