Skip to content

Instantly share code, notes, and snippets.

@LifeOfBrianOC
LifeOfBrianOC / CleanupFailedVCFCredentialTask.ps1
Last active November 14, 2023 15:53
Cleanup Failed Credential Tasks in VMware Cloud Foundation SDDC Manager
# Script to cleanup failed credential tasks in SDDC Manager
# Written by Brian O'Connell - Staff II Solutions Architect @ VMware
#User Variables
# SDDC Manager FQDN. This is the target that is queried for failed tasks
$sddcManagerFQDN = "sfo-vcf01.sfo.rainpole.io"
# SDDC Manager API User. This is the user that is used to query for failed tasks. Must have the SDDC Manager ADMIN role
$sddcManagerAPIUser = "administrator@vsphere.local"
$sddcManagerAPIPassword = "VMw@re1!"