PSRule.Rules.Azure icon indicating copy to clipboard operation
PSRule.Rules.Azure copied to clipboard

Rename Azure.VM.NICAttached

Open BernieWhite opened this issue 4 years ago • 2 comments

The rule name no longer makes sense as Microsoft.Network/networkInterfaces can be used by other services instead of just VMs.

A more generic name just as Azure.NIC.Attached is a better idea.

Also applies to: Azure.VM.UniqueDns and Azure.VM.NICName which all related to Microsoft.Network/networkInterfaces resources.

Renaming a rule is a breaking change so this will need to wait until the next major version.

Related to #932


Update 2023-12-07

Previously this was only a breaking change. Now aliases in PSRule allows the change to be made earlier with an alias that points back to the old rule. #2574

From v2 the aliases can be removed.

BernieWhite avatar Sep 03 '21 01:09 BernieWhite

@BernieWhite

Should we move the ones that are not specific to VM only in VM.Rule.ps1 and VM.Rule.yaml to a more general one? Since NICs for an instance can be used for many other services. Was starting on this task, but felt weird to rename it without moving.

BenjaminEngeset avatar Nov 13 '22 14:11 BenjaminEngeset

@BenjaminEngeset Agree we should move the rule too. I think we can put it into NIC.Rule.ps1 or NIC.Rule.yaml.

BernieWhite avatar Nov 25 '22 13:11 BernieWhite