you'll need to chose a new VM SKU as its not possible to only change certain Compute Resources. Azure Advisor should give you the recommended SKU to choose for your workloads.
Hope this helps,
- If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
** Edited **