A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-add-vm-image below:

Add a custom VM image to Azure Stack Hub - Azure Stack Hub

In Azure Stack Hub, as an operator you can add your custom virtual machine (VM) image to the marketplace and make it available to your users. You can add VM images to the Azure Stack Hub Marketplace through the administrator portal or Windows PowerShell. Use either an image from global Microsoft Azure Marketplace as a base for your custom image, or create your own using Hyper-V.

Note

Blob access is required to allow the read access.

Add an image

You can find instructions for adding generalized and specialized images in the Compute section of the user guide. You must create a generalized image before offering the image to your users. For instructions, see Move a VM to Azure Stack Hub overview. When you create images and make them available for your tenants, use the Azure Stack Hub administrator portal or administrator endpoints, rather than the user portal or tenant directory endpoints.

You have two options for making an image available to your users:

Add a platform image

To add a platform image to Azure Stack Hub, use the Azure Stack Hub administrator portal or endpoint using PowerShell. You must first create a generalized VHD. For more information, see Move a VM to Azure Stack Hub Overview.

Add a VM image as an Azure Stack Hub operator using the portal.

  1. Sign in to Azure Stack Hub as an operator. Select Dashboard from the left-hand navigation.

  2. In the Resource providers list, select Compute.

  3. Select VM images, then select Add.

  4. Under Create image, enter the Publisher, Offer, SKU, Version, and OS disk blob URI. Then, select Create to begin creating the VM image.

    When the image is successfully created, the VM image status changes to Succeeded.

  5. When you add an image, it's only available for Azure Resource Manager-based templates and PowerShell deployments. To make an image available to your users as a marketplace item, publish the marketplace item using the steps in the article Create and publish a Marketplace item. Make sure you note the Publisher, Offer, SKU, and Version values. You need them when you edit the Resource Manager template and Manifest.json in your custom .azpkg.

Add a VM image as an Azure Stack Hub operator using PowerShell:

  1. Install PowerShell for Azure Stack Hub.

  2. Sign in to Azure Stack Hub as an operator.

  3. Open PowerShell in an elevated prompt, and run:

     Add-AzsPlatformimage -publisher "<publisher>" `
       -offer "<Offer>" `
       -sku "<SKU>" `
       -version "<#.#.#>" `
       -OSType "<OS type>" `
       -OSUri "<OS URI>"
    

    The Add-AzsPlatformimage cmdlet specifies values used by the Azure Resource Manager templates to reference the VM image. These values include:

  4. When you add an image, it's only available for Azure Resource Manager-based templates and PowerShell deployments. To make an image available to your users as a marketplace item, publish the marketplace item using the steps in the article Create and publish a Marketplace item. Make sure you note the Publisher, Offer, SKU, and Version values. You need them when you edit the Resource Manager template and Manifest.json in your custom .azpkg.

Remove a platform image

You can remove a platform image using the portal or PowerShell.

To remove the VM image as an Azure Stack Hub operator using the Azure Stack Hub portal, follow these steps:

  1. Open the Azure Stack Hub administrator portal.
  2. If the VM image has an associated Marketplace item, select Marketplace management, and then select the VM marketplace item you want to delete.
  3. If the VM image doesn't have an associated Marketplace item, navigate to All services > Compute > VM Images, and then select the ellipsis (...) next to the VM image.
  4. Select Delete.

To remove the VM image as an Azure Stack Hub operator using PowerShell, follow these steps:

  1. Install PowerShell for Azure Stack Hub.

  2. Sign in to Azure Stack Hub as an operator.

  3. Open PowerShell in an elevated prompt, and run:

    Remove-AzsPlatformImage `
     -publisher "<Publisher>" `
     -offer "<Offer>" `
     -sku "<SKU>" `
     -version "<Version>" `
    

    The Remove-AzsPlatformImage cmdlet specifies values used by the Azure Resource Manager templates to reference the VM image. The values include:

Next steps

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4