The Azure Security Group Policy resource has methods to add and manage Azure security group policies for Azure cloud accounts that are managed by CloudGuard. Among the management operations are methods to add services (rules) to security groups.
Azure Network Security Groups