Obtiene una imagen de máquina virtual.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}?api-version=2025-04-01
Parámetros de identificador URI
| Nombre |
En |
Requerido |
Tipo |
Description |
|
location
|
path |
True
|
string
minLength: 1
|
Nombre de la región de Azure.
|
|
offer
|
path |
True
|
string
|
Una oferta válida del editor de imágenes.
|
|
publisherName
|
path |
True
|
string
|
Un editor de imágenes válido.
|
|
skus
|
path |
True
|
string
|
Una SKU de imagen válida.
|
|
subscriptionId
|
path |
True
|
string
minLength: 1
|
Identificador de la suscripción de destino.
|
|
version
|
path |
True
|
string
|
Una versión válida de SKU de imagen.
|
|
api-version
|
query |
True
|
string
minLength: 1
|
Versión de API que se usará para la operación.
|
Respuestas
| Nombre |
Tipo |
Description |
|
200 OK
|
VirtualMachineImage
|
La operación de Azure se completó correctamente.
|
|
Other Status Codes
|
CloudError
|
Una respuesta de error inesperada.
|
Seguridad
azure_auth
Flujo de OAuth2 de Azure Active Directory.
Tipo:
oauth2
Flujo:
implicit
Dirección URL de autorización:
https://login.microsoftonline.com/common/oauth2/authorize
Ámbitos
| Nombre |
Description |
|
user_impersonation
|
suplantar la cuenta de usuario
|
Ejemplos
VirtualMachineImage_Get_MaximumSet_Gen
Solicitud de ejemplo
GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/aaaaaa/publishers/aaa/artifacttypes/vmimage/offers/aaaaaaaaaaaaaaaaaaaaaaaaaaaaa/skus/aaaaaaaaaaaaaaaaaaaaaaaaaaa/versions/aaaaaaaaaaaaaaaaaaa?api-version=2025-04-01
/**
* Samples for VirtualMachineImages Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/
* virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineImage_Get_MaximumSet_Gen.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void virtualMachineImageGetMaximumSetGen(com.azure.resourcemanager.AzureResourceManager azure) {
azure.virtualMachines().manager().serviceClient().getVirtualMachineImages().getWithResponse("aaaaaa", "aaa",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaa",
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.compute import ComputeManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-compute
# USAGE
python virtual_machine_image_get_maximum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = ComputeManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.virtual_machine_images.get(
location="aaaaaa",
publisher_name="aaa",
offer="aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
skus="aaaaaaaaaaaaaaaaaaaaaaaaaaa",
version="aaaaaaaaaaaaaaaaaaa",
)
print(response)
# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armcompute_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v7"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7033e85e1f80ef5cd9ca664b538ed193a8fd815b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json
func ExampleVirtualMachineImagesClient_Get_virtualMachineImageGetMaximumSetGen() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armcompute.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewVirtualMachineImagesClient().Get(ctx, "aaaaaa", "aaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaa", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.VirtualMachineImage = armcompute.VirtualMachineImage{
// ID: to.Ptr("aaaaaaaaaaa"),
// Name: to.Ptr("aaaaaaaaa"),
// ExtendedLocation: &armcompute.ExtendedLocation{
// Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
// Type: to.Ptr(armcompute.ExtendedLocationTypesEdgeZone),
// },
// Location: to.Ptr("aaaaa"),
// Tags: map[string]*string{
// "key6817": to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
// },
// Properties: &armcompute.VirtualMachineImageProperties{
// AutomaticOSUpgradeProperties: &armcompute.AutomaticOSUpgradeProperties{
// AutomaticOSUpgradeSupported: to.Ptr(true),
// },
// DataDiskImages: []*armcompute.DataDiskImage{
// {
// Lun: to.Ptr[int32](17),
// }},
// Disallowed: &armcompute.DisallowedConfiguration{
// VMDiskType: to.Ptr(armcompute.VMDiskTypesNone),
// },
// Features: []*armcompute.VirtualMachineImageFeature{
// {
// Name: to.Ptr("aaaaaaaaaaaaaaaaaaaaa"),
// Value: to.Ptr("aaaaaaaaaaaaaaaaaaaa"),
// }},
// HyperVGeneration: to.Ptr(armcompute.HyperVGenerationTypesV1),
// ImageDeprecationStatus: &armcompute.ImageDeprecationStatus{
// AlternativeOption: &armcompute.AlternativeOption{
// Type: to.Ptr(armcompute.AlternativeTypeOffer),
// Value: to.Ptr("aaaaaaa"),
// },
// ImageState: to.Ptr(armcompute.ImageStateScheduledForDeprecation),
// ScheduledDeprecationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-01-13T00:00:00.000Z"); return t}()),
// },
// OSDiskImage: &armcompute.OSDiskImage{
// OperatingSystem: to.Ptr(armcompute.OperatingSystemTypesWindows),
// },
// Plan: &armcompute.PurchasePlan{
// Name: to.Ptr("aaaaaaaaa"),
// Product: to.Ptr("aaaaaaaaaaaaaa"),
// Publisher: to.Ptr("aaaaaaaaaaaaaaaaaaa"),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { ComputeManagementClient } = require("@azure/arm-compute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv/config");
/**
* This sample demonstrates how to Gets a virtual machine image.
*
* @summary Gets a virtual machine image.
* x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json
*/
async function virtualMachineImageGetMaximumSetGen() {
const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}";
const location = "aaaaaa";
const publisherName = "aaa";
const offer = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
const skus = "aaaaaaaaaaaaaaaaaaaaaaaaaaa";
const version = "aaaaaaaaaaaaaaaaaaa";
const credential = new DefaultAzureCredential();
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.virtualMachineImages.get(
location,
publisherName,
offer,
skus,
version,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Compute.Models;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Compute;
// Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json
// this example is just showing the usage of "VirtualMachineImages_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
string subscriptionId = "{subscription-id}";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation
AzureLocation location = new AzureLocation("aaaaaa");
string publisherName = "aaa";
string offer = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
string skus = "aaaaaaaaaaaaaaaaaaaaaaaaaaa";
string version = "aaaaaaaaaaaaaaaaaaa";
VirtualMachineImage result = await subscriptionResource.GetVirtualMachineImageAsync(location, publisherName, offer, skus, version);
Console.WriteLine($"Succeeded: {result}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Respuesta de muestra
{
"properties": {
"plan": {
"publisher": "aaaaaaaaaaaaaaaaaaa",
"name": "aaaaaaaaa",
"product": "aaaaaaaaaaaaaa"
},
"osDiskImage": {
"operatingSystem": "Windows"
},
"dataDiskImages": [
{
"lun": 17
}
],
"automaticOSUpgradeProperties": {
"automaticOSUpgradeSupported": true
},
"hyperVGeneration": "V1",
"disallowed": {
"vmDiskType": "None"
},
"features": [
{
"name": "aaaaaaaaaaaaaaaaaaaaa",
"value": "aaaaaaaaaaaaaaaaaaaa"
}
],
"imageDeprecationStatus": {
"imageState": "ScheduledForDeprecation",
"scheduledDeprecationTime": "2023-01-13T00:00:00+00:00",
"alternativeOption": {
"type": "Offer",
"value": "aaaaaaa"
}
}
},
"name": "aaaaaaaaa",
"location": "aaaaa",
"tags": {
"key6817": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"extendedLocation": {
"name": "aaaaaaaaaaaaaaaaaaaaa",
"type": "EdgeZone"
},
"id": "aaaaaaaaaaa"
}
VirtualMachineImage_Get_MinimumSet_Gen
Solicitud de ejemplo
GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/aaaaaaaaaaaa/publishers/aaaaaaaaaaa/artifacttypes/vmimage/offers/aa/skus/aaaaaaaaa/versions/aaaaaaaaaaaaaaaaaaaaaaaaaaaaa?api-version=2025-04-01
/**
* Samples for VirtualMachineImages Get.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/
* virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineImage_Get_MinimumSet_Gen.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void virtualMachineImageGetMinimumSetGen(com.azure.resourcemanager.AzureResourceManager azure) {
azure.virtualMachines().manager().serviceClient().getVirtualMachineImages().getWithResponse("aaaaaaaaaaaa",
"aaaaaaaaaaa", "aa", "aaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.compute import ComputeManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-compute
# USAGE
python virtual_machine_image_get_minimum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = ComputeManagementClient(
credential=DefaultAzureCredential(),
subscription_id="{subscription-id}",
)
response = client.virtual_machine_images.get(
location="aaaaaaaaaaaa",
publisher_name="aaaaaaaaaaa",
offer="aa",
skus="aaaaaaaaa",
version="aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
)
print(response)
# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armcompute_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v7"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7033e85e1f80ef5cd9ca664b538ed193a8fd815b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json
func ExampleVirtualMachineImagesClient_Get_virtualMachineImageGetMinimumSetGen() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armcompute.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewVirtualMachineImagesClient().Get(ctx, "aaaaaaaaaaaa", "aaaaaaaaaaa", "aa", "aaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.VirtualMachineImage = armcompute.VirtualMachineImage{
// ID: to.Ptr("aaaaaaaaaaa"),
// Name: to.Ptr("aaaaaaaaa"),
// Location: to.Ptr("aaaaa"),
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { ComputeManagementClient } = require("@azure/arm-compute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv/config");
/**
* This sample demonstrates how to Gets a virtual machine image.
*
* @summary Gets a virtual machine image.
* x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json
*/
async function virtualMachineImageGetMinimumSetGen() {
const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}";
const location = "aaaaaaaaaaaa";
const publisherName = "aaaaaaaaaaa";
const offer = "aa";
const skus = "aaaaaaaaa";
const version = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
const credential = new DefaultAzureCredential();
const client = new ComputeManagementClient(credential, subscriptionId);
const result = await client.virtualMachineImages.get(
location,
publisherName,
offer,
skus,
version,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Compute.Models;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Compute;
// Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json
// this example is just showing the usage of "VirtualMachineImages_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
string subscriptionId = "{subscription-id}";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation
AzureLocation location = new AzureLocation("aaaaaaaaaaaa");
string publisherName = "aaaaaaaaaaa";
string offer = "aa";
string skus = "aaaaaaaaa";
string version = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
VirtualMachineImage result = await subscriptionResource.GetVirtualMachineImageAsync(location, publisherName, offer, skus, version);
Console.WriteLine($"Succeeded: {result}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Respuesta de muestra
{
"name": "aaaaaaaaa",
"location": "aaaaa",
"id": "aaaaaaaaaaa"
}
Definiciones
AlternativeOption
Objeto
Describe la opción alternativa especificada por el publicador para esta imagen cuando esta imagen está en desuso.
| Nombre |
Tipo |
Description |
|
type
|
AlternativeType
|
Describe el tipo de la opción alternativa.
|
|
value
|
string
|
Indica el valor de la opción alternativa especificado por el publicador. Este es el nombre de la oferta cuando el tipo es Oferta o el nombre del plan cuando el tipo es Plan.
|
AlternativeType
Enumeración
Describe el tipo de la opción alternativa.
| Valor |
Description |
|
None
|
|
|
Offer
|
|
|
Plan
|
|
ApiError
Objeto
Error de API.
| Nombre |
Tipo |
Description |
|
code
|
string
|
Código de error.
|
|
details
|
ApiErrorBase[]
|
Detalles del error de la API
|
|
innererror
|
InnerError
|
El error interno de la API
|
|
message
|
string
|
El mensaje de error.
|
|
target
|
string
|
Destino del error concreto.
|
ApiErrorBase
Objeto
Base de errores de API.
| Nombre |
Tipo |
Description |
|
code
|
string
|
Código de error.
|
|
message
|
string
|
El mensaje de error.
|
|
target
|
string
|
Destino del error concreto.
|
ArchitectureTypes
Enumeración
Especifica el tipo de arquitectura
| Valor |
Description |
|
x64
|
|
|
Arm64
|
|
AutomaticOSUpgradeProperties
Objeto
Describe las propiedades de actualización automática del sistema operativo en la imagen.
| Nombre |
Tipo |
Description |
|
automaticOSUpgradeSupported
|
boolean
|
Especifica si la actualización automática del sistema operativo es compatible con la imagen.
|
CloudError
Objeto
Una respuesta de error del servicio de proceso.
| Nombre |
Tipo |
Description |
|
error
|
ApiError
|
Error de API.
|
DataDiskImage
Objeto
Contiene la información de las imágenes de disco de datos.
| Nombre |
Tipo |
Description |
|
lun
|
integer
(int32)
|
Especifica el número de unidad lógica del disco de datos. Este valor se usa para identificar discos de datos dentro de la máquina virtual y, por tanto, debe ser único para cada disco de datos conectado a una máquina virtual.
|
DisallowedConfiguration
Objeto
Especifica la configuración no permitida para una imagen de máquina virtual.
| Nombre |
Tipo |
Description |
|
vmDiskType
|
VmDiskTypes
|
Tipos de disco de máquina virtual que no están permitidos.
|
ExtendedLocation
Objeto
Tipo complejo de la ubicación extendida.
| Nombre |
Tipo |
Description |
|
name
|
string
|
Nombre de la ubicación extendida.
|
|
type
|
ExtendedLocationTypes
|
El tipo de la ubicación extendida.
|
ExtendedLocationTypes
Enumeración
El tipo de la ubicación extendida.
| Valor |
Description |
|
EdgeZone
|
|
HyperVGenerationTypes
Enumeración
Especifica el tipo de HyperVGeneration
ImageDeprecationStatus
Objeto
Describe las propiedades de estado de desuso de la imagen en la imagen.
| Nombre |
Tipo |
Description |
|
alternativeOption
|
AlternativeOption
|
Describe la opción alternativa especificada por el publicador para esta imagen cuando esta imagen está en desuso.
|
|
imageState
|
ImageState
|
Describe el estado de la imagen.
|
|
scheduledDeprecationTime
|
string
(date-time)
|
El momento, en el futuro, en el que esta imagen se marcará como obsoleta. Esta hora programada es elegida por el publicador.
|
ImageState
Enumeración
Describe el estado de la imagen.
| Valor |
Description |
|
Active
|
|
|
ScheduledForDeprecation
|
|
|
Deprecated
|
|
InnerError
Objeto
Detalles del error interno.
| Nombre |
Tipo |
Description |
|
errordetail
|
string
|
El mensaje de error interno o el volcado de excepción.
|
|
exceptiontype
|
string
|
El tipo de excepción.
|
OperatingSystemTypes
Enumeración
Esta propiedad permite especificar el tipo del sistema operativo que se incluye en el disco si crea una máquina virtual a partir de una imagen de usuario o un VHD especializado. Los valores posibles son: Windows,Linux.
| Valor |
Description |
|
Windows
|
|
|
Linux
|
|
OSDiskImage
Objeto
Contiene la información de la imagen de disco del sistema operativo.
PurchasePlan
Objeto
Se utiliza para establecer el contexto de compra de cualquier artefacto de terceros a través de MarketPlace.
| Nombre |
Tipo |
Description |
|
name
|
string
|
Identificador del plan.
|
|
product
|
string
|
Especifica el producto de la imagen de Marketplace. Este es el mismo valor que Offer en el elemento imageReference.
|
|
publisher
|
string
|
Identificador del publicador.
|
VirtualMachineImage
Objeto
Describe una imagen de máquina virtual.
| Nombre |
Tipo |
Description |
|
extendedLocation
|
ExtendedLocation
|
Ubicación extendida de la máquina virtual.
|
|
id
|
string
|
Identificador de recurso
|
|
location
|
string
|
La ubicación de Azure admitida del recurso.
|
|
name
|
string
|
Nombre del recurso.
|
|
properties.architecture
|
ArchitectureTypes
|
Especifica el tipo de arquitectura
|
|
properties.automaticOSUpgradeProperties
|
AutomaticOSUpgradeProperties
|
Describe las propiedades de actualización automática del sistema operativo en la imagen.
|
|
properties.dataDiskImages
|
DataDiskImage[]
|
La lista de información de imágenes de disco de datos.
|
|
properties.disallowed
|
DisallowedConfiguration
|
Especifica la configuración no permitida para la VirtualMachine creada a partir de la imagen
|
|
properties.features
|
VirtualMachineImageFeature[]
|
Especifica capacidades adicionales admitidas por la imagen
|
|
properties.hyperVGeneration
|
HyperVGenerationTypes
|
Especifica el tipo de HyperVGeneration
|
|
properties.imageDeprecationStatus
|
ImageDeprecationStatus
|
Describe las propiedades de estado de desuso de la imagen en la imagen.
|
|
properties.osDiskImage
|
OSDiskImage
|
Contiene la información de la imagen de disco del sistema operativo.
|
|
properties.plan
|
PurchasePlan
|
Se utiliza para establecer el contexto de compra de cualquier artefacto de terceros a través de MarketPlace.
|
|
tags
|
object
|
Especifica las etiquetas asignadas a la máquina virtual. Para obtener más información sobre el uso de etiquetas, consulte Uso de etiquetas para organizar los recursos de Azure.
|
VirtualMachineImageFeature
Objeto
Especifica capacidades adicionales admitidas por la imagen
| Nombre |
Tipo |
Description |
|
name
|
string
|
Nombre de la característica.
|
|
value
|
string
|
El valor correspondiente para la entidad.
|
VmDiskTypes
Enumeración
Tipos de disco de máquina virtual que no están permitidos.
| Valor |
Description |
|
None
|
|
|
Unmanaged
|
|