Quick tip: Removing warning messages from Azure cmdlets

Microsoft Azure is a dynamic environment and changes will happen, whether you like it or not. Microsoft issues a warning message to users of Azure cmdlets that the cmdlet they are using will be changed. They will get this warning every time that the cmdlet is used. When you are scripting, such changes will not impact you. So, there is no point to keep receiving those warning messages. An example of the warning message can be seen in the image below. In this case, I was creating subnets. However, I was not using the “breaking changes” that they will perform.

To remove the error messages, an environment variable can be added to the current session. Keep in mind that all messages will be suppressed, so proceed with caution.

Set-Item Env:\SuppressAzurePowerShellBreakingChangeWarnings "true"

After running the line above, the same Azure cmdlet does not show the warning message.

Featured image: Pixabay

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides of the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange, CISSP and several other certifications. Anderson contributes to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at Techgenix.com, MSExchange.org, ITPROCentral.com and Anderson Patricio.org (Portuguese).

Share
Published by
Anderson Patricio

Recent Posts

It’s official: Microsoft shuts down Windows for Mobile

Windows for Mobile has been at death’s door for a while, but now it has now been taken off life…

28 mins ago

Interpol launches all-out attack against strong encryption

In another assault on privacy, Interpol plans to join law enforcement agencies in the U.S., Australia, and the UK in…

5 hours ago

How to upgrade an Exchange server without going crazy

When you upgrade an Exchange server, you can often expect some headaches, especially in legacy versions. These tips may alleviate…

8 hours ago

Intel and MediaTek announce 5G modem solutions partnership

A new partnership between Intel and MediaTek to develop 5G modem solutions wants to be in the fast lane when…

1 day ago

Azure Quick Tip: Troubleshooting your code with test pane

Sometimes, it’s the simple things that can save you a lot of headaches. As this Quick Tip shows, always make…

1 day ago

Creating bootable ISO files for Windows 10 the easy way

Microsoft has simplified the process of creating bootable ISO files, and we show you the easiest ways to create them…

1 day ago