Skip to content

Commit

Permalink
Move ConnectedKubernetes to main (#20958)
Browse files Browse the repository at this point in the history
* Clean Az.ConnectedKubernetes

* Move ConnectedKubernetes to tmp/Az.ConnectedKubernetes (#20957)

* Update src/ConnectedKubernetes/Properties/AssemblyInfo.cs

---------

Co-authored-by: Azure PowerShell <[email protected]>
  • Loading branch information
BethanyZhou and azure-powershell-bot authored Feb 17, 2023
1 parent ec1efee commit e954245
Show file tree
Hide file tree
Showing 23 changed files with 356 additions and 1,705 deletions.
3 changes: 1 addition & 2 deletions src/ConnectedKubernetes/Az.ConnectedKubernetes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PsModuleName>ConnectedKubernetes</PsModuleName>
</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)..\Az.autorest.props" />
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />

</Project>
4 changes: 2 additions & 2 deletions src/ConnectedKubernetes/Az.ConnectedKubernetes.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 17/01/2023
# Generated on: 2/17/2023
#

@{
Expand Down Expand Up @@ -110,7 +110,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Made ''New-AzConnectedKubernetes'' support PowerShell 5.'
# ReleaseNotes = ''

# Prerelease string of this module
# Prerelease = ''
Expand Down
2 changes: 1 addition & 1 deletion src/ConnectedKubernetes/Az.ConnectedKubernetes.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}

if(-not $accountsModule) {
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
} elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
}
Expand Down
122 changes: 38 additions & 84 deletions src/ConnectedKubernetes/ConnectedKubernetes.sln
Original file line number Diff line number Diff line change
@@ -1,104 +1,58 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.6.30114.105
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{827D5D9D-228A-4659-ABAA-2B3B46E4E192}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{C9D8E39F-55C3-43C2-93B6-8F00CEFAF786}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{6193F9CE-3F9A-4069-9265-47F4E2440BF8}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{3EDD8420-0387-42B9-8430-D3F4300047A1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{EB15DC7B-F1FF-4776-AA34-3260552A5A2C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{8EA0C726-FE60-4EE7-A549-BEC861E985FE}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{51FC081F-09F5-411C-A2A8-6BB46FCB4BBB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{42BE450C-B2DE-4958-9F4A-320DFECFD7AE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ConnectedKubernetes", "Az.ConnectedKubernetes.csproj", "{CD9D5ED3-3724-4AF6-8941-3395986E8D49}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{15CFFEBB-F56F-41BB-845F-2A442E5C7523}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ConnectedKubernetes", "Az.ConnectedKubernetes.csproj", "{0BFCE22D-2CB4-49E1-AD29-B84B382D764B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Debug|Any CPU.Build.0 = Debug|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Debug|x64.ActiveCfg = Debug|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Debug|x64.Build.0 = Debug|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Debug|x86.ActiveCfg = Debug|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Debug|x86.Build.0 = Debug|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Release|Any CPU.ActiveCfg = Release|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Release|Any CPU.Build.0 = Release|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Release|x64.ActiveCfg = Release|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Release|x64.Build.0 = Release|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Release|x86.ActiveCfg = Release|Any CPU
{827D5D9D-228A-4659-ABAA-2B3B46E4E192}.Release|x86.Build.0 = Release|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Debug|x64.ActiveCfg = Debug|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Debug|x64.Build.0 = Debug|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Debug|x86.ActiveCfg = Debug|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Debug|x86.Build.0 = Debug|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Release|Any CPU.Build.0 = Release|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Release|x64.ActiveCfg = Release|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Release|x64.Build.0 = Release|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Release|x86.ActiveCfg = Release|Any CPU
{6193F9CE-3F9A-4069-9265-47F4E2440BF8}.Release|x86.Build.0 = Release|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Debug|x64.ActiveCfg = Debug|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Debug|x64.Build.0 = Debug|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Debug|x86.ActiveCfg = Debug|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Debug|x86.Build.0 = Debug|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Release|Any CPU.Build.0 = Release|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Release|x64.ActiveCfg = Release|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Release|x64.Build.0 = Release|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Release|x86.ActiveCfg = Release|Any CPU
{D3034A38-46C3-44B5-9AD3-7AD369CFBD62}.Release|x86.Build.0 = Release|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Debug|x64.ActiveCfg = Debug|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Debug|x64.Build.0 = Debug|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Debug|x86.ActiveCfg = Debug|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Debug|x86.Build.0 = Debug|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Release|Any CPU.Build.0 = Release|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Release|x64.ActiveCfg = Release|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Release|x64.Build.0 = Release|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Release|x86.ActiveCfg = Release|Any CPU
{8EA0C726-FE60-4EE7-A549-BEC861E985FE}.Release|x86.Build.0 = Release|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Debug|x64.ActiveCfg = Debug|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Debug|x64.Build.0 = Debug|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Debug|x86.ActiveCfg = Debug|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Debug|x86.Build.0 = Debug|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Release|Any CPU.Build.0 = Release|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Release|x64.ActiveCfg = Release|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Release|x64.Build.0 = Release|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Release|x86.ActiveCfg = Release|Any CPU
{7A9EB8DF-4E08-4739-B894-E54D7A6F8311}.Release|x86.Build.0 = Release|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Debug|x64.ActiveCfg = Debug|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Debug|x64.Build.0 = Debug|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Debug|x86.ActiveCfg = Debug|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Debug|x86.Build.0 = Debug|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Release|Any CPU.Build.0 = Release|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Release|x64.ActiveCfg = Release|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Release|x64.Build.0 = Release|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Release|x86.ActiveCfg = Release|Any CPU
{CD9D5ED3-3724-4AF6-8941-3395986E8D49}.Release|x86.Build.0 = Release|Any CPU
{C9D8E39F-55C3-43C2-93B6-8F00CEFAF786}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9D8E39F-55C3-43C2-93B6-8F00CEFAF786}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9D8E39F-55C3-43C2-93B6-8F00CEFAF786}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9D8E39F-55C3-43C2-93B6-8F00CEFAF786}.Release|Any CPU.Build.0 = Release|Any CPU
{3EDD8420-0387-42B9-8430-D3F4300047A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3EDD8420-0387-42B9-8430-D3F4300047A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3EDD8420-0387-42B9-8430-D3F4300047A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3EDD8420-0387-42B9-8430-D3F4300047A1}.Release|Any CPU.Build.0 = Release|Any CPU
{EB15DC7B-F1FF-4776-AA34-3260552A5A2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EB15DC7B-F1FF-4776-AA34-3260552A5A2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EB15DC7B-F1FF-4776-AA34-3260552A5A2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EB15DC7B-F1FF-4776-AA34-3260552A5A2C}.Release|Any CPU.Build.0 = Release|Any CPU
{51FC081F-09F5-411C-A2A8-6BB46FCB4BBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{51FC081F-09F5-411C-A2A8-6BB46FCB4BBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{51FC081F-09F5-411C-A2A8-6BB46FCB4BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{51FC081F-09F5-411C-A2A8-6BB46FCB4BBB}.Release|Any CPU.Build.0 = Release|Any CPU
{42BE450C-B2DE-4958-9F4A-320DFECFD7AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42BE450C-B2DE-4958-9F4A-320DFECFD7AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42BE450C-B2DE-4958-9F4A-320DFECFD7AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42BE450C-B2DE-4958-9F4A-320DFECFD7AE}.Release|Any CPU.Build.0 = Release|Any CPU
{15CFFEBB-F56F-41BB-845F-2A442E5C7523}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15CFFEBB-F56F-41BB-845F-2A442E5C7523}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15CFFEBB-F56F-41BB-845F-2A442E5C7523}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15CFFEBB-F56F-41BB-845F-2A442E5C7523}.Release|Any CPU.Build.0 = Release|Any CPU
{0BFCE22D-2CB4-49E1-AD29-B84B382D764B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0BFCE22D-2CB4-49E1-AD29-B84B382D764B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0BFCE22D-2CB4-49E1-AD29-B84B382D764B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0BFCE22D-2CB4-49E1-AD29-B84B382D764B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
Binary file removed src/ConnectedKubernetes/MSSharedLibKey.snk
Binary file not shown.
25 changes: 13 additions & 12 deletions src/ConnectedKubernetes/custom/New-AzConnectedKubernetes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,12 @@ function New-AzConnectedKubernetes {
$HelmRepoUrl = Get-ChildItem -Path Env:HELMREPOURL
helm repo add $HelmRepoName $HelmRepoUrl --kubeconfig $KubeConfig --kube-context $KubeContext
}


$resources = Get-Module Az.Resources -ListAvailable
if ($null -eq $resources) {
Write-Error "Missing required module(s): Az.Resources. Please run 'Install-Module Az.Resources -Repository PSGallery' to install Az.Resources."
return
}
if (Test-Path Env:HELMREGISTRY) {
$RegisteryPath = Get-ChildItem -Path Env:HELMREGISTRY
} else {
Expand All @@ -345,8 +350,7 @@ function New-AzConnectedKubernetes {
$ReleaseTrain = Get-ChildItem -Path Env:RELEASETRAIN
} else {
$ReleaseTrain = 'stable'
}

}
$AzLocation = Get-AzLocation | Where-Object { ($_.DisplayName -ieq $Location) -or ($_.Location -ieq $Location)}
$Region = $AzLocation.Location
if ($null -eq $Region) {
Expand All @@ -372,17 +376,16 @@ function New-AzConnectedKubernetes {
if ($Response.StatusCode -eq 200) {
$RegisteryPath = ($Response.Content | ConvertFrom-Json).repositoryPath
} else {
Write-Error "Error while fetching helm chart registry path: ${$Response.RawContent}"
throw
throw "Error while fetching helm chart registry path: ${$Response.RawContent}"

}
}
Set-Item -Path Env:HELM_EXPERIMENTAL_OCI -Value 1
#Region pull helm chart
try {
helm chart pull $RegisteryPath --kubeconfig $KubeConfig --kube-context $KubeContext
} catch {
Write-Error "Unable to pull helm chart from the registery $RegisteryPath"
throw
throw "Unable to pull helm chart from the registery $RegisteryPath"
}
#Endregion

Expand All @@ -404,13 +407,12 @@ function New-AzConnectedKubernetes {
$RSA = [System.Security.Cryptography.RSA]::Create(4096)
if ($PSVersionTable.PSVersion.Major -eq 5) {
try {
. "$PSScriptRoot/../utils/RSAHelper.ps1"
. "$PSScriptRoot/RSAHelper.ps1"
$AgentPublicKey = ExportRSAPublicKeyBase64($RSA)
$AgentPrivateKey = ExportRSAPrivateKeyBase64($RSA)
$AgentPrivateKey = "-----BEGIN RSA PRIVATE KEY-----`n" + $AgentPrivateKey + "`n-----END RSA PRIVATE KEY-----"
} catch {
Write-Error "Unable to generate RSA keys"
throw
throw "Unable to generate RSA keys"
}
} else {
$AgentPublicKey = [System.Convert]::ToBase64String($RSA.ExportRSAPublicKey())
Expand Down Expand Up @@ -459,8 +461,7 @@ function New-AzConnectedKubernetes {
$options += " --set global.isCustomCert=true"
}
} catch {
Write-Error "Unable to find ProxyCert from file path"
throw
throw "Unable to find ProxyCert from file path"
}
if ($DisableAutoUpgrade) {
$options += " --set systemDefaultValues.azureArcAgents.autoUpdate=false"
Expand Down
2 changes: 1 addition & 1 deletion src/ConnectedKubernetes/custom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ These provide functionality to our HTTP pipeline and other useful features. In s
### Attributes
For processing the cmdlets, we've created some additional attributes:
- `Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.DescriptionAttribute`
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
- `Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.DoNotExportAttribute`
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.ConnectedKubernetes`.
- `Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.InternalExportAttribute`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function ExportRSAPrivateKeyBase64{
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.DoNotExportAttribute()]
param(
[Parameter(Mandatory)]
[System.Security.Cryptography.RSA]
Expand Down Expand Up @@ -35,6 +36,7 @@ function ExportRSAPrivateKeyBase64{
}

function ExportRSAPublicKeyBase64{
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.DoNotExportAttribute()]
param(
[Parameter(Mandatory)]
[System.Security.Cryptography.RSA]
Expand Down Expand Up @@ -62,6 +64,7 @@ function ExportRSAPublicKeyBase64{
}

function EncodeLength{
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.DoNotExportAttribute()]
param(
[System.IO.BinaryWriter]$stream,
[int]$length
Expand Down Expand Up @@ -95,6 +98,7 @@ function EncodeLength{
}

function EncodeIntegerBigEndian{
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedKubernetes.DoNotExportAttribute()]
param(
[System.IO.BinaryWriter]$stream,
[byte[]]$value,
Expand Down
28 changes: 0 additions & 28 deletions src/ConnectedKubernetes/docs/Az.ConnectedKubernetes.md

This file was deleted.

Loading

0 comments on commit e954245

Please sign in to comment.