Skip to content

Commit 518e6b0

Browse files
authored
Added property IdentityProfile in the output of Get-AzAksCluster (#15416)
Co-authored-by: wyunchi-ms <[email protected]>
1 parent 5c5ba94 commit 518e6b0

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

src/Aks/Aks/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added property `IdentityProfile` in the output of `Get-AzAksCluster`. [#12546]
2122

2223
## Version 2.2.0
2324
* Added parameter `AvailabilityZone` for `New-AzAksNodePool`. [#14505]

src/Aks/Aks/Models/PSKubernetesCluster.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ public class PSKubernetesCluster : PSResource
142142
/// </summary>
143143
public PSManagedClusterAPIServerAccessProfile ApiServerAccessProfile { get; set; }
144144

145+
//
146+
// Summary:
147+
// Gets or sets identities associated with the cluster.
148+
public IDictionary<string, PSManagedClusterPropertiesIdentityProfile> IdentityProfile { get; set; }
149+
145150
/// <summary>
146151
/// Gets or sets the identity of the managed cluster, if configured.
147152
/// </summary>
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
namespace Microsoft.Azure.Commands.Aks.Models
16+
{
17+
/// <summary>
18+
/// Identity for the managed cluster.
19+
/// </summary>
20+
public class PSManagedClusterPropertiesIdentityProfile
21+
{
22+
//
23+
// Summary:
24+
// Initializes a new instance of the UserAssignedIdentity class.
25+
//
26+
// Parameters:
27+
// resourceId:
28+
// The resource id of the user assigned identity.
29+
//
30+
// clientId:
31+
// The client id of the user assigned identity.
32+
//
33+
// objectId:
34+
// The object id of the user assigned identity.
35+
public PSManagedClusterPropertiesIdentityProfile(string resourceId = null, string clientId = null, string objectId = null)
36+
{
37+
ResourceId = resourceId;
38+
ClientId = clientId;
39+
ObjectId = objectId;
40+
}
41+
42+
//
43+
// Summary:
44+
// Gets or sets the resource id of the user assigned identity.
45+
public string ResourceId { get; set; }
46+
//
47+
// Summary:
48+
// Gets or sets the client id of the user assigned identity.
49+
public string ClientId { get; set; }
50+
//
51+
// Summary:
52+
// Gets or sets the object id of the user assigned identity.
53+
public string ObjectId { get; set; }
54+
}
55+
}

0 commit comments

Comments
 (0)