Microsoft's license terms generally apply. These state that the product key is valid for use on one device. Trying to get around this is illegal, according to Microsoft.
The product keys are designed for use on a computer, so you need a product key for every device you want to use the software to avoid violating Microsoft's license terms.
Programs that expressly specify how many devices they are intended for are exempt from this rule.