I have contributor role on an Azure VM. I am able to resize the VM from the portal without any issues. However, when i try to resize it from Azure PowerShell/Azure CLI, it says the below.
it does not have permission to perform action
'Microsoft.Network/networkInterfaces/join/action' on the linked scope(s) /subscriptions/xxxx/resourceGroups/RSG/providers/Microsoft.Network/networkInterfaces/xyz
Is the network contributor role mandatory to perform this action? I cant have network contributor role on the entire resource group so having network contributor role on the network interface suffice?
Also, how is it different from resizing it from the portal where it works absolutely fine with the contributor role itself. Is there a way/tweak to resize the VM through code with the contributor role itself?