Skip to content

Commit

Permalink
[Modules] Cluster - Expose AGIC Identity Object Id (#4349) (#4375)
Browse files Browse the repository at this point in the history
* Managed Cluster - Expose AGIC Identity Object Id (#4349)

* Add AGIC identity

* Set-Module

* Update to latest

---------

Co-authored-by: Preston Alvarado <[email protected]>
  • Loading branch information
AlexanderSehr and coolhome authored Dec 15, 2023
1 parent a807012 commit a348c76
Show file tree
Hide file tree
Showing 3 changed files with 2,283 additions and 2,272 deletions.
1 change: 1 addition & 0 deletions modules/container-service/managed-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2425,6 +2425,7 @@ Specifies whether the webApplicationRoutingEnabled add-on is enabled or not.
| :-- | :-- | :-- |
| `addonProfiles` | object | The addonProfiles of the Kubernetes cluster. |
| `controlPlaneFQDN` | string | The control plane FQDN of the managed cluster. |
| `ingressApplicationGatewayIdentityObjectId` | string | The Object ID of Application Gateway Ingress Controller (AGIC) identity. |
| `keyvaultIdentityClientId` | string | The Client ID of the Key Vault Secrets Provider identity. |
| `keyvaultIdentityObjectId` | string | The Object ID of the Key Vault Secrets Provider identity. |
| `kubeletidentityObjectId` | string | The Object ID of the AKS identity. |
Expand Down
3 changes: 3 additions & 0 deletions modules/container-service/managed-cluster/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,9 @@ output keyvaultIdentityObjectId string = contains(managedCluster.properties, 'ad
@description('The Client ID of the Key Vault Secrets Provider identity.')
output keyvaultIdentityClientId string = contains(managedCluster.properties, 'addonProfiles') ? contains(managedCluster.properties.addonProfiles, 'azureKeyvaultSecretsProvider') ? contains(managedCluster.properties.addonProfiles.azureKeyvaultSecretsProvider, 'identity') ? managedCluster.properties.addonProfiles.azureKeyvaultSecretsProvider.identity.clientId : '' : '' : ''

@description('The Object ID of Application Gateway Ingress Controller (AGIC) identity.')
output ingressApplicationGatewayIdentityObjectId string = managedCluster.properties.addonProfiles.?ingressApplicationGateway.?identity.?objectId ?? ''

@description('The location the resource was deployed into.')
output location string = managedCluster.location

Expand Down
Loading

0 comments on commit a348c76

Please sign in to comment.