Search code examples
azureopenshiftredhatazure-service-principal

Azure redhat openshift creation via portal failing


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


Solution

  • The error usually occurs if you missed including aadObjectId parameter value while deploying the template.

    I tried to deploy Azure Red hat OpenShift cluster custom template without including aadObjectId parameter value like below:

    enter image description here

    After selecting Create option, validation failed with below error:

    enter image description here

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

    enter image description here

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

    enter image description here

    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

    enter image description here

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

    enter image description here

    In your case, make sure to include aadObjectId parameter value.

    Reference: Deploy an Azure Red Hat OpenShift cluster with an ARM template | Microsoft