azure dynamic inventory - store static file

Hi Experts,

I have ansible setup that pulls inventory dynamically using below playbook from azure.We have an requirement to store these hosts in static file for other requirement.Could you someone help here?

ansible all -m ping -i myazure_rm.yml --list

bash-4.4# cat myazure_rm.yml

plugin: azure_rm

auth_source: auto

plain_host_names: yes

Regards

Kumar