For now i've fixed the issue by using pac cli commands in my powershell task. pac auth create pac auth update pac admin set-backup-retention-period –