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).

Published by
Anderson Patricio

Recent Posts

RAID 1 vs. RAID 5: When to use each level and why

Redundant array of independent disks (RAID) is the logical grouping of two or more disks…

17 hours ago

Microsoft 365 adds online scheduling to Microsoft Bookings app

Microsoft 365 users have access to an app called Microsoft Bookings. Before you dismiss it…

22 hours ago

Biometrics authentication: Where the technology is now — and where it’s going

As cyberthreats rise in number and complexity, biometrics authentication technology has seen rapid adoption and…

4 days ago

Remote work vulnerabilities: Tips on avoiding a nightmare scenario

Remote work is likely to remain permanent — and so will the vulnerabilities it brings…

4 days ago

Microsoft Teams rolls out new video meetings features

Microsoft Teams is adding new features to help employees adjust to the new normal of…

5 days ago

Azure Charts: If you’re not using this cool feature, you should be

This Azure Quick Tip shows you how to use Azure Charts, a great resource that…

5 days ago