Skip to content

[MySQL/MariaDB/PostgreSQL] New-AzMySqlFirewallRule create a default name with time stamp when no name is passed #11932

@msJinLei

Description

@msJinLei

Description of the new feature

From @dcaro

When you add a firewall rule for a specific IP address (the add current client IP Address button) , the portal generates a rule with the name “ClientIPAddress_YYYYY-MM-DD_HH-MM-SS”.
It doe the same with the name “AllowAll_YYYYY-MM-DD_HH-MM-SS” when the range is 0.0.0.0 – 255.255.255.255 as you can see in the screenshot below.

portal_firewall

The suggestion was to get to a similar behavior so here is my proposal:

  1. Add a ‘-ClientIpAddress’ parameter and when used we create a rule with the characteristics as above: ClientIPAddress_YYYYY-MM-DD_HH-MM-SS
    Ideally when startIP = endIP and no names are passed we should do the same but I am not sure this worth the effort.

  2. Similarly we can add a -AllowAll parameter that would create a rule name “AllowAll_YYYYY-MM-DD_HH-MM-SS” with a startIP of 0.0.0.0 and endIp of 255.255.255.255

  3. When no name is defined for the rules we pass “undefined” as does the portal.

Proposed implementation details (optional)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions