41653606 Welcome to Microsoft Q&A, Thank you for posting your here!!
This kind of error occurs usually occurs when you have not set Subscription context.
Error Code: (ResourceGroupNotFound)
Error Description: Resource group 'resource_group_name' could not be found.
Make sure you are operating within the correct subscription context. If you have multiple subscriptions, ensure you are in the correct subscription that contains the desired resource group.
To set the Subscription context from AZ CLI use the below command.
az account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Reference Article: https://learn.microsoft.com/en-us/cli/azure/manage-azure-subscriptions-azure-cli#change-the-active-subscription
You have an example here for setting up in YAML https://stackoverflow.com/questions/58356365/azure-devops-fill-azure-subscription-field-using-variables#:~:text=If%20you%20use%20YAML%20pipelines%20you%20could%20configure,every%20build%20you%20can%20override%20your%20azure%20subscription.
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.