![]() ![]() To deploy this image, see the following sections to accept the terms and to enable programmatic deployment. Some images also have a promotion code property. The example below shows a similar command for the Data Science Virtual Machine - Windows 2016 image, which has the following PurchasePlan properties: name, product, and publisher. The output will look similar to the following: Id : /Subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.Compute/Locations/westus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2016-Datacenter/Versions/200115 Get-AzVMImage -Location $locName -PublisherName $pubName -Offer $offerName -Skus $skuName -Version $version If the PurchasePlan property in the output is not null, the image has terms you need to accept before programmatic deployment.įor example, the Windows Server 2016 Datacenter image doesn't have additional terms, so the PurchasePlan information is null: $version = "2016.127.20170406" ![]() To view an image's purchase plan information, run the Get-AzVMImage cmdlet. You'll need to accept the image's terms once per subscription. Some VM images in the Azure Marketplace have additional license and purchase terms that you must accept before you can deploy them programmatically. If you deploy a VM with a Resource Manager template, then you'll set the image parameters individually in the imageReference properties. You can also replace the version number in the URN with latest to get the latest version of the image. Pass this URN with the -Image parameter when you create a VM with the New-AzVM cmdlet. Now you can combine the selected publisher, offer, SKU, and version into a URN (values separated by :). You can also use latest if you want to use the latest image and not a specific older version. Get-AzVMImage -Location $locName -PublisherName $pubName -Offer $offerName -Sku $skuName | Select Version Get-AzVMImageSku -Location $locName -PublisherName $pubName -Offer $offerName | Select Skusįor a SKU, list the versions of the image using Get-AzVMImage. Get-AzVMImageOffer -Location $locName -PublisherName $pubName | Select Offerįor a given publisher and offer, list the SKUs available using Get-AzVMImageSku. Get-AzVMImagePublisher -Location $locName | Select PublisherNameįor a given publisher, list their offers using Get-AzVMImageOffer. List the image publishers using Get-AzVMImagePublisher. Replace the values of the variables to meet your needs. You can use PowerShell to narrow down a list of images. For more information, see Accept purchase plan terms. ![]() If the image publisher provides additional license and purchase terms, then you must accept those before you can use the image. You can replace the version number in the URN with latest to use the latest version of the image. For example: Publisher: Offer: Sku: Version. These values can be passed individually or as an image URN, combining the values separated by the colon (:). Version: The version number of an image SKU.SKU: An instance of an offer, such as a major release of a distribution.Offer: The name of a group of related images created by a publisher.Examples: Canonical, MicrosoftWindowsServer Publisher: The organization that created the image.TerminologyĪ Marketplace image in Azure has the following attributes: ![]() You can also browse available images and offers using the Azure Marketplace or the Azure CLI. You can then specify a Marketplace image and plan information when you create a VM. This article describes how to use Azure PowerShell to find VM images in the Azure Marketplace. Applies to: ✔️ Linux VMs ✔️ Windows VMs ✔️ Flexible scale sets ✔️ Uniform scale sets ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |