Skip to content

Commit f3af033

Browse files
Add warnings for Basic SKU when create Public IP and LB (Azure#19183)
* added warning about sku switching to standard * Apply suggestions from code review Co-authored-by: Yeming Liu <[email protected]>
1 parent 24e516b commit f3af033

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/Network/Network/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
## Upcoming Release
2222
* Fixed a bug that removes existing resource tags during a Set-AzFirewallPolicy command
23+
* Added breaking change attribute to notify that public ip address sku default behaviour will be changed
24+
- `New-AzPublicIpAddress`
25+
- `New-AzLoadBalancer`
2326

2427
## Version 4.19.0
2528
* Updated cmdlets to add new property of `ExplicitProxy` in Azure Firewall Policy.

src/Network/Network/LoadBalancer/NewAzureRMLoadBalancerCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
using System.Management.Automation;
2626
using AutoMapper;
2727
using MNM = Microsoft.Azure.Management.Network.Models;
28+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2829

2930
namespace Microsoft.Azure.Commands.Network
3031
{
32+
[GenericBreakingChange("It is recommended to use parameter '-Sku Standard' to create new IP address. Please note that it will become the default behavior for IP address creation in the future.")]
3133
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "LoadBalancer", SupportsShouldProcess = true), OutputType(typeof(PSLoadBalancer))]
3234
public partial class NewAzureRmLoadBalancer : NetworkBaseCmdlet
3335
{

src/Network/Network/PublicIpAddress/NewAzurePublicIpAddressCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ namespace Microsoft.Azure.Commands.Network
3030
{
3131
[GenericBreakingChange("Default behaviour of Zone will be changed", OldWay = "Sku = Standard means the Standard Public IP is zone-redundant.",
3232
NewWay = "Sku = Standard and Zone = {} means the Standard Public IP has no zones. If you want to create a zone-redundant Public IP address, please specify all the zones in the region. For example, Zone = ['1', '2', '3'].")]
33+
[GenericBreakingChange("It is recommended to use parameter '-Sku Standard' to create new IP address. Please note that it will become the default behavior for IP address creation in the future.")]
3334
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PublicIpAddress", SupportsShouldProcess = true),OutputType(typeof(PSPublicIpAddress))]
3435
public class NewAzurePublicIpAddressCommand : PublicIpAddressBaseCmdlet
3536
{

0 commit comments

Comments
 (0)