Skip to content

Commit ab2a859

Browse files
authored
Fix the issue that HTTP request body contains empty userAssignedIdentities object when identity type is SystemAssigned (#26941)
1 parent 88e4ce4 commit ab2a859

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-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+
* Fixed the issue that HTTP request body contains empty userAssignedIdentities object when identity type is `SystemAssigned`.
2122

2223
## Version 6.0.4
2324
* Fixed secrets exposure in example documentation.

src/Aks/Aks/Commands/CreateOrUpdateKubeBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ protected ManagedCluster SetIdentity(ManagedCluster cluster)
698698
if (cluster.Identity != null && cluster.Identity.Type == null)
699699
{
700700
cluster.Identity.Type = ResourceIdentityType.SystemAssigned;
701+
cluster.Identity.UserAssignedIdentities = null;
701702
}
702703
}
703704

0 commit comments

Comments
 (0)