Hi,

From the description, I'm assuming the instances will be boot from volume. In that case, you will need to create a volume type for each backend and you can use 'extra_specs' properties in the volume type to assign a volume type to a particular AZ. In this case, if you're already creating one backend per AZ then a volume type linked to that backend should be good.
Now you will need to create a bootable volume and launch an instance with it. Again, the instance should be launched in the AZ as used in the volume type to support your use case.
Also if you want to restrict volumes of a particular AZ to be attached to the instance of the same AZ, you can use the config option cross_az_attach[1] which will allow/disallow cross AZ attachments.
Hope that helps.

[1] https://docs.openstack.org/nova/latest/configuration/config.html#cinder.cross_az_attach

Thanks
Rajat Dhasmana

On Wed, Jan 4, 2023 at 7:31 AM Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> wrote:
Hello guys.
I took time to search for this question but I can't find the answer.

I have an Openstack private cloud and I use an  AZ to a department. 
For example,
AZ-IT for IT department
AZ-Sale for Sale department...

I will prepare 2 storage backends for each AZ.

My goal is that when users launch an instance by choosing AZ then It will use only the backend for this AZ.

Would Openstack support my goal?

Thanks for reading my email.

Nguyen Huu Khoi