@@ -27,7 +27,7 @@ Get-AzConnectedKubernetes -ClusterName azps_test_cluster -ResourceGroupName azps
27
27
. Inputs
28
28
Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity
29
29
. Outputs
30
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20221001Preview .IConnectedCluster
30
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20240715Preview .IConnectedCluster
31
31
. Notes
32
32
COMPLEX PARAMETER PROPERTIES
33
33
@@ -42,115 +42,115 @@ INPUTOBJECT <IConnectedKubernetesIdentity>: Identity Parameter
42
42
https://learn.microsoft.com/powershell/module/az.connectedkubernetes/update-azconnectedkubernetes
43
43
#>
44
44
function Update-AzConnectedKubernetes {
45
- [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20221001Preview .IConnectedCluster ])]
46
- [CmdletBinding (DefaultParameterSetName = ' UpdateExpanded' , PositionalBinding = $false , SupportsShouldProcess , ConfirmImpact = ' Medium' )]
47
- param (
48
- [Parameter (ParameterSetName = ' UpdateExpanded' , Mandatory )]
49
- [Alias (' Name' )]
50
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Path' )]
51
- [System.String ]
52
- # The name of the Kubernetes cluster on which get is called.
53
- ${ClusterName} ,
54
-
55
- [Parameter (ParameterSetName = ' UpdateExpanded' , Mandatory )]
56
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Path' )]
57
- [System.String ]
58
- # The name of the resource group.
59
- # The name is case insensitive.
60
- ${ResourceGroupName} ,
61
-
62
- [Parameter (ParameterSetName = ' UpdateExpanded' )]
63
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Path' )]
64
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.DefaultInfo (Script= ' (Get-AzContext).Subscription.Id' )]
65
- [System.String ]
66
- # The ID of the target subscription.
67
- ${SubscriptionId} ,
68
-
69
- [Parameter (ParameterSetName = ' UpdateViaIdentityExpanded' , Mandatory , ValueFromPipeline )]
70
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Path' )]
71
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity ]
72
- # Identity Parameter
73
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
74
- ${InputObject} ,
75
-
76
- [Parameter ()]
77
- [ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.AzureHybridBenefit ])]
78
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Body' )]
79
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.AzureHybridBenefit ]
80
- # Indicates whether Azure Hybrid Benefit is opted in
81
- ${AzureHybridBenefit} ,
82
-
83
- [Parameter ()]
84
- [System.Management.Automation.SwitchParameter ]
85
- # Accept EULA of ConnectedKubernetes, legal term will pop up without this parameter provided
86
- ${AcceptEULA} ,
87
-
88
- [Parameter ()]
89
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Body' )]
90
- [System.String ]
91
- # Represents the distribution of the connected cluster
92
- ${Distribution} ,
93
-
94
- [Parameter ()]
95
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Body' )]
96
- [System.String ]
97
- # Represents the Kubernetes distribution version on this connected cluster.
98
- ${DistributionVersion} ,
99
-
100
- [Parameter ()]
101
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Body' )]
102
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info (PossibleTypes= ([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20221001Preview .IConnectedClusterPatchTags ]))]
103
- [System.Collections.Hashtable ]
104
- # Resource tags.
105
- ${Tag} ,
106
-
107
- [Parameter ()]
108
- [Alias (' AzureRMContext' , ' AzureCredential' )]
109
- [ValidateNotNull ()]
110
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Azure' )]
111
- [System.Management.Automation.PSObject ]
112
- # The credentials, account, tenant, and subscription used for communication with Azure.
113
- ${DefaultProfile} ,
114
-
115
- [Parameter (DontShow)]
116
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
117
- [System.Management.Automation.SwitchParameter ]
118
- # Wait for .NET debugger to attach
119
- ${Break} ,
120
-
121
- [Parameter (DontShow)]
122
- [ValidateNotNull ()]
123
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
124
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SendAsyncStep []]
125
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
126
- ${HttpPipelineAppend} ,
127
-
128
- [Parameter (DontShow)]
129
- [ValidateNotNull ()]
130
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
131
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SendAsyncStep []]
132
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
133
- ${HttpPipelinePrepend} ,
134
-
135
- [Parameter (DontShow)]
136
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
137
- [System.Uri ]
138
- # The URI for the proxy server to use
139
- ${Proxy} ,
140
-
141
- [Parameter (DontShow)]
142
- [ValidateNotNull ()]
143
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
144
- [System.Management.Automation.PSCredential ]
145
- # Credentials for a proxy server to use for the remote call
146
- ${ProxyCredential} ,
147
-
148
- [Parameter (DontShow)]
149
- [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
150
- [System.Management.Automation.SwitchParameter ]
151
- # Use the default credentials for the proxy
152
- ${ProxyUseDefaultCredentials}
153
- )
45
+ [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20240715Preview .IConnectedCluster ])]
46
+ [CmdletBinding (DefaultParameterSetName = ' UpdateExpanded' , PositionalBinding = $false , SupportsShouldProcess , ConfirmImpact = ' Medium' )]
47
+ param (
48
+ [Parameter (ParameterSetName = ' UpdateExpanded' , Mandatory )]
49
+ [Alias (' Name' )]
50
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Path' )]
51
+ [System.String ]
52
+ # The name of the Kubernetes cluster on which get is called.
53
+ ${ClusterName} ,
54
+
55
+ [Parameter (ParameterSetName = ' UpdateExpanded' , Mandatory )]
56
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Path' )]
57
+ [System.String ]
58
+ # The name of the resource group.
59
+ # The name is case insensitive.
60
+ ${ResourceGroupName} ,
61
+
62
+ [Parameter (ParameterSetName = ' UpdateExpanded' )]
63
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Path' )]
64
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.DefaultInfo (Script= ' (Get-AzContext).Subscription.Id' )]
65
+ [System.String ]
66
+ # The ID of the target subscription.
67
+ ${SubscriptionId} ,
68
+
69
+ [Parameter (ParameterSetName = ' UpdateViaIdentityExpanded' , Mandatory , ValueFromPipeline )]
70
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Path' )]
71
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.IConnectedKubernetesIdentity ]
72
+ # Identity Parameter
73
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
74
+ ${InputObject} ,
75
+
76
+ [Parameter ()]
77
+ [ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.AzureHybridBenefit ])]
78
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Body' )]
79
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Support.AzureHybridBenefit ]
80
+ # Indicates whether Azure Hybrid Benefit is opted in
81
+ ${AzureHybridBenefit} ,
82
+
83
+ [Parameter ()]
84
+ [System.Management.Automation.SwitchParameter ]
85
+ # Accept EULA of ConnectedKubernetes, legal term will pop up without this parameter provided
86
+ ${AcceptEULA} ,
87
+
88
+ [Parameter ()]
89
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Body' )]
90
+ [System.String ]
91
+ # Represents the distribution of the connected cluster
92
+ ${Distribution} ,
93
+
94
+ [Parameter ()]
95
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Body' )]
96
+ [System.String ]
97
+ # Represents the Kubernetes distribution version on this connected cluster.
98
+ ${DistributionVersion} ,
99
+
100
+ [Parameter ()]
101
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Body' )]
102
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.Info (PossibleTypes= ([Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Models.Api20240715Preview .IConnectedClusterPatchTags ]))]
103
+ [System.Collections.Hashtable ]
104
+ # Resource tags.
105
+ ${Tag} ,
106
+
107
+ [Parameter ()]
108
+ [Alias (' AzureRMContext' , ' AzureCredential' )]
109
+ [ValidateNotNull ()]
110
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Azure' )]
111
+ [System.Management.Automation.PSObject ]
112
+ # The credentials, account, tenant, and subscription used for communication with Azure.
113
+ ${DefaultProfile} ,
114
+
115
+ [Parameter (DontShow)]
116
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
117
+ [System.Management.Automation.SwitchParameter ]
118
+ # Wait for .NET debugger to attach
119
+ ${Break} ,
120
+
121
+ [Parameter (DontShow)]
122
+ [ValidateNotNull ()]
123
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
124
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SendAsyncStep []]
125
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
126
+ ${HttpPipelineAppend} ,
127
+
128
+ [Parameter (DontShow)]
129
+ [ValidateNotNull ()]
130
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
131
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Runtime.SendAsyncStep []]
132
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
133
+ ${HttpPipelinePrepend} ,
134
+
135
+ [Parameter (DontShow)]
136
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
137
+ [System.Uri ]
138
+ # The URI for the proxy server to use
139
+ ${Proxy} ,
140
+
141
+ [Parameter (DontShow)]
142
+ [ValidateNotNull ()]
143
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
144
+ [System.Management.Automation.PSCredential ]
145
+ # Credentials for a proxy server to use for the remote call
146
+ ${ProxyCredential} ,
147
+
148
+ [Parameter (DontShow)]
149
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.Category (' Runtime' )]
150
+ [System.Management.Automation.SwitchParameter ]
151
+ # Use the default credentials for the proxy
152
+ ${ProxyUseDefaultCredentials}
153
+ )
154
154
155
155
process {
156
156
if ($AzureHybridBenefit ){
0 commit comments