Azure - add-machine/deploy with --to subnet=XXX fails with placement scope: invalid model UUID "model-uuid"

As described in this article Juju | Placement directive I am trying to use the --to directive to add machines or deploy applications on Azure bootstrapped juju controller, but it fails as so:

juju deploy microk8s --channel latest/edge --constraints "arch=amd64 mem=8G cores=4 allocate-public-ip=false root-disk=100G" --to subnet=r3gpnbppy3coiBootstrapVnet --debug --verbose
09:29:36 INFO  juju.cmd supercommand.go:56 running juju [3.4.0 e1b7dcd7390348c37f8b860011e7436e6ed3f4cc gc go1.20.13]
09:29:36 DEBUG juju.cmd supercommand.go:57   args: []string{"/snap/juju/26548/bin/juju", "deploy", "microk8s", "--channel", "latest/edge", "--constraints", "arch=amd64 mem=8G cores=4 allocate-public-ip=false root-disk=100G", "--to", "subnet=r3gpnbppy3coiBootstrapVnet", "--debug", "--verbose"}
09:29:36 INFO  juju.juju api.go:86 connecting to API addresses: [172.18.0.7:17070 20.67.1.160:17070 100.95.110.8:17070 4.245.113.205:17070 172.18.0.5:17070 [fd7a:115c:a1e0::955f:6e08]:17070 20.67.1.143:17070 172.18.0.6:17070]
09:29:36 DEBUG juju.api apiclient.go:1172 successfully dialed "wss://172.18.0.5:17070/model/b16a7322-793f-4c5e-8208-32dfeff023a3/api"
09:29:36 INFO  juju.api apiclient.go:707 connection established to "wss://172.18.0.5:17070/model/b16a7322-793f-4c5e-8208-32dfeff023a3/api"
09:29:36 INFO  juju.juju api.go:86 connecting to API addresses: [172.18.0.5:17070 100.95.110.8:17070 4.245.113.205:17070 [fd7a:115c:a1e0::955f:6e08]:17070 20.67.1.143:17070 172.18.0.6:17070 20.67.1.160:17070 172.18.0.7:17070]
09:29:36 DEBUG juju.api apiclient.go:1172 successfully dialed "wss://20.67.1.160:17070/api"
09:29:36 INFO  juju.api apiclient.go:707 connection established to "wss://20.67.1.160:17070/api"
09:29:37 ERROR cmd charm.go:388 cannot add application "microk8s": placement scope: invalid model UUID "model-uuid"
09:29:37 DEBUG juju.api monitor.go:35 RPC connection died
09:29:37 DEBUG juju.api monitor.go:35 RPC connection died
ERROR failed to deploy charm "microk8s"
09:29:37 DEBUG cmd supercommand.go:549 error stack: 
github.com/juju/juju/cmd/juju/application/deployer.(*repositoryCharm).PrepareAndDeploy:391: failed to deploy charm "microk8s"

Looks like you’re hitting Bug #2056501 “Deploying an application to a specific node fails ...” : Bugs : Canonical Juju