ubuntu@2d790164608d:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local available never connected
spark-test admin@local available 3 hours ago
poc-test admin@local available 24 seconds ago
rtsa* admin@local available 11 seconds ago
## In the rtsa model, machine-4 is fine:
ubuntu@2d790164608d:~$ juju run --machine 4 'host machine-4 && hostname && ip addr show eth0 | grep "inet "'
machine-4.v3swbdii50hetgpziubiep2i0g.jx.internal.cloudapp.net has address 10.3.0.8
machine-4
inet 10.3.0.8/16 brd 10.3.255.255 scope global eth0
## Switch to different model, which also has a machine-4:
ubuntu@2d790164608d:~$ juju switch poc-test
local.azure-sc:rtsa -> local.azure-sc:poc-test
## In the poc-test model, machine-4 is returning the address from the rtsa model's machine-4:
ubuntu@2d790164608d:~$ juju run --machine 4 'host machine-4 && hostname && ip addr show eth0 | grep "inet "'
machine-4.v3swbdii50hetgpziubiep2i0g.jx.internal.cloudapp.net has address 10.3.0.8
machine-4
inet 10.2.0.12/16 brd 10.2.255.255 scope global eth0