Azure / AKS

Azure Kubernetes Service
https://azure.github.io/AKS/
1.95k stars 305 forks source link

[Feature]AKS Cluster CreationDate not available on portal or json view #4364

Open sprab opened 3 months ago

sprab commented 3 months ago

Is your feature request related to a problem? Please describe. One of our banking customers need the create date of an AKS cluster to be exposed and queryable to send alerts and finops reports to their end customers.

Describe the solution you'd like AKS Cluster birth date/creation date to be made available on the portal or json view for AKS clusters. Currently this is available via a REST API call under extended properties by querying the Azure Resource Graph API using the query below:

https://management.azure.com/subscriptions/:subscriptionId/resources?api-version=2024-03-01&$filter=resourceType eq 'Microsoft.ContainerService/managedClusters'&$expand=createdTime&$select=name,createdTime&=

Describe alternatives you've considered Rest API call to: https://management.azure.com/subscriptions/:subscriptionId/resources?api-version=2024-03-01&$filter=resourceType eq 'Microsoft.ContainerService/managedClusters'&$expand=createdTime&$select=name,createdTime&=

Additional context Add any other context or screenshots about the feature request here. image

lukeb1961 commented 3 months ago

This is a surprising miss in the resource graph kusto table - it is not in the properties bag. e.g. resources | where type =~ 'microsoft.containerservice/managedclusters' | extend tagsDictionary = tags | extend creationTime = todatetime(properties.createdTime)