Closed nbornstein closed 5 years ago
Thanks for the feedback! We are currently investigating and will update you shortly.
@nbornstein the billing is attached to the Image offer used/ select when you created the VM.
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/cli-ps-findimage
$vmConfig = New-AzureRmVMConfig -VMName "myVM" -VMSize Standard_D1
# Set the Marketplace plan information
$publisherName = "microsoft-ads"
$productName = "windows-data-science-vm"
$planName = "windows2016"
$vmConfig = Set-AzureRmVMPlan -VM $vmConfig -Publisher $publisherName -Product $productName -Name $planName
$cred=Get-Credential
$vmConfig = Set-AzureRmVMOperatingSystem -Windows -VM $vmConfig -ComputerName "myVM" -Credential $cred
# Set the Marketplace image
$offerName = "windows-data-science-vm"
$skuName = "windows2016"
$version = "0.2.02"
$vmConfig = Set-AzureRmVMSourceImage -VM $vmConfig -PublisherName $publisherName -Offer $offerName -Skus $skuName -Version $version
So just swapping the disk out will not change the billing as the VM itself was setup with that particular image offer. You would still need to rebuild the VM as a new VM using the existing VHD in order to pass the new parameters that would result in not being billed for the license.
Let me know if you have any additional questions.
I'm talking about doing the opposite - taking a disk that was created with an on-demand image and attaching it to a new VM that is not billed on demand.
@cynthn do you have someone from PG you could ask and confirm on this one? It brings up some good points we might want to mention in this doc regardless.
@xujing-ms Is this something you can answer?
@xujing-ms any update on this?
can I ask what you mean by BYOS disk? do you mean using the AHB or are you referring to BYOL images for SUSE/SQL etc?
Thanks, Jing
I meant BYOL (for SUSE in this case -- sorry, we call it "BYOS" since it's a subscription rather than a license).
We are checking the billing tag of the new OS Disk and the VM will be charged at the new billing tag
Thanks for confirming @xujing-ms
@nbornstein I will close for now. If you have additional questions just let us know and we can always reopen and continue the discussion.
Can you use this method to take an OS disk originally created for an on-demand VM and attach it to a VM that was originally created as BYOS in order to stop paying for the OS through Microsoft and convert to a vendor subscription? Or does the billing tag remain with the original disk even if it is attached to a different VM?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.