Showing posts with label PowerShell. Show all posts
Showing posts with label PowerShell. Show all posts

Saturday, August 23, 2025

Fixing Azure CLI Storage Account Whitelisting Error: ‘IPs does not appear to be an IPv4 or IPv6 network

This blog explains an error that occurs when whitelisting IPs on a storage account using an Azure CLI script. The script attempts to pass the IPs as a space-separated string and apply them through the CLI. However, it fails with an error indicating that the IP format is incorrect. This post explains the issue and provides the steps to fix it.

Pre-requites:

  • Azure Storage account
  • The $ipList parameter accepts a semicolon-separated list of IP addresses

Monday, September 19, 2022

Hiding Outputs of PowerShell

There might be situations where you want to hide outputs from PowerShell scripts. This blog explains how to achieve that.

Following code sample is used to connect with azure portal and show the resource group details. To avoid output values visible in the logs, we can add | Out-Null as shown in the following sample. You can learn more about Out-Null from here.

Saturday, December 21, 2019

Resolving reading mal-formatted XML with PowerShell

This post explains a small issue faced while reading the XML configuration file values using a PowerShell script. You may have experienced the same issue while reading XML files with PowerShell. So, this post would help you to learn how we can resolve the issue.

Our requirement was to get the content of the App.config file and App.dll.config file to a PowerShell variable. It was possible to get the content of the App.config file to a PowerShell variable with following command.$appConfig is the App.config file path.