Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Created March 9, 2023 13:52
Show Gist options
  • Save jcpowermac/257a304ee2873ab62addc675650a1d90 to your computer and use it in GitHub Desktop.
Save jcpowermac/257a304ee2873ab62addc675650a1d90 to your computer and use it in GitHub Desktop.
$region = new-tagcategory openshift-region
$zone = new-tagcategory openshift-zone
new-tag us-west -Category $region
new-tag us-east -Category $region
new-tag us-west-1a -Category $zone
new-tag us-east-1a -Category $zone
new-tag us-east-2a -Category $zone
new-tag us-east-3a -Category $zone
new-tagassignment -tag (get-tag us-east) -Entity (Get-Datacenter IBMCloud)
new-tagAssignment -tag (get-tag us-west) -Entity (Get-Datacenter datacenter-2)
new-tagAssignment -tag (get-tag us-east-1a) -Entity (Get-Cluster vcs-mdcnc-workload-1)
new-tagAssignment -tag (get-tag us-east-2a) -Entity (Get-Cluster vcs-mdcnc-workload-2)
new-tagAssignment -tag (get-tag us-east-3a) -Entity (Get-Cluster vcs-mdcnc-workload-3)
new-tagAssignment -tag (get-tag us-west-1a) -Entity (Get-Cluster vcs-mdcnc-workload-4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment