When changing the role of a service principal, note the following.
For the Azure resources (ResourceID and RouteTableID) specified in SA_vmazureReset.cfg and hvazurenicconfig, set a role that has privileges for the following operations.
Microsoft.Compute/virtualMachines/read
Microsoft.Compute/virtualMachines/start/action
Microsoft.Compute/virtualMachines/powerOff/action
Microsoft.Network/routeTables/read
Microsoft.Network/routeTables/routes/read
Microsoft.Network/routeTables/routes/write
Microsoft.Network/networkInterfaces/read
Microsoft.Network/networkInterfaces/write
Microsoft.Network/virtualNetworks/subnets/join/action