I am trying to create NSG Rules in Microsoft Azure using their API, does anyone know if this is fine to create a Rule?
NetworkSecurityGroup.Update update = networkSecurityGroup.update();
update.defineRule(name)
.allowInbound()
.fromAddresses("")
.fromPortRanges()
.toAddresses("")
.toPortRanges("")
.withProtocol(SecurityRuleProtocol.UDP)
.withPriority(ruleRepresentation.getPriority())
.attach();