Hi,
I have a couple of suggestions for you:
- Try switching to Azure PowerShell task instead. You are using PowerShell cmdlets, not Az CLI commands
- The screenshot indicates your issue might be related to wrong or missing 'Service Connection' that should be selected in 'Azure Resource Manager connection' field.
- Ensure that the Service Principle being used by your DevOps pipeline has correct RBAC permissions / role assignment on Azure to provision the resources you need.
Hope it helps.