Please provide some alternatives when it comes to moving Azure virtual machines with a marketplace plan attached to it. Preferably non-distructive ways of doing so.
Neither documentation provides such information:
For instance:
The offer in question here is (from PowerShell Az.Resources Get-AzResource
):
From Azure portal export template on VM
which also doesn't really provide me enough info into what marketplace offer was used, or if it even exists anymore. Is it this one?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@o-l-a-v Thanks for your comment! We will review and provide an update as appropriate.
@o-l-a-v - thanks for this feedback. I am trying to get more information from internal experts.
@o-l-a-v - I have been given a workaround that might work but I am not seeing your plan in any of the current offerings, which might be a problem. Before getting into the workaround, did you try moving the VM and get an error?
Here's the workaround:
Let me know if that works.
@tfitzmac
Thank you.
I'm pretty sure the customer tried regular move first, but I've asked for a confirmation on that one.
Regarding marketplace plans/ offerings:
Will come back when I know more.
We have difficulties to determine what marketplace plan/ offer a given plan (by info from ARM export or Az PowerShell) is referencing to. Do you have any guidence to share here?
We've found one more plan for current customer:
How do I know if a Marketplace offer is this exact plan?
Edit:
So I tried following, found the offers, thats good I guess? "PlanName" etc. is directly from ARM template export of the VM.
# Bitnami Mattermost 3-6
$VMLocation = [string] 'North Europe'
$PlanName = [string] '3-6'
$PlanProduct = [string] 'mattermost'
$PlanPublisher = [string] 'bitnami'
# Microsoft-Ads Linux-Data-Science-Vm-Ubuntu Linuxdsvmubuntu
$VMLocation = [string] 'North Europe'
$PlanName = [string] 'linuxdsvmubuntu'
$PlanProduct = [string] 'linux-data-science-vm-ubuntu'
$PlanPublisher = [string] 'microsoft-ads'
# Get
(Get-AzVMImageSku -Location $VMLocation -PublisherName $PlanPublisher -Offer $PlanProduct).Where{$_.'Skus' -eq $PlanName}
@tfitzmac
I've found what I think is the Azure marketplace offer for the one critical VM that has to be moved.
https://azuremarketplace.microsoft.com/en-us/marketplace/apps/bitnami.mattermost
How would you go about "In the destination subscription, accept the marketplace terms for your plan so you can use it for new deployments"? Add a dummy VM from the Marketplace offer, delete it, all good?
Edit: Probably here?
@o-l-a-v - you can add an instance and delete it. Or, run the following PowerShell command:
Get-AzMarketplaceTerms -Publisher {publisher} -Product {product/offer} -Name {name/SKU} | Set-AzMarketplaceTerms -Accept
The workaround steps have been added to the article.
We'll close this item for now. If there is more that needs to be added to the docs, let us know.