Bagikan melalui


Images - Create Or Update

Membuat atau memperbarui gambar.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}?api-version=2024-03-01

Parameter URI

Nama Dalam Diperlukan Jenis Deskripsi
imageName
path True

string

Nama gambar.

resourceGroupName
path True

string

Nama grup sumber daya.

subscriptionId
path True

string

Kredensial langganan yang secara unik mengidentifikasi langganan Microsoft Azure. ID langganan membentuk bagian dari URI untuk setiap panggilan layanan.

api-version
query True

string

Versi Api Klien.

Isi Permintaan

Nama Diperlukan Jenis Deskripsi
location True

string

Lokasi sumber daya

extendedLocation

ExtendedLocation

Lokasi Gambar yang diperluas.

properties.hyperVGeneration

HyperVGenerationTypes

Menentukan HyperVGenerationType dari VirtualMachine yang dibuat dari gambar. Dari API Versi 2019-03-01 jika sumber gambar adalah blob, maka kita memerlukan pengguna untuk menentukan nilai, jika sumber daya dikelola seperti disk atau rekam jepret, kita mungkin mengharuskan pengguna untuk menentukan properti jika kita tidak dapat menyimpulkannya dari sumber daya terkelola sumber daya.

properties.sourceVirtualMachine

SubResource

Komputer virtual sumber tempat Gambar dibuat.

properties.storageProfile

ImageStorageProfile

Menentukan pengaturan penyimpanan untuk disk komputer virtual.

tags

object

Tag sumber daya

Respons

Nama Jenis Deskripsi
200 OK

Image

OK

201 Created

Image

Dibuat

Other Status Codes

CloudError

Respons kesalahan yang menjelaskan mengapa operasi gagal.

Keamanan

azure_auth

Alur OAuth2 Azure Active Directory

Jenis: oauth2
Alur: implicit
URL Otorisasi: https://login.microsoftonline.com/common/oauth2/authorize

Cakupan

Nama Deskripsi
user_impersonation meniru akun pengguna Anda

Contoh

Create a virtual machine image from a blob with DiskEncryptionSet resource.
Create a virtual machine image from a blob.
Create a virtual machine image from a managed disk with DiskEncryptionSet resource.
Create a virtual machine image from a managed disk.
Create a virtual machine image from a snapshot with DiskEncryptionSet resource.
Create a virtual machine image from a snapshot.
Create a virtual machine image from an existing virtual machine.
Create a virtual machine image that includes a data disk from a blob.
Create a virtual machine image that includes a data disk from a managed disk.
Create a virtual machine image that includes a data disk from a snapshot.

Create a virtual machine image from a blob with DiskEncryptionSet resource.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
        "diskEncryptionSet": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
        },
        "osState": "Generalized"
      }
    }
  }
}

Respon sampel

{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "osState": "Generalized",
        "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
        "diskEncryptionSet": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
        },
        "caching": "ReadWrite"
      },
      "dataDisks": []
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "osState": "Generalized",
        "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
        "diskEncryptionSet": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
        },
        "caching": "ReadWrite"
      },
      "dataDisks": []
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Create a virtual machine image from a blob.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
        "osState": "Generalized"
      },
      "zoneResilient": true
    }
  }
}

Respon sampel

{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "osState": "Generalized",
        "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
        "caching": "ReadWrite"
      },
      "dataDisks": [],
      "zoneResilient": true
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "osState": "Generalized",
        "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
        "caching": "ReadWrite"
      },
      "dataDisks": [],
      "zoneResilient": true
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Create a virtual machine image from a managed disk with DiskEncryptionSet resource.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "snapshot": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
        },
        "diskEncryptionSet": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
        },
        "osState": "Generalized"
      }
    }
  }
}

Respon sampel

{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "snapshot": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
        },
        "diskEncryptionSet": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": []
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "snapshot": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
        },
        "diskEncryptionSet": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": []
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Create a virtual machine image from a managed disk.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "managedDisk": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
        },
        "osState": "Generalized"
      },
      "zoneResilient": true
    }
  }
}

Respon sampel

{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "managedDisk": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": [],
      "zoneResilient": true
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "managedDisk": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": [],
      "zoneResilient": true
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Create a virtual machine image from a snapshot with DiskEncryptionSet resource.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "managedDisk": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
        },
        "diskEncryptionSet": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
        },
        "osState": "Generalized"
      }
    }
  }
}

Respon sampel

{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "managedDisk": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
        },
        "diskEncryptionSet": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": []
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "managedDisk": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
        },
        "diskEncryptionSet": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": []
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Create a virtual machine image from a snapshot.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "snapshot": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
        },
        "osState": "Generalized"
      },
      "zoneResilient": false
    }
  }
}

Respon sampel

{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "snapshot": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": [],
      "zoneResilient": false
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "snapshot": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": [],
      "zoneResilient": false
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Create a virtual machine image from an existing virtual machine.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "sourceVirtualMachine": {
      "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"
    }
  }
}

Respon sampel

{
  "properties": {
    "sourceVirtualMachine": {
      "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"
    },
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "osState": "Generalized",
        "managedDisk": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myVM_OsDisk_1_6dc293b7d811433196903acf92665022"
        },
        "caching": "ReadWrite"
      },
      "dataDisks": [],
      "zoneResilient": false
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "sourceVirtualMachine": {
      "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"
    },
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "osState": "Generalized",
        "managedDisk": {
          "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myVM_OsDisk_1_6dc293b7d811433196903acf92665022"
        },
        "caching": "ReadWrite"
      },
      "dataDisks": [],
      "zoneResilient": false
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Create a virtual machine image that includes a data disk from a blob.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
        "osState": "Generalized"
      },
      "dataDisks": [
        {
          "lun": 1,
          "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd"
        }
      ],
      "zoneResilient": false
    }
  }
}

Respon sampel

{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "osState": "Generalized",
        "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
        "caching": "ReadWrite"
      },
      "dataDisks": [
        {
          "lun": 1,
          "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd"
        }
      ],
      "zoneResilient": false
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "osState": "Generalized",
        "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
        "caching": "ReadWrite"
      },
      "dataDisks": [
        {
          "lun": 1,
          "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd"
        }
      ],
      "zoneResilient": false
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Create a virtual machine image that includes a data disk from a managed disk.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "managedDisk": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
        },
        "osState": "Generalized"
      },
      "dataDisks": [
        {
          "lun": 1,
          "managedDisk": {
            "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2"
          }
        }
      ],
      "zoneResilient": false
    }
  }
}

Respon sampel

{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "managedDisk": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": [
        {
          "lun": 1,
          "managedDisk": {
            "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2"
          }
        }
      ],
      "zoneResilient": false
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "managedDisk": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": [
        {
          "lun": 1,
          "managedDisk": {
            "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2"
          }
        }
      ],
      "zoneResilient": false
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Create a virtual machine image that includes a data disk from a snapshot.

Permintaan sampel

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage?api-version=2024-03-01

{
  "location": "West US",
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "snapshot": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
        },
        "osState": "Generalized"
      },
      "dataDisks": [
        {
          "lun": 1,
          "snapshot": {
            "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2"
          }
        }
      ],
      "zoneResilient": true
    }
  }
}

Respon sampel

{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "snapshot": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": [
        {
          "lun": 1,
          "snapshot": {
            "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2"
          }
        }
      ],
      "zoneResilient": true
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}
{
  "properties": {
    "storageProfile": {
      "osDisk": {
        "osType": "Linux",
        "snapshot": {
          "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
        },
        "osState": "Generalized",
        "caching": "ReadWrite"
      },
      "dataDisks": [
        {
          "lun": 1,
          "snapshot": {
            "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2"
          }
        }
      ],
      "zoneResilient": true
    },
    "provisioningState": "Creating"
  },
  "type": "Microsoft.Compute/images",
  "location": "westus",
  "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage",
  "name": "myImage"
}

Definisi

Nama Deskripsi
ApiError

Kesalahan api.

ApiErrorBase

Basis kesalahan api.

CachingTypes

Menentukan persyaratan penembolokan. Nilai yang mungkin adalah: None,ReadOnly,ReadWrite. Nilai defaultnya adalah: Tidak ada untuk penyimpanan Standar. ReadOnly untuk penyimpanan Premium.

CloudError

Respons kesalahan dari layanan Komputasi.

DiskEncryptionSetParameters

Menjelaskan parameter id sumber daya set enkripsi disk terkelola pelanggan yang dapat ditentukan untuk disk. Catatan: Id sumber daya set enkripsi disk hanya dapat ditentukan untuk disk terkelola. Silakan merujuk https://aka.ms/mdssewithcmkoverview untuk detail lebih lanjut.

ExtendedLocation

Jenis kompleks lokasi yang diperluas.

ExtendedLocationTypes

Jenis lokasi yang diperluas.

HyperVGenerationTypes

Menentukan HyperVGenerationType dari VirtualMachine yang dibuat dari gambar. Dari API Versi 2019-03-01 jika sumber gambar adalah blob, maka kita memerlukan pengguna untuk menentukan nilai, jika sumber daya dikelola seperti disk atau rekam jepret, kita mungkin mengharuskan pengguna untuk menentukan properti jika kita tidak dapat menyimpulkannya dari sumber daya terkelola sumber daya.

Image

Hard disk virtual gambar pengguna sumber. Hard disk virtual akan disalin sebelum dilampirkan ke komputer virtual. Jika SourceImage disediakan, hard drive virtual tujuan tidak boleh ada.

ImageDataDisk

Menjelaskan disk data.

ImageOSDisk

Menjelaskan disk Sistem Operasi.

ImageStorageProfile

Menjelaskan profil penyimpanan.

InnerError

Detail kesalahan dalam.

OperatingSystemStateTypes

Status OS. Untuk gambar terkelola, gunakan Umum.

OperatingSystemTypes

Properti ini memungkinkan Anda menentukan jenis OS yang disertakan dalam disk jika membuat VM dari gambar kustom. Nilai yang mungkin adalah: Windows,Linux.

StorageAccountTypes

Menentukan jenis akun penyimpanan untuk disk terkelola. CATATAN: UltraSSD_LRS hanya dapat digunakan dengan disk data, tidak dapat digunakan dengan Disk OS.

SubResource

ApiError

Kesalahan api.

Nama Jenis Deskripsi
code

string

Kode kesalahan.

details

ApiErrorBase[]

Detail kesalahan Api

innererror

InnerError

Kesalahan dalam Api

message

string

Pesan kesalahan.

target

string

Target kesalahan tertentu.

ApiErrorBase

Basis kesalahan api.

Nama Jenis Deskripsi
code

string

Kode kesalahan.

message

string

Pesan kesalahan.

target

string

Target kesalahan tertentu.

CachingTypes

Menentukan persyaratan penembolokan. Nilai yang mungkin adalah: None,ReadOnly,ReadWrite. Nilai defaultnya adalah: Tidak ada untuk penyimpanan Standar. ReadOnly untuk penyimpanan Premium.

Nama Jenis Deskripsi
None

string

ReadOnly

string

ReadWrite

string

CloudError

Respons kesalahan dari layanan Komputasi.

Nama Jenis Deskripsi
error

ApiError

Kesalahan api.

DiskEncryptionSetParameters

Menjelaskan parameter id sumber daya set enkripsi disk terkelola pelanggan yang dapat ditentukan untuk disk. Catatan: Id sumber daya set enkripsi disk hanya dapat ditentukan untuk disk terkelola. Silakan merujuk https://aka.ms/mdssewithcmkoverview untuk detail lebih lanjut.

Nama Jenis Deskripsi
id

string

ID sumber daya

ExtendedLocation

Jenis kompleks lokasi yang diperluas.

Nama Jenis Deskripsi
name

string

Nama lokasi yang diperluas.

type

ExtendedLocationTypes

Jenis lokasi yang diperluas.

ExtendedLocationTypes

Jenis lokasi yang diperluas.

Nama Jenis Deskripsi
EdgeZone

string

HyperVGenerationTypes

Menentukan HyperVGenerationType dari VirtualMachine yang dibuat dari gambar. Dari API Versi 2019-03-01 jika sumber gambar adalah blob, maka kita memerlukan pengguna untuk menentukan nilai, jika sumber daya dikelola seperti disk atau rekam jepret, kita mungkin mengharuskan pengguna untuk menentukan properti jika kita tidak dapat menyimpulkannya dari sumber daya terkelola sumber daya.

Nama Jenis Deskripsi
V1

string

V2

string

Image

Hard disk virtual gambar pengguna sumber. Hard disk virtual akan disalin sebelum dilampirkan ke komputer virtual. Jika SourceImage disediakan, hard drive virtual tujuan tidak boleh ada.

Nama Jenis Deskripsi
extendedLocation

ExtendedLocation

Lokasi Gambar yang diperluas.

id

string

ID sumber daya

location

string

Lokasi sumber daya

name

string

Nama sumber daya

properties.hyperVGeneration

HyperVGenerationTypes

Menentukan HyperVGenerationType dari VirtualMachine yang dibuat dari gambar. Dari API Versi 2019-03-01 jika sumber gambar adalah blob, maka kita memerlukan pengguna untuk menentukan nilai, jika sumber daya dikelola seperti disk atau rekam jepret, kita mungkin mengharuskan pengguna untuk menentukan properti jika kita tidak dapat menyimpulkannya dari sumber daya terkelola sumber daya.

properties.provisioningState

string

Status penyediaan.

properties.sourceVirtualMachine

SubResource

Komputer virtual sumber tempat Gambar dibuat.

properties.storageProfile

ImageStorageProfile

Menentukan pengaturan penyimpanan untuk disk komputer virtual.

tags

object

Tag sumber daya

type

string

Jenis Sumber Daya

ImageDataDisk

Menjelaskan disk data.

Nama Jenis Deskripsi
blobUri

string

Hard disk virtual.

caching

CachingTypes

Menentukan persyaratan penembolokan. Nilai yang mungkin adalah: None,ReadOnly,ReadWrite. Nilai defaultnya adalah: Tidak ada untuk penyimpanan Standar. ReadOnly untuk penyimpanan Premium.

diskEncryptionSet

DiskEncryptionSetParameters

Menentukan id sumber daya set enkripsi disk yang dikelola pelanggan untuk disk gambar terkelola.

diskSizeGB

integer

Menentukan ukuran disk data kosong dalam gigabyte. Elemen ini dapat digunakan untuk menimpa nama disk dalam gambar komputer virtual. Nilai ini tidak boleh lebih besar dari 1023 GB.

lun

integer

Menentukan nomor unit logis disk data. Nilai ini digunakan untuk mengidentifikasi disk data dalam VM dan oleh karena itu harus unik untuk setiap disk data yang dilampirkan ke VM.

managedDisk

SubResource

ManagedDisk.

snapshot

SubResource

Rekam jepret.

storageAccountType

StorageAccountTypes

Menentukan jenis akun penyimpanan untuk disk terkelola. CATATAN: UltraSSD_LRS hanya dapat digunakan dengan disk data, tidak dapat digunakan dengan Disk OS.

ImageOSDisk

Menjelaskan disk Sistem Operasi.

Nama Jenis Deskripsi
blobUri

string

Hard disk virtual.

caching

CachingTypes

Menentukan persyaratan penembolokan. Nilai yang mungkin adalah: None,ReadOnly,ReadWrite. Nilai defaultnya adalah: Tidak ada untuk penyimpanan Standar. ReadOnly untuk penyimpanan Premium.

diskEncryptionSet

DiskEncryptionSetParameters

Menentukan id sumber daya set enkripsi disk yang dikelola pelanggan untuk disk gambar terkelola.

diskSizeGB

integer

Menentukan ukuran disk data kosong dalam gigabyte. Elemen ini dapat digunakan untuk menimpa nama disk dalam gambar komputer virtual. Nilai ini tidak boleh lebih besar dari 1023 GB.

managedDisk

SubResource

ManagedDisk.

osState

OperatingSystemStateTypes

Status OS. Untuk gambar terkelola, gunakan Umum.

osType

OperatingSystemTypes

Properti ini memungkinkan Anda menentukan jenis OS yang disertakan dalam disk jika membuat VM dari gambar kustom. Nilai yang mungkin adalah: Windows,Linux.

snapshot

SubResource

Rekam jepret.

storageAccountType

StorageAccountTypes

Menentukan jenis akun penyimpanan untuk disk terkelola. CATATAN: UltraSSD_LRS hanya dapat digunakan dengan disk data, tidak dapat digunakan dengan Disk OS.

ImageStorageProfile

Menjelaskan profil penyimpanan.

Nama Jenis Deskripsi
dataDisks

ImageDataDisk[]

Menentukan parameter yang digunakan untuk menambahkan disk data ke komputer virtual.

Untuk informasi selengkapnya tentang disk, lihat Tentang disk dan VHD untuk komputer virtual Azure.

osDisk

ImageOSDisk

Menentukan informasi tentang disk sistem operasi yang digunakan oleh komputer virtual.

Untuk informasi selengkapnya tentang disk, lihat Tentang disk dan VHD untuk komputer virtual Azure.

zoneResilient

boolean

Menentukan apakah gambar tangguh zona atau tidak. Defaultnya adalah false. Gambar tangguh zona hanya dapat dibuat di wilayah yang menyediakan Zone Redundant Storage (ZRS).

InnerError

Detail kesalahan dalam.

Nama Jenis Deskripsi
errordetail

string

Pesan kesalahan internal atau cadangan pengecualian.

exceptiontype

string

Jenis pengecualian.

OperatingSystemStateTypes

Status OS. Untuk gambar terkelola, gunakan Umum.

Nama Jenis Deskripsi
Generalized

string

Gambar umum. Perlu disediakan selama waktu penyebaran.

Specialized

string

Gambar khusus. Berisi Disk OS yang sudah disediakan.

OperatingSystemTypes

Properti ini memungkinkan Anda menentukan jenis OS yang disertakan dalam disk jika membuat VM dari gambar kustom. Nilai yang mungkin adalah: Windows,Linux.

Nama Jenis Deskripsi
Linux

string

Windows

string

StorageAccountTypes

Menentukan jenis akun penyimpanan untuk disk terkelola. CATATAN: UltraSSD_LRS hanya dapat digunakan dengan disk data, tidak dapat digunakan dengan Disk OS.

Nama Jenis Deskripsi
PremiumV2_LRS

string

Premium_LRS

string

Premium_ZRS

string

StandardSSD_LRS

string

StandardSSD_ZRS

string

Standard_LRS

string

UltraSSD_LRS

string

SubResource

Nama Jenis Deskripsi
id

string

ID sumber daya