This message was deleted.
# general
s
This message was deleted.
m
error message itself seems misleading IMO, i would expect the credential retrieval happening after cluster itself is provisioned and I can tell by looking in Azure portal its not
also I'm testing everything locally with pulumi cli
b
hey, this looks to be an error being returned from the Azure API. I’m not sure what we could do here, there’s an issue open on the azure API spec that looks similar: https://github.com/Azure/azure-rest-api-specs/issues/22514
you might also read this that mentions sometimes ARO clusters fail to create if you hit limits: https://learn.microsoft.com/en-us/answers/questions/602565/aro-creation-fails-with-internal-server-error-and
m
Yeah I got the quota limits increased. As I mentioned in the thread the steps in the go program I can do the same with az cli commands and can provision the cluster with no issues
also another follow up question I have is when I run az aro create it will create an additional resource group and all infra resources (compute, network, storage) are provisioned and command also seem to grant contributor permission on that resource group. But when I provision the cluster with pulumi SDK it seem to expect the ResourceGroup specified so I ended up including provisioning of that and granting contributor permission on that resource group to service principal. I even tried granting it at subscription scope but still no luck
b
I can do the same with az cli commands and can provision the cluster with no issues
If you could open an issue with the code you’re using to provision we can take a look
m
This is the repo where you can find the code https://github.com/rprakashg-redhat/create-aro-cluster
you'll need to update the stack file before trying it
b
Could you file a GitHub issue in the azure native repo
m
I basically tried to convert steps i take today to create aro cluster using az cli. Few changes are around creation of cluster resource group and assigning contributor permission to service principal because the NewOpenShiftCluster method was requiring me to pass the ResourceGroupId with ClusterProfileArgs. With az aro create this was something that the command itself took care of it
Sorry there is not much documentation also needs some cleanup but just been trying to get this working end to end
I had already done that before I joined the slack https://github.com/pulumi/pulumi-azure-native/issues/2252