Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,944 changes: 1,782 additions & 162 deletions generated/Aks/Aks.Autorest/Az.Aks.format.ps1xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion generated/Aks/Aks.Autorest/Az.Aks.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.Aks.private.dll'
FormatsToProcess = './Az.Aks.format.ps1xml'
FunctionsToExport = 'Get-AzAksMaintenanceConfiguration', 'Get-AzAksManagedClusterCommandResult', 'Get-AzAksManagedClusterOSOption', 'Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint', 'Get-AzAksNodePoolUpgradeProfile', 'Get-AzAksSnapshot', 'Get-AzAksUpgradeProfile', 'Get-AzAksVersion', 'Install-AzAksCliTool', 'Invoke-AzAksAbortAgentPoolLatestOperation', 'Invoke-AzAksAbortManagedClusterLatestOperation', 'Invoke-AzAksRotateManagedClusterServiceAccountSigningKey', 'New-AzAksMaintenanceConfiguration', 'New-AzAksSnapshot', 'New-AzAksTimeInWeekObject', 'New-AzAksTimeSpanObject', 'Remove-AzAksMaintenanceConfiguration', 'Remove-AzAksSnapshot', 'Start-AzAksCluster', 'Start-AzAksManagedClusterCommand', 'Stop-AzAksCluster', 'Update-AzAksMaintenanceConfiguration'
FunctionsToExport = 'Get-AzAksMachine', 'Get-AzAksMaintenanceConfiguration', 'Get-AzAksManagedClusterCommandResult', 'Get-AzAksManagedClusterKuberneteVersion', 'Get-AzAksManagedClusterMeshRevisionProfile', 'Get-AzAksManagedClusterMeshUpgradeProfile', 'Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint', 'Get-AzAksNodePoolUpgradeProfile', 'Get-AzAksSnapshot', 'Get-AzAksTrustedAccessRole', 'Get-AzAksTrustedAccessRoleBinding', 'Get-AzAksUpgradeProfile', 'Get-AzAksVersion', 'Install-AzAksCliTool', 'Invoke-AzAksAbortAgentPoolLatestOperation', 'Invoke-AzAksAbortManagedClusterLatestOperation', 'Invoke-AzAksRotateManagedClusterServiceAccountSigningKey', 'New-AzAksMaintenanceConfiguration', 'New-AzAksSnapshot', 'New-AzAksTimeInWeekObject', 'New-AzAksTimeSpanObject', 'New-AzAksTrustedAccessRoleBinding', 'Remove-AzAksAgentPoolMachine', 'Remove-AzAksMaintenanceConfiguration', 'Remove-AzAksSnapshot', 'Remove-AzAksTrustedAccessRoleBinding', 'Start-AzAksCluster', 'Start-AzAksManagedClusterCommand', 'Stop-AzAksCluster', 'Update-AzAksMaintenanceConfiguration', 'Update-AzAksTrustedAccessRoleBinding'
AliasesToExport = 'Get-AzAksClusterUpgradeProfile'
PrivateData = @{
PSData = @{
Expand Down
4 changes: 2 additions & 2 deletions generated/Aks/Aks.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Aks")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.1.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("6.1.1")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("7.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
292 changes: 292 additions & 0 deletions generated/Aks/Aks.Autorest/exports/Get-AzAksMachine.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@

# ----------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------

<#
.Synopsis
Get a specific machine in the specified agent pool.
.Description
Get a specific machine in the specified agent pool.
.Example
Get-AzAksMachine -AgentPoolName 'default' -ResourceGroupName AKS_TEST_RG -ResourceName AKS_Test_Cluster

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMachine
.Notes
COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

AGENTPOOLINPUTOBJECT <IAksIdentity>: Identity Parameter
[AgentPoolName <String>]: The name of the agent pool.
[CommandId <String>]: Id of the command.
[ConfigName <String>]: The name of the maintenance configuration.
[Id <String>]: Resource identity path
[Location <String>]: The name of the Azure region.
[MachineName <String>]: host name of the machine
[Mode <String>]: The mode of the mesh.
[PrivateEndpointConnectionName <String>]: The name of the private endpoint connection.
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[ResourceName <String>]: The name of the managed cluster resource.
[RoleName <String>]: The name of the role for managed cluster accessProfile resource.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
[TrustedAccessRoleBindingName <String>]: The name of trusted access role binding.

INPUTOBJECT <IAksIdentity>: Identity Parameter
[AgentPoolName <String>]: The name of the agent pool.
[CommandId <String>]: Id of the command.
[ConfigName <String>]: The name of the maintenance configuration.
[Id <String>]: Resource identity path
[Location <String>]: The name of the Azure region.
[MachineName <String>]: host name of the machine
[Mode <String>]: The mode of the mesh.
[PrivateEndpointConnectionName <String>]: The name of the private endpoint connection.
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[ResourceName <String>]: The name of the managed cluster resource.
[RoleName <String>]: The name of the role for managed cluster accessProfile resource.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
[TrustedAccessRoleBindingName <String>]: The name of trusted access role binding.

MANAGEDCLUSTERINPUTOBJECT <IAksIdentity>: Identity Parameter
[AgentPoolName <String>]: The name of the agent pool.
[CommandId <String>]: Id of the command.
[ConfigName <String>]: The name of the maintenance configuration.
[Id <String>]: Resource identity path
[Location <String>]: The name of the Azure region.
[MachineName <String>]: host name of the machine
[Mode <String>]: The mode of the mesh.
[PrivateEndpointConnectionName <String>]: The name of the private endpoint connection.
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[ResourceName <String>]: The name of the managed cluster resource.
[RoleName <String>]: The name of the role for managed cluster accessProfile resource.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
[TrustedAccessRoleBindingName <String>]: The name of trusted access role binding.
.Link
https://learn.microsoft.com/powershell/module/az.aks/get-azaksmachine
#>
function Get-AzAksMachine {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMachine])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='GetViaIdentityManagedCluster', Mandatory)]
[Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
[System.String]
# The name of the agent pool.
${AgentPoolName},

[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='GetViaIdentityAgentPool', Mandatory)]
[Parameter(ParameterSetName='GetViaIdentityManagedCluster', Mandatory)]
[Alias('MachineName')]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
[System.String]
# host name of the machine
${Name},

[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},

[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
[System.String]
# The name of the managed cluster resource.
${ResourceName},

[Parameter(ParameterSetName='Get')]
[Parameter(ParameterSetName='List')]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity]
# Identity Parameter
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityAgentPool', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity]
# Identity Parameter
${AgentPoolInputObject},

[Parameter(ParameterSetName='GetViaIdentityManagedCluster', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity]
# Identity Parameter
${ManagedClusterInputObject},

[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Azure')]
[System.Management.Automation.PSObject]
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Wait for .NET debugger to attach
${Break},

[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be appended to the front of the pipeline
${HttpPipelineAppend},

[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Runtime')]
[System.Uri]
# The URI for the proxy server to use
${Proxy},

[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Runtime')]
[System.Management.Automation.PSCredential]
# Credentials for a proxy server to use for the remote call
${ProxyCredential},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)

begin {
try {
$outBuffer = $null
if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName

$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
exit
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
[Microsoft.Azure.PowerShell.Cmdlets.Aks.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
} else {
$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
if ($internalCalledCmdlets -eq '') {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
} else {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
}
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
}

$mapping = @{
Get = 'Az.Aks.private\Get-AzAksMachine_Get';
GetViaIdentity = 'Az.Aks.private\Get-AzAksMachine_GetViaIdentity';
GetViaIdentityAgentPool = 'Az.Aks.private\Get-AzAksMachine_GetViaIdentityAgentPool';
GetViaIdentityManagedCluster = 'Az.Aks.private\Get-AzAksMachine_GetViaIdentityManagedCluster';
List = 'Az.Aks.private\Get-AzAksMachine_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
if ($wrappedCmd -eq $null) {
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
}
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}

process {
try {
$steppablePipeline.Process($_)
} catch {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}

finally {
$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
}

}
end {
try {
$steppablePipeline.End()

[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
if ($preTelemetryId -eq '') {
[Microsoft.Azure.PowerShell.Cmdlets.Aks.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
}
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId

} catch {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,30 @@ INPUTOBJECT <IAksIdentity>: Identity Parameter
[CommandId <String>]: Id of the command.
[ConfigName <String>]: The name of the maintenance configuration.
[Id <String>]: Resource identity path
[Location <String>]: The name of Azure region.
[Location <String>]: The name of the Azure region.
[MachineName <String>]: host name of the machine
[Mode <String>]: The mode of the mesh.
[PrivateEndpointConnectionName <String>]: The name of the private endpoint connection.
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[ResourceName <String>]: The name of the managed cluster resource.
[RoleName <String>]: The name of the role for managed cluster accessProfile resource.
[SubscriptionId <String>]: The ID of the target subscription.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
[TrustedAccessRoleBindingName <String>]: The name of trusted access role binding.

MANAGEDCLUSTERINPUTOBJECT <IAksIdentity>: Identity Parameter
[AgentPoolName <String>]: The name of the agent pool.
[CommandId <String>]: Id of the command.
[ConfigName <String>]: The name of the maintenance configuration.
[Id <String>]: Resource identity path
[Location <String>]: The name of Azure region.
[Location <String>]: The name of the Azure region.
[MachineName <String>]: host name of the machine
[Mode <String>]: The mode of the mesh.
[PrivateEndpointConnectionName <String>]: The name of the private endpoint connection.
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[ResourceName <String>]: The name of the managed cluster resource.
[RoleName <String>]: The name of the role for managed cluster accessProfile resource.
[SubscriptionId <String>]: The ID of the target subscription.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
[TrustedAccessRoleBindingName <String>]: The name of trusted access role binding.
.Link
https://learn.microsoft.com/powershell/module/az.aks/get-azaksmaintenanceconfiguration
#>
Expand Down Expand Up @@ -96,6 +102,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
Expand Down
Loading