For openSUSE Leap 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Cloud:Tools/openSUSE_Leap_15.6/Cloud:Tools.repo
zypper refresh
zypper install python-azuremetadata
For openSUSE Leap 15.5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Cloud:Tools/openSUSE_Leap_15.5/Cloud:Tools.repo
zypper refresh
zypper install python-azuremetadata
For openSUSE Leap 15.4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Cloud:Tools/openSUSE_Leap_15.4/Cloud:Tools.repo
zypper refresh
zypper install python-azuremetadata
For SLE 15 SP5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Cloud:Tools/SLE_15_SP5/Cloud:Tools.repo
zypper refresh
zypper install python-azuremetadata
For SLE 15 SP4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Cloud:Tools/SLE_15_SP4/Cloud:Tools.repo
zypper refresh
zypper install python-azuremetadata