what should be the ipv4_address when deploying docker compose cluster on azure vm?

I have the following docker compose file that I want to deploy to a Azure Viurtual Machine.
I am new to deployment and cloud. I am really confused as to what to right in place of ipv4_address?
In the following connection if I try to connect from within the VM it connects as the ipv4_address is 192.168.98.10.

But, it fails to connect from outside the vm over the global ip that azure provides.

---
# Source: tendisplus/templates/tendisplus.yaml

version: '3'
services:
  tendisplus-master-0:
    image: tencentdbforkv/tendisplus:latest
    container_name: tendisplus-master-0
    ports:
      - "30000:51002"
    networks:
      tendisplus-net:
        ipv4_address: 192.168.98.10
    environment:
      - REDIS_PASSWORD=password
      - CLUSTER=yes
    volumes:
      - "/data/tmp/tendisplus/30000:/data1/tendis/51002"
    restart: on-failure:3
  tendisplus-slave-0:
    image: tencentdbforkv/tendisplus:latest
    container_name: tendisplus-slave-0
    ports:
      - "50000:51002"
    networks:
      tendisplus-net:
        ipv4_address: 192.168.98.20
    depends_on:
      - tendisplus-master-0
    environment:
      - REDIS_PASSWORD=password
      - CLUSTER=yes
    volumes:
      - "/data/tmp/tendisplus/50000:/data1/tendis/51002"
    restart: on-failure:3
networks:
  tendisplus-net:
    driver: bridge
    ipam:
      config:
        - subnet: 192.168.98.0/24

I also tried adding my global ip in place of the 192.168.98.10 but it sends this error

ERROR: for tendisplus-master-2  Cannot start service tendisplus-master-2: Invalid address 13.92.1.119: It does not belong to any of this network's subnets

ERROR: for tendisplus-master-2  Cannot start service tendisplus-master-2: Invalid address 13.92.1.119: It does not belong to any of this network's subnets

ERROR: for tendisplus-master-0  Cannot start service tendisplus-master-0: Invalid address 13.92.1.119: It does not belong to any of this network's subnets

ERROR: for tendisplus-master-1  Cannot start service tendisplus-master-1: Invalid address 13.92.1.119: It does not belong to any of this network's subnets