Edit: I solved the issue myself.
So I am working through the "Automate Azure tasks using scripts with Powershell" training, and on unit 6 I am trying to create the Linux VM in the example.
I am running the cmdlet they provide.
New-AzVm -ResourceGroupName [learn-bf7b5d31-00eb-4cfb-ab13-4b9d780f86cb] -Name "testvm-eus-01" -Credential (Get-Credential) -Location "eastus" -Image Canonical:0001-com-ubuntu-server-focal:20_04-lts:latest -OpenPorts 22 -PublicIpAddressName "testvm-eus-01"
I enter my credentials as requested, and I get a long error
New-AzVM: The client 'live.com#****' with object id '-a98c-d88119fb22e5' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope '/subscriptions/f26515d9-3bc6-4a50-8192-cb816a833f54/resourceGroups/[learn-bf7b5d31-00eb-4cfb-ab13-4b9d780f86cb]/providers/Microsoft.Compute/virtualMachines/testvm-eus-01' or the scope is invalid. If access was recently granted, please refresh your credentials.
How do I proceed?