The Set-AzVMPlan cmdlet sets the Azure Marketplace plan information for a virtual machine.
Before being able to deploy a Marketplace image through the command-line, programmatic access must be enabled or the virtual machine must be deployed by using the Azure portal.
Specifies the name of the image from the Marketplace.
This is the same value that is returned by the Get-AzVMImageSku cmdlet.
For more information about how to find image information, see Find and use Azure Marketplace VM images with Azure PowerShell in the Microsoft Azure documentation.
Specifies the virtual machine object for which to set a Marketplace plan.
You can use the Get-AzVM cmdlet to obtain a virtual machine object.
You can use the New-AzVMConfig cmdlet to create a virtual machine object.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.