mammoth-salesclerk-61945
05/20/2022, 10:37 PMthe argument to Fn::ToBase64 must be a string; the argument to Fn::ToBase64 must be a string
the variables section is:
variables:
kubeconfigs:
Fn::Invoke:
Function: azure-native:containerservice:listManagedClusterUserCredentials
Arguments:
resourceGroupName: ${rg.name}
resourceName: ${cluster-1.name}
kubeconfigb64:
Fn::ToBase64: ${kubeconfigs.kubeconfigs[0].value}
the outputs section is as such
outputs:
kconfig: ${kubeconfigs.kubeconfigs[0].value}
the output is:
Outputs:
+ kconfig: "YXBpVmVyc2lv................................................."
orange-policeman-59119
05/20/2022, 10:42 PMmammoth-salesclerk-61945
05/20/2022, 10:43 PMorange-policeman-59119
05/20/2022, 10:52 PM