Azure supports both space and '+' chars in the NetworkSecurityGroup name.
When NSG is requested with below API: space is encoded into '+' incorrectly and Resource not found exception is thrown.
Caused by: com.microsoft.windowsazure.exception.ServiceException: ResourceNotFound: The Network Security Group Test+Space does not exist.
at com.microsoft.windowsazure.exception.ServiceException.createFromXml(ServiceException.java:208)
at com.microsoft.windowsazure.management.network.NetworkSecurityGroupOperationsImpl.get(NetworkSecurityGroupOperationsImpl.java:2593)
As a workaround, in my client code, before calling the NetworkSecurityGroupOperationsImpl.get(), we are converting the Space char as "%20".
Azure supports both space and '+' chars in the NetworkSecurityGroup name.
When NSG is requested with below API: space is encoded into '+' incorrectly and Resource not found exception is thrown.
As a workaround, in my client code, before calling the NetworkSecurityGroupOperationsImpl.get(), we are converting the Space char as "%20".