Azure API:如何获取Azure公共映像

Azure API:如何获取Azure公共映像,azure,Azure,我将使用公共映像创建VM,但我无法从Azure API获取公共映像列表,因此如何获取Azure公共映像,我们可以使用哪个url?您可以使用此url获取指定位置、发布者、产品和SKU的所有虚拟机映像版本的列表 GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifa

我将使用公共映像创建VM,但我无法从Azure API获取公共映像列表,因此如何获取Azure公共映像,我们可以使用哪个url?

您可以使用此url获取指定位置、发布者、产品和SKU的所有虚拟机映像版本的列表

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions?api-version=2017-12-01

参考资料:

是您想要找到的吗?看起来是对的,谢谢