I am trying to deploy azure redhat openshift cluster from azure portal but it getting failed during validation Deployment template validation failed: 'The value for the template parameter 'aadObjectId' at line '248' and column '24' is not provided. Please see https://aka.ms/resource-manager-parameter-files for usage details.'. (Code: InvalidTemplate)"
Can any one suggest what to do here?
#azure #azure redhat openshift
CodePudding user response:
The error usually occurs if you missed including
aadObjectIdparameter value while deploying the template.
I tried to deploy Azure Red hat OpenShift cluster custom template without including aadObjectId parameter value like below:

After selecting Create option, validation failed with below error:

When I checked Basics tab, it's saying "The value must not be empty" for aadObjectId like below:

When I opened the same template file in Visual Studio Code, I got similar error as you like below:

To resolve the error, make sure to include aadObjectId parameter value.
You can find the value of aadObjectId parameter like this:
Go to Azure Portal -> Azure Active Directory -> App registrations -> Your Service principal -> Overview

After including aadObjectId parameter value, Validation passed successfully like below:

In your case, make sure to include aadObjectId parameter value.
Reference: Deploy an Azure Red Hat OpenShift cluster with an ARM template | Microsoft
