I am using the below command to download artifacts
az rest --url "https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/artifacts?artifactName={artifactName}&api-version=6.1-preview.5"
But this gives an error
Can't derive appropriate Azure AD resource from --url to acquire an access token. If access token is required, use --resource to specify the resource
I am new to Azure DevOps and doesn't have any support. I don't know what this resource is. I tried giving --resource "latest" but then it gives an error
The resource principal named tenant was not found in tenant named ...
Please help me here