Recently, version 0.15.0
of the kitchen-azurerm
gem came out which featured a breaking change for our chef cookbooks. A change was introduced that allowed the user to pass in the name for the network interface card and changed the default name from nic
to nic-<vm-name>
. We needed to support either format.
![](https://res.cloudinary.com/devopsdina/image/upload/v1586278930/conditional-logic-in-kitchen/ruby_ozw98j.jpg)