Enter-AzureRmVM Created NSG Rule Should Not Be Persistent
Currently, when Enter-AzureRmVm is used, a Network Security Group rule opening WinRm HTTP 5985 is opened for any source and destination IP. When the session is closed, the NSG Rule remains.
This rule should be destroyed when closing the session. After talking to Hemant, the most likely best approach would be to set a default session time limit, and add a parameter to specify a limit if the default is not desired. Then, automation could be scheduled at the specified time limit to destroy the NSG that was created. This would allow the VM to only have the network security group rule in place for the time it is being used.