Skip to content

asishr/aro-aad-terraform

 
 

Repository files navigation

page_type sample
languages
azurecli
bash
terraform
yaml
json
products
azure
azure-container-apps
azure-storage
azure-blob-storage
azure-storage-accounts
azure-monitor
azure-log-analytics
azure-application-insights
name Configure AAD with an Azure Red Hat OpenShift cluster using Terraform and AzAPI Provider
description This sample shows how to confugre AAD with an Azure Red Hat OpenShift cluster using Terraform and AzAPI Provider for authentication and rbac.
urlFragment aro-aad-terraform

Import ARO cluster in terraform.

Prerequisites

Import aro cluster.

  • Login to azure
az login
  • Initialize terraform
terraform init
  • Run the command.
export subscription_id=<<subscription_id>>
export name_prefix=<<name_prefix>>
export resource_group_name=<<resource_group_name>>
export aro_cluster_name=<<aro_cluster_name>>
terraform import  -var "name_prefix=$name_prefix" -var "cluster_name=$aro_cluster_name" -var "resource_group_name=$resource_group_name"  azapi_resource.aro_cluster /subscriptions/$subscription_id/resourceGroups/$resource_group_name/providers/Microsoft.RedHatOpenShift/OpenShiftClusters/$aro_cluster_name
  • Uncomment the code in import.tf
  • Terraform apply
terraform apply  -var "name_prefix=$name_prefix" -var "cluster_name=$aro_cluster_name" -var "resource_group_name=$resource_group_name"

About

This sample shows how to confugre AAD with an Azure Red Hat OpenShift cluster using Terraform and AzAPI Provider for authentication and rbac.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HCL 100.0%