Skip to content

Commit 6f9ce99

Browse files
committed
Fix the issue of new resource
1 parent 7937789 commit 6f9ce99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KubernetesConfiguration/custom/New-AzKubernetesConfiguration.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ function New-AzKubernetesConfiguration {
181181

182182
if ($PSBoundParameters.ContainsKey('ClusterType')) {
183183
if ($ClusterType -eq 'ManagedClusters') {
184-
$PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
185-
} elseif ($ClusterType -eq 'ConnectedClusters') {
186184
$PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
185+
} elseif ($ClusterType -eq 'ConnectedClusters') {
186+
$PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
187187
}
188188
} else {
189189
$PSBoundParameters.Add('ClusterType', 'ConnectedClusters')

0 commit comments

Comments
 (0)