From bbe849a9d39c3646b41e29bc68dc285713371409 Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Tue, 24 May 2022 07:06:04 +0000
Subject: [PATCH 1/5] Move KubernetesConfiguration to main
---
.../Az.KubernetesConfiguration.format.ps1xml | 878 +++++-
.../Az.KubernetesConfiguration.psd1 | 27 +-
.../Az.KubernetesConfiguration.psm1 | 14 +-
.../KubernetesConfiguration.sln | 158 +-
src/KubernetesConfiguration/README.md | 157 +-
.../check-dependencies.ps1 | 4 +-
.../create-model-cmdlets.ps1 | 21 +-
...-AzKubernetesConfigFluxOperationStatus.ps1 | 164 ++
.../custom/Get-AzKubernetesConfiguration.ps1 | 75 +-
.../Get-AzKubernetesConfigurationFlux.ps1 | 163 ++
.../custom/Get-AzKubernetesExtension.ps1 | 63 +-
.../custom/New-AzKubernetesConfiguration.ps1 | 129 +-
.../New-AzKubernetesConfigurationFlux.ps1 | 299 +++
.../custom/New-AzKubernetesExtension.ps1 | 46 +-
.../Remove-AzKubernetesConfiguration.ps1 | 59 +-
.../Remove-AzKubernetesConfigurationFlux.ps1 | 183 ++
.../custom/Remove-AzKubernetesExtension.ps1 | 46 +-
.../Update-AzKubernetesConfigurationFlux.ps1 | 310 +++
.../custom/Update-AzKubernetesExtension.ps1 | 36 +-
...t-AzKubernetesConfigFluxOperationStatus.md | 10 +
.../examples/Get-AzKubernetesConfiguration.md | 18 +-
.../Get-AzKubernetesConfigurationFlux.md | 21 +
.../examples/Get-AzKubernetesExtension.md | 17 +-
.../examples/New-AzKubernetesConfiguration.md | 26 +-
.../New-AzKubernetesConfigurationFlux.md | 23 +
.../examples/New-AzKubernetesExtension.md | 21 +-
.../Remove-AzKubernetesConfiguration.md | 14 +-
.../Remove-AzKubernetesConfigurationFlux.md | 15 +
.../examples/Remove-AzKubernetesExtension.md | 2 +-
.../Update-AzKubernetesConfigurationFlux.md | 21 +
.../examples/Update-AzKubernetesExtension.md | 8 +-
...-AzKubernetesConfigFluxOperationStatus.ps1 | 227 ++
.../exports/Get-AzKubernetesConfiguration.ps1 | 79 +-
.../Get-AzKubernetesConfigurationFlux.ps1 | 233 ++
.../exports/Get-AzKubernetesExtension.ps1 | 77 +-
.../exports/New-AzKubernetesConfiguration.ps1 | 100 +-
.../New-AzKubernetesConfigurationFlux.ps1 | 374 +++
.../exports/New-AzKubernetesExtension.ps1 | 77 +-
.../exports/ProxyCmdletDefinitions.ps1 | 2302 +++++++++++++---
.../Remove-AzKubernetesConfiguration.ps1 | 61 +-
.../Remove-AzKubernetesConfigurationFlux.ps1 | 246 ++
.../exports/Remove-AzKubernetesExtension.ps1 | 60 +-
.../Update-AzKubernetesConfigurationFlux.ps1 | 379 +++
.../exports/Update-AzKubernetesExtension.ps1 | 72 +-
.../generate-info.json | 10 +-
.../generated/Module.cs | 32 +-
.../generated/api/KubernetesConfiguration.cs | 2061 +++++++++++---
.../generated/api/Models/Any.PowerShell.cs | 8 +-
.../generated/api/Models/Any.TypeConverter.cs | 25 +-
.../generated/api/Models/Any.json.cs | 8 +-
.../Api20/ErrorAdditionalInfo.PowerShell.cs | 28 +-
.../ErrorAdditionalInfo.TypeConverter.cs | 26 +-
.../Models/Api20/ErrorAdditionalInfo.json.cs | 8 +-
.../Models/Api20/ErrorDetail.PowerShell.cs | 58 +-
.../Models/Api20/ErrorDetail.TypeConverter.cs | 26 +-
.../api/Models/Api20/ErrorDetail.json.cs | 8 +-
.../Models/Api20/ErrorResponse.PowerShell.cs | 208 ++
.../ErrorResponse.TypeConverter.cs | 32 +-
...ponseAutoGenerated.cs => ErrorResponse.cs} | 26 +-
.../ErrorResponse.json.cs | 28 +-
.../ErrorResponseAutoGenerated.PowerShell.cs | 172 --
.../api/Models/Api20/Identity.PowerShell.cs | 38 +-
.../Models/Api20/Identity.TypeConverter.cs | 25 +-
.../api/Models/Api20/Identity.json.cs | 8 +-
.../Models/Api20/ProxyResource.PowerShell.cs | 38 +-
.../Api20/ProxyResource.TypeConverter.cs | 26 +-
.../api/Models/Api20/ProxyResource.cs | 2 +-
.../api/Models/Api20/ProxyResource.json.cs | 8 +-
.../api/Models/Api20/Resource.PowerShell.cs | 38 +-
.../Models/Api20/Resource.TypeConverter.cs | 25 +-
.../api/Models/Api20/Resource.json.cs | 8 +-
.../api/Models/Api20/SystemData.PowerShell.cs | 68 +-
.../Models/Api20/SystemData.TypeConverter.cs | 25 +-
.../api/Models/Api20/SystemData.json.cs | 8 +-
.../api/Models/Api20210301/ErrorDefinition.cs | 74 -
.../api/Models/Api20210301/ErrorResponse.cs | 80 -
.../ResourceProviderOperation.PowerShell.cs | 170 --
.../api/Models/Api20210301/Result.cs | 51 -
.../SourceControlConfiguration.PowerShell.cs | 216 --
...ntrolConfigurationProperties.PowerShell.cs | 194 --
.../Api20210901/Extension.PowerShell.cs | 234 --
.../ExtensionProperties.PowerShell.cs | 206 --
.../OperationStatusResult.PowerShell.cs | 176 --
...oviderOperationAutoGenerated.PowerShell.cs | 173 --
.../ResourceProviderOperationAutoGenerated.cs | 159 --
...ourceProviderOperationListAutoGenerated.cs | 73 -
.../BucketDefinition.PowerShell.cs | 214 ++
.../BucketDefinition.TypeConverter.cs} | 52 +-
.../Models/Api20220301/BucketDefinition.cs | 180 ++
.../Api20220301/BucketDefinition.json.cs | 120 +
.../BucketPatchDefinition.PowerShell.cs | 214 ++
.../BucketPatchDefinition.TypeConverter.cs} | 52 +-
.../Api20220301/BucketPatchDefinition.cs | 180 ++
.../Api20220301/BucketPatchDefinition.json.cs | 120 +
.../ComplianceStatus.PowerShell.cs | 68 +-
.../ComplianceStatus.TypeConverter.cs | 32 +-
.../ComplianceStatus.cs | 8 +-
.../ComplianceStatus.json.cs | 16 +-
...nfigurationProtectedSettings.PowerShell.cs | 28 +-
...gurationProtectedSettings.TypeConverter.cs | 33 +-
.../ConfigurationProtectedSettings.cs | 6 +-
...nfigurationProtectedSettings.dictionary.cs | 4 +-
.../ConfigurationProtectedSettings.json.cs | 16 +-
.../Api20220301/Extension.PowerShell.cs | 484 ++++
.../Extension.TypeConverter.cs | 31 +-
.../{Api20210901 => Api20220301}/Extension.cs | 173 +-
.../Extension.json.cs | 18 +-
.../ExtensionProperties.PowerShell.cs | 366 +++
.../ExtensionProperties.TypeConverter.cs | 32 +-
.../ExtensionProperties.cs | 152 +-
.../ExtensionProperties.json.cs | 38 +-
...ropertiesAksAssignedIdentity.PowerShell.cs | 60 +-
...ertiesAksAssignedIdentity.TypeConverter.cs | 33 +-
.../ExtensionPropertiesAksAssignedIdentity.cs | 20 +-
...nsionPropertiesAksAssignedIdentity.json.cs | 16 +-
...nfigurationProtectedSettings.PowerShell.cs | 30 +-
...gurationProtectedSettings.TypeConverter.cs | 33 +-
...ropertiesConfigurationProtectedSettings.cs | 6 +-
...nfigurationProtectedSettings.dictionary.cs | 4 +-
...tiesConfigurationProtectedSettings.json.cs | 16 +-
...pertiesConfigurationSettings.PowerShell.cs | 30 +-
...tiesConfigurationSettings.TypeConverter.cs | 33 +-
...xtensionPropertiesConfigurationSettings.cs | 6 +-
...pertiesConfigurationSettings.dictionary.cs | 4 +-
...ionPropertiesConfigurationSettings.json.cs | 16 +-
...ertiesCustomLocationSettings.PowerShell.cs | 30 +-
...iesCustomLocationSettings.TypeConverter.cs | 33 +-
...tensionPropertiesCustomLocationSettings.cs | 6 +-
...ertiesCustomLocationSettings.dictionary.cs | 4 +-
...onPropertiesCustomLocationSettings.json.cs | 16 +-
.../ExtensionStatus.PowerShell.cs | 78 +-
.../ExtensionStatus.TypeConverter.cs | 32 +-
.../ExtensionStatus.cs | 6 +-
.../ExtensionStatus.json.cs | 16 +-
.../ExtensionsList.PowerShell.cs | 48 +-
.../ExtensionsList.TypeConverter.cs | 32 +-
.../ExtensionsList.cs | 20 +-
.../ExtensionsList.json.cs | 18 +-
.../FluxConfiguration.PowerShell.cs | 526 ++++
.../FluxConfiguration.TypeConverter.cs} | 52 +-
.../Models/Api20220301/FluxConfiguration.cs | 795 ++++++
.../Api20220301/FluxConfiguration.json.cs | 115 +
.../FluxConfigurationPatch.PowerShell.cs | 366 +++
.../FluxConfigurationPatch.TypeConverter.cs | 147 +
.../Api20220301/FluxConfigurationPatch.cs | 453 ++++
.../FluxConfigurationPatch.json.cs} | 50 +-
...ConfigurationPatchProperties.PowerShell.cs | 358 +++
...figurationPatchProperties.TypeConverter.cs | 148 +
.../FluxConfigurationPatchProperties.cs | 467 ++++
.../FluxConfigurationPatchProperties.json.cs | 118 +
...figurationProtectedSettings.PowerShell.cs} | 61 +-
...gurationProtectedSettings.TypeConverter.cs | 153 ++
...ropertiesConfigurationProtectedSettings.cs | 37 +
...nfigurationProtectedSettings.dictionary.cs | 75 +
...tiesConfigurationProtectedSettings.json.cs | 112 +
...atchPropertiesKustomizations.PowerShell.cs | 167 ++
...hPropertiesKustomizations.TypeConverter.cs | 151 ++
...figurationPatchPropertiesKustomizations.cs | 39 +
...atchPropertiesKustomizations.dictionary.cs | 75 +
...ationPatchPropertiesKustomizations.json.cs | 114 +
.../FluxConfigurationProperties.PowerShell.cs | 438 +++
...uxConfigurationProperties.TypeConverter.cs | 147 +
.../FluxConfigurationProperties.cs | 691 +++++
.../FluxConfigurationProperties.json.cs | 170 ++
...nfigurationProtectedSettings.PowerShell.cs | 165 ++
...gurationProtectedSettings.TypeConverter.cs | 153 ++
...ropertiesConfigurationProtectedSettings.cs | 37 +
...nfigurationProtectedSettings.dictionary.cs | 75 +
...iesConfigurationProtectedSettings.json.cs} | 41 +-
...ionPropertiesKustomizations.PowerShell.cs} | 71 +-
...PropertiesKustomizations.TypeConverter.cs} | 53 +-
...uxConfigurationPropertiesKustomizations.cs | 39 +
...tionPropertiesKustomizations.dictionary.cs | 75 +
...figurationPropertiesKustomizations.json.cs | 113 +
.../FluxConfigurationsList.PowerShell.cs} | 76 +-
.../FluxConfigurationsList.TypeConverter.cs | 147 +
.../Api20220301/FluxConfigurationsList.cs | 79 +
.../FluxConfigurationsList.json.cs} | 66 +-
.../GitRepositoryDefinition.PowerShell.cs | 254 ++
.../GitRepositoryDefinition.TypeConverter.cs | 147 +
.../Api20220301/GitRepositoryDefinition.cs | 266 ++
.../GitRepositoryDefinition.json.cs | 122 +
...GitRepositoryPatchDefinition.PowerShell.cs | 254 ++
...epositoryPatchDefinition.TypeConverter.cs} | 55 +-
.../GitRepositoryPatchDefinition.cs | 266 ++
.../GitRepositoryPatchDefinition.json.cs | 122 +
.../HelmOperatorProperties.PowerShell.cs | 48 +-
.../HelmOperatorProperties.TypeConverter.cs | 32 +-
.../HelmOperatorProperties.cs | 6 +-
.../HelmOperatorProperties.json.cs | 16 +-
...mReleasePropertiesDefinition.PowerShell.cs | 214 ++
...leasePropertiesDefinition.TypeConverter.cs | 148 +
.../HelmReleasePropertiesDefinition.cs | 142 +
.../HelmReleasePropertiesDefinition.json.cs | 116 +
.../KustomizationDefinition.PowerShell.cs | 224 ++
.../KustomizationDefinition.TypeConverter.cs | 147 +
.../Api20220301/KustomizationDefinition.cs | 202 ++
.../KustomizationDefinition.json.cs | 135 +
...KustomizationPatchDefinition.PowerShell.cs | 216 ++
...tomizationPatchDefinition.TypeConverter.cs | 147 +
.../KustomizationPatchDefinition.cs | 182 ++
.../KustomizationPatchDefinition.json.cs | 130 +
.../ObjectReferenceDefinition.PowerShell.cs | 174 ++
...ObjectReferenceDefinition.TypeConverter.cs | 147 +
.../Api20220301/ObjectReferenceDefinition.cs | 68 +
.../ObjectReferenceDefinition.json.cs} | 54 +-
...ectStatusConditionDefinition.PowerShell.cs | 198 ++
...StatusConditionDefinition.TypeConverter.cs | 148 +
.../ObjectStatusConditionDefinition.cs | 119 +
.../ObjectStatusConditionDefinition.json.cs} | 55 +-
.../ObjectStatusDefinition.PowerShell.cs | 288 ++
.../ObjectStatusDefinition.TypeConverter.cs | 147 +
.../Api20220301/ObjectStatusDefinition.cs | 268 ++
.../ObjectStatusDefinition.json.cs | 130 +
.../OperationStatusList.PowerShell.cs | 48 +-
.../OperationStatusList.TypeConverter.cs | 32 +-
.../OperationStatusList.cs | 20 +-
.../OperationStatusList.json.cs | 18 +-
.../OperationStatusResult.PowerShell.cs | 238 ++
.../OperationStatusResult.TypeConverter.cs | 32 +-
.../OperationStatusResult.cs | 36 +-
.../OperationStatusResult.json.cs | 23 +-
...rationStatusResultProperties.PowerShell.cs | 28 +-
...ionStatusResultProperties.TypeConverter.cs | 33 +-
.../OperationStatusResultProperties.cs | 6 +-
...rationStatusResultProperties.dictionary.cs | 4 +-
.../OperationStatusResultProperties.json.cs | 16 +-
.../PatchExtension.PowerShell.cs | 88 +-
.../PatchExtension.TypeConverter.cs | 32 +-
.../PatchExtension.cs | 36 +-
.../PatchExtension.json.cs | 18 +-
.../PatchExtensionProperties.PowerShell.cs | 78 +-
.../PatchExtensionProperties.TypeConverter.cs | 32 +-
.../PatchExtensionProperties.cs | 26 +-
.../PatchExtensionProperties.json.cs | 20 +-
...nfigurationProtectedSettings.PowerShell.cs | 30 +-
...gurationProtectedSettings.TypeConverter.cs | 33 +-
...ropertiesConfigurationProtectedSettings.cs | 6 +-
...nfigurationProtectedSettings.dictionary.cs | 4 +-
...tiesConfigurationProtectedSettings.json.cs | 16 +-
...pertiesConfigurationSettings.PowerShell.cs | 30 +-
...tiesConfigurationSettings.TypeConverter.cs | 33 +-
...xtensionPropertiesConfigurationSettings.cs | 6 +-
...pertiesConfigurationSettings.dictionary.cs | 4 +-
...ionPropertiesConfigurationSettings.json.cs | 16 +-
.../RepositoryRefDefinition.PowerShell.cs} | 87 +-
.../RepositoryRefDefinition.TypeConverter.cs | 147 +
.../Api20220301/RepositoryRefDefinition.cs | 114 +
.../RepositoryRefDefinition.json.cs | 114 +
.../ResourceProviderOperation.PowerShell.cs | 222 ++
...ResourceProviderOperation.TypeConverter.cs | 32 +-
.../ResourceProviderOperation.cs | 44 +-
.../ResourceProviderOperation.json.cs | 23 +-
...urceProviderOperationDisplay.PowerShell.cs | 68 +-
...eProviderOperationDisplay.TypeConverter.cs | 33 +-
.../ResourceProviderOperationDisplay.cs | 6 +-
.../ResourceProviderOperationDisplay.json.cs | 16 +-
...esourceProviderOperationList.PowerShell.cs | 48 +-
...urceProviderOperationList.TypeConverter.cs | 32 +-
.../ResourceProviderOperationList.cs | 18 +-
.../ResourceProviderOperationList.json.cs | 18 +-
.../Scope.PowerShell.cs | 68 +-
.../Scope.TypeConverter.cs | 31 +-
.../{Api20210901 => Api20220301}/Scope.cs | 26 +-
.../Scope.json.cs | 20 +-
.../ScopeCluster.PowerShell.cs | 38 +-
.../ScopeCluster.TypeConverter.cs | 32 +-
.../ScopeCluster.cs | 6 +-
.../ScopeCluster.json.cs | 16 +-
.../ScopeNamespace.PowerShell.cs | 38 +-
.../ScopeNamespace.TypeConverter.cs | 32 +-
.../ScopeNamespace.cs | 6 +-
.../ScopeNamespace.json.cs | 16 +-
.../SourceControlConfiguration.PowerShell.cs | 398 +++
...ourceControlConfiguration.TypeConverter.cs | 32 +-
.../SourceControlConfiguration.cs | 103 +-
.../SourceControlConfiguration.json.cs | 18 +-
...urceControlConfigurationList.PowerShell.cs | 48 +-
...eControlConfigurationList.TypeConverter.cs | 33 +-
.../SourceControlConfigurationList.cs | 20 +-
.../SourceControlConfigurationList.json.cs | 18 +-
...ntrolConfigurationProperties.PowerShell.cs | 312 +++
...olConfigurationProperties.TypeConverter.cs | 33 +-
.../SourceControlConfigurationProperties.cs | 50 +-
...urceControlConfigurationProperties.json.cs | 22 +-
...ernetesConfigurationIdentity.PowerShell.cs | 106 +-
...etesConfigurationIdentity.TypeConverter.cs | 27 +-
.../Models/KubernetesConfigurationIdentity.cs | 61 +-
.../KubernetesConfigurationIdentity.json.cs | 14 +-
.../api/Support/AksIdentityType.Completer.cs | 39 +
.../Support/AksIdentityType.TypeConverter.cs | 59 +
.../generated/api/Support/AksIdentityType.cs | 98 +
.../ComplianceStateType.TypeConverter.cs | 20 +-
.../api/Support/ComplianceStateType.cs | 10 +-
.../Support/CreatedByType.TypeConverter.cs | 20 +-
.../generated/api/Support/CreatedByType.cs | 10 +-
.../Support/FluxComplianceState.Completer.cs | 51 +
.../FluxComplianceState.TypeConverter.cs | 59 +
.../api/Support/FluxComplianceState.cs | 104 +
.../KustomizationValidationType.Completer.cs | 45 +
...stomizationValidationType.TypeConverter.cs | 61 +
.../Support/KustomizationValidationType.cs | 106 +
.../api/Support/LevelType.TypeConverter.cs | 20 +-
.../generated/api/Support/LevelType.cs | 10 +-
.../Support/MessageLevelType.TypeConverter.cs | 20 +-
.../generated/api/Support/MessageLevelType.cs | 10 +-
.../OperatorScopeType.TypeConverter.cs | 20 +-
.../api/Support/OperatorScopeType.cs | 10 +-
.../api/Support/OperatorType.TypeConverter.cs | 20 +-
.../generated/api/Support/OperatorType.cs | 10 +-
.../Support/ProvisioningState.Completer.cs | 2 +-
.../ProvisioningState.TypeConverter.cs | 22 +-
.../api/Support/ProvisioningState.cs | 12 +-
.../ProvisioningStateType.TypeConverter.cs | 20 +-
.../api/Support/ProvisioningStateType.cs | 10 +-
.../ResourceIdentityType.TypeConverter.cs | 20 +-
.../api/Support/ResourceIdentityType.cs | 10 +-
.../api/Support/ScopeType.Completer.cs | 39 +
.../api/Support/ScopeType.TypeConverter.cs | 59 +
.../generated/api/Support/ScopeType.cs | 98 +
.../api/Support/SourceKindType.Completer.cs | 39 +
.../Support/SourceKindType.TypeConverter.cs | 59 +
.../generated/api/Support/SourceKindType.cs | 98 +
...KubernetesConfigFluxOperationStatus_Get.cs | 465 ++++
...onfigFluxOperationStatus_GetViaIdentity.cs | 400 +++
.../GetAzKubernetesConfigurationFlux_Get.cs | 452 ++++
...rnetesConfigurationFlux_GetViaIdentity.cs} | 125 +-
.../GetAzKubernetesConfigurationFlux_List.cs | 459 ++++
.../GetAzKubernetesConfiguration_Get.cs | 70 +-
...zKubernetesConfiguration_GetViaIdentity.cs | 42 +-
.../GetAzKubernetesConfiguration_List.cs | 68 +-
.../cmdlets/GetAzKubernetesExtension_Get.cs | 64 +-
...GetAzKubernetesExtension_GetViaIdentity.cs | 42 +-
.../cmdlets/GetAzKubernetesExtension_List.cs | 62 +-
.../generated/cmdlets/GetAzOperation_List.cs | 40 +-
...ernetesConfigurationFlux_CreateExpanded.cs | 860 ++++++
...zKubernetesConfiguration_CreateExpanded.cs | 125 +-
...NewAzKubernetesExtension_CreateExpanded.cs | 117 +-
...oveAzKubernetesConfigurationFlux_Delete.cs | 577 ++++
...etesConfigurationFlux_DeleteViaIdentity.cs | 518 ++++
.../RemoveAzKubernetesConfiguration_Delete.cs | 54 +-
...bernetesConfiguration_DeleteViaIdentity.cs | 26 +-
.../RemoveAzKubernetesExtension_Delete.cs | 48 +-
...AzKubernetesExtension_DeleteViaIdentity.cs | 26 +-
...ernetesConfigurationFlux_UpdateExpanded.cs | 859 ++++++
...ernetesConfigurationFlux_UpdateExpanded.cs | 798 ++++++
...igurationFlux_UpdateViaIdentityExpanded.cs | 741 +++++
...ateAzKubernetesExtension_UpdateExpanded.cs | 111 +-
...etesExtension_UpdateViaIdentityExpanded.cs | 91 +-
.../runtime/AsyncOperationResponse.cs | 21 +-
.../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 2 +-
.../BuildTime/Models/PsHelpMarkdownOutputs.cs | 44 +-
.../runtime/BuildTime/Models/PsHelpTypes.cs | 3 +
.../BuildTime/Models/PsMarkdownTypes.cs | 21 +-
.../BuildTime/Models/PsProxyOutputs.cs | 96 +-
.../runtime/BuildTime/Models/PsProxyTypes.cs | 6 +-
.../Customizations/IJsonSerializable.cs | 20 +-
.../generated/runtime/EventDataExtensions.cs | 2 +-
.../generated/runtime/ISendAsync.cs | 10 +-
.../generated/runtime/MessageAttribute.cs | 2 +-
.../runtime/TypeConverterExtensions.cs | 41 +-
.../runtime/UndeclaredResponseException.cs | 5 +-
.../help/Az.KubernetesConfiguration.md | 15 +
...t-AzKubernetesConfigFluxOperationStatus.md | 204 ++
.../help/Get-AzKubernetesConfiguration.md | 41 +-
.../help/Get-AzKubernetesConfigurationFlux.md | 205 ++
.../help/Get-AzKubernetesExtension.md | 39 +-
.../help/New-AzKubernetesConfiguration.md | 54 +-
.../help/New-AzKubernetesConfigurationFlux.md | 594 ++++
.../help/New-AzKubernetesExtension.md | 45 +-
.../help/Remove-AzKubernetesConfiguration.md | 29 +-
.../Remove-AzKubernetesConfigurationFlux.md | 285 ++
.../help/Remove-AzKubernetesExtension.md | 19 +-
.../Update-AzKubernetesConfigurationFlux.md | 610 +++++
.../help/Update-AzKubernetesExtension.md | 28 +-
...-AzKubernetesConfigFluxOperationStatus.ps1 | 202 ++
.../Get-AzKubernetesConfiguration.ps1 | 51 +-
.../Get-AzKubernetesConfigurationFlux.ps1 | 209 ++
.../internal/Get-AzKubernetesExtension.ps1 | 49 +-
.../internal/Get-AzOperation.ps1 | 24 +-
.../New-AzKubernetesConfiguration.ps1 | 44 +-
.../New-AzKubernetesConfigurationFlux.ps1 | 349 +++
.../internal/New-AzKubernetesExtension.ps1 | 49 +-
.../internal/ProxyCmdletDefinitions.ps1 | 2378 ++++++++++++++---
.../internal/README.md | 4 +-
.../Remove-AzKubernetesConfiguration.ps1 | 35 +-
.../Remove-AzKubernetesConfigurationFlux.ps1 | 221 ++
.../internal/Remove-AzKubernetesExtension.ps1 | 30 +-
.../Set-AzKubernetesConfigurationFlux.ps1 | 333 +++
.../Update-AzKubernetesConfigurationFlux.ps1 | 354 +++
.../internal/Update-AzKubernetesExtension.ps1 | 44 +-
.../AzKubernetesConfiguration.Recording.json | 360 +--
.../test/AzKubernetesConfiguration.Tests.ps1 | 32 +-
...KubernetesConfigurationFlux.Recording.json | 1736 ++++++++++++
.../AzKubernetesConfigurationFlux.Tests.ps1 | 147 +
.../test/AzKubernetesExtension.Recording.json | 908 +++----
.../test/AzKubernetesExtension.Tests.ps1 | 36 +-
...ernetesConfigFluxOperationStatus.Tests.ps1 | 25 +
...et-AzKubernetesConfigurationFlux.Tests.ps1 | 29 +
...ew-AzKubernetesConfigurationFlux.Tests.ps1 | 21 +
...ve-AzKubernetesConfigurationFlux.Tests.ps1 | 25 +
...te-AzKubernetesConfigurationFlux.Tests.ps1 | 25 +
src/KubernetesConfiguration/test/env.json | 20 +-
src/KubernetesConfiguration/test/utils.ps1 | 61 +-
404 files changed, 43025 insertions(+), 7522 deletions(-)
create mode 100644 src/KubernetesConfiguration/custom/Get-AzKubernetesConfigFluxOperationStatus.ps1
create mode 100644 src/KubernetesConfiguration/custom/Get-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/custom/New-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/custom/Remove-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/custom/Update-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/examples/Get-AzKubernetesConfigFluxOperationStatus.md
create mode 100644 src/KubernetesConfiguration/examples/Get-AzKubernetesConfigurationFlux.md
create mode 100644 src/KubernetesConfiguration/examples/New-AzKubernetesConfigurationFlux.md
create mode 100644 src/KubernetesConfiguration/examples/Remove-AzKubernetesConfigurationFlux.md
create mode 100644 src/KubernetesConfiguration/examples/Update-AzKubernetesConfigurationFlux.md
create mode 100644 src/KubernetesConfiguration/exports/Get-AzKubernetesConfigFluxOperationStatus.ps1
create mode 100644 src/KubernetesConfiguration/exports/Get-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/exports/New-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/exports/Remove-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/exports/Update-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20/ErrorResponse.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20}/ErrorResponse.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/Api20/{ErrorResponseAutoGenerated.cs => ErrorResponse.cs} (78%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20}/ErrorResponse.json.cs (84%)
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20/ErrorResponseAutoGenerated.PowerShell.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210301/ErrorDefinition.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210301/ErrorResponse.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210301/ResourceProviderOperation.PowerShell.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210301/Result.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210301/SourceControlConfiguration.PowerShell.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210301/SourceControlConfigurationProperties.PowerShell.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210901/Extension.PowerShell.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210901/ExtensionProperties.PowerShell.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210901/OperationStatusResult.PowerShell.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210901/ResourceProviderOperationAutoGenerated.PowerShell.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210901/ResourceProviderOperationAutoGenerated.cs
delete mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20210901/ResourceProviderOperationListAutoGenerated.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/BucketDefinition.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301/Result.TypeConverter.cs => Api20220301/BucketDefinition.TypeConverter.cs} (71%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/BucketDefinition.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/BucketDefinition.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/BucketPatchDefinition.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20/ErrorResponseAutoGenerated.TypeConverter.cs => Api20220301/BucketPatchDefinition.TypeConverter.cs} (70%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/BucketPatchDefinition.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/BucketPatchDefinition.json.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ComplianceStatus.PowerShell.cs (59%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ComplianceStatus.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ComplianceStatus.cs (97%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ComplianceStatus.json.cs (93%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ConfigurationProtectedSettings.PowerShell.cs (90%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ConfigurationProtectedSettings.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ConfigurationProtectedSettings.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ConfigurationProtectedSettings.dictionary.cs (98%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ConfigurationProtectedSettings.json.cs (91%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/Extension.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/Extension.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/Extension.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/Extension.json.cs (92%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ExtensionProperties.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionProperties.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionProperties.cs (80%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionProperties.json.cs (85%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesAksAssignedIdentity.PowerShell.cs (67%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesAksAssignedIdentity.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesAksAssignedIdentity.cs (88%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesAksAssignedIdentity.json.cs (93%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationProtectedSettings.PowerShell.cs (89%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationProtectedSettings.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationProtectedSettings.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationProtectedSettings.dictionary.cs (98%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationProtectedSettings.json.cs (92%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationSettings.PowerShell.cs (89%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationSettings.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationSettings.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationSettings.dictionary.cs (98%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesConfigurationSettings.json.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesCustomLocationSettings.PowerShell.cs (89%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesCustomLocationSettings.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesCustomLocationSettings.cs (90%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesCustomLocationSettings.dictionary.cs (98%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionPropertiesCustomLocationSettings.json.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionStatus.PowerShell.cs (59%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionStatus.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionStatus.cs (98%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionStatus.json.cs (93%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionsList.PowerShell.cs (71%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionsList.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionsList.cs (86%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ExtensionsList.json.cs (91%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfiguration.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301/ErrorDefinition.TypeConverter.cs => Api20220301/FluxConfiguration.TypeConverter.cs} (71%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfiguration.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfiguration.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatch.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatch.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatch.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301/Result.json.cs => Api20220301/FluxConfigurationPatch.json.cs} (73%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchProperties.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchProperties.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchProperties.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchProperties.json.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301/ErrorDefinition.PowerShell.cs => Api20220301/FluxConfigurationPatchPropertiesConfigurationProtectedSettings.PowerShell.cs} (68%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchPropertiesConfigurationProtectedSettings.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchPropertiesConfigurationProtectedSettings.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchPropertiesConfigurationProtectedSettings.dictionary.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchPropertiesConfigurationProtectedSettings.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchPropertiesKustomizations.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchPropertiesKustomizations.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchPropertiesKustomizations.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchPropertiesKustomizations.dictionary.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPatchPropertiesKustomizations.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationProperties.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationProperties.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationProperties.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationProperties.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPropertiesConfigurationProtectedSettings.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPropertiesConfigurationProtectedSettings.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPropertiesConfigurationProtectedSettings.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPropertiesConfigurationProtectedSettings.dictionary.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20/ErrorResponseAutoGenerated.json.cs => Api20220301/FluxConfigurationPropertiesConfigurationProtectedSettings.json.cs} (69%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301/Result.PowerShell.cs => Api20220301/FluxConfigurationPropertiesKustomizations.PowerShell.cs} (70%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901/ResourceProviderOperationListAutoGenerated.TypeConverter.cs => Api20220301/FluxConfigurationPropertiesKustomizations.TypeConverter.cs} (68%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPropertiesKustomizations.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPropertiesKustomizations.dictionary.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationPropertiesKustomizations.json.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301/ErrorResponse.PowerShell.cs => Api20220301/FluxConfigurationsList.PowerShell.cs} (59%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationsList.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/FluxConfigurationsList.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901/ResourceProviderOperationListAutoGenerated.json.cs => Api20220301/FluxConfigurationsList.json.cs} (72%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/GitRepositoryDefinition.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/GitRepositoryDefinition.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/GitRepositoryDefinition.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/GitRepositoryDefinition.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/GitRepositoryPatchDefinition.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901/ResourceProviderOperationAutoGenerated.TypeConverter.cs => Api20220301/GitRepositoryPatchDefinition.TypeConverter.cs} (68%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/GitRepositoryPatchDefinition.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/GitRepositoryPatchDefinition.json.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/HelmOperatorProperties.PowerShell.cs (75%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/HelmOperatorProperties.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/HelmOperatorProperties.cs (96%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/HelmOperatorProperties.json.cs (92%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/HelmReleasePropertiesDefinition.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/HelmReleasePropertiesDefinition.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/HelmReleasePropertiesDefinition.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/HelmReleasePropertiesDefinition.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/KustomizationDefinition.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/KustomizationDefinition.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/KustomizationDefinition.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/KustomizationDefinition.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/KustomizationPatchDefinition.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/KustomizationPatchDefinition.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/KustomizationPatchDefinition.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/KustomizationPatchDefinition.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectReferenceDefinition.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectReferenceDefinition.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectReferenceDefinition.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301/ErrorDefinition.json.cs => Api20220301/ObjectReferenceDefinition.json.cs} (70%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectStatusConditionDefinition.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectStatusConditionDefinition.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectStatusConditionDefinition.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901/ResourceProviderOperationAutoGenerated.json.cs => Api20220301/ObjectStatusConditionDefinition.json.cs} (57%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectStatusDefinition.PowerShell.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectStatusDefinition.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectStatusDefinition.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectStatusDefinition.json.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusList.PowerShell.cs (70%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusList.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusList.cs (85%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusList.json.cs (91%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/OperationStatusResult.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusResult.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusResult.cs (90%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusResult.json.cs (88%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusResultProperties.PowerShell.cs (90%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusResultProperties.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusResultProperties.cs (90%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusResultProperties.dictionary.cs (98%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/OperationStatusResultProperties.json.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtension.PowerShell.cs (50%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtension.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtension.cs (84%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtension.json.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionProperties.PowerShell.cs (54%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionProperties.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionProperties.cs (90%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionProperties.json.cs (92%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationProtectedSettings.PowerShell.cs (89%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationProtectedSettings.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationProtectedSettings.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationProtectedSettings.dictionary.cs (98%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationProtectedSettings.json.cs (92%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationSettings.PowerShell.cs (89%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationSettings.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationSettings.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationSettings.dictionary.cs (98%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/PatchExtensionPropertiesConfigurationSettings.json.cs (92%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901/ResourceProviderOperationListAutoGenerated.PowerShell.cs => Api20220301/RepositoryRefDefinition.PowerShell.cs} (56%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/RepositoryRefDefinition.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/RepositoryRefDefinition.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/RepositoryRefDefinition.json.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/ResourceProviderOperation.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperation.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperation.cs (79%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperation.json.cs (85%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperationDisplay.PowerShell.cs (64%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperationDisplay.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperationDisplay.cs (97%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperationDisplay.json.cs (93%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperationList.PowerShell.cs (70%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperationList.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperationList.cs (87%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/ResourceProviderOperationList.json.cs (90%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/Scope.PowerShell.cs (60%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/Scope.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/Scope.cs (83%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/Scope.json.cs (90%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ScopeCluster.PowerShell.cs (81%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ScopeCluster.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ScopeCluster.cs (96%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ScopeCluster.json.cs (92%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ScopeNamespace.PowerShell.cs (81%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ScopeNamespace.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ScopeNamespace.cs (96%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210901 => Api20220301}/ScopeNamespace.json.cs (91%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/SourceControlConfiguration.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfiguration.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfiguration.cs (85%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfiguration.json.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfigurationList.PowerShell.cs (71%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfigurationList.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfigurationList.cs (86%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfigurationList.json.cs (91%)
create mode 100644 src/KubernetesConfiguration/generated/api/Models/Api20220301/SourceControlConfigurationProperties.PowerShell.cs
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfigurationProperties.TypeConverter.cs (82%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfigurationProperties.cs (91%)
rename src/KubernetesConfiguration/generated/api/Models/{Api20210301 => Api20220301}/SourceControlConfigurationProperties.json.cs (94%)
create mode 100644 src/KubernetesConfiguration/generated/api/Support/AksIdentityType.Completer.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/AksIdentityType.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/AksIdentityType.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/FluxComplianceState.Completer.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/FluxComplianceState.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/FluxComplianceState.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/KustomizationValidationType.Completer.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/KustomizationValidationType.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/KustomizationValidationType.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/ScopeType.Completer.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/ScopeType.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/ScopeType.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/SourceKindType.Completer.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/SourceKindType.TypeConverter.cs
create mode 100644 src/KubernetesConfiguration/generated/api/Support/SourceKindType.cs
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/GetAzKubernetesConfigFluxOperationStatus_Get.cs
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/GetAzKubernetesConfigFluxOperationStatus_GetViaIdentity.cs
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/GetAzKubernetesConfigurationFlux_Get.cs
rename src/KubernetesConfiguration/generated/cmdlets/{GetAzOperation_List1.cs => GetAzKubernetesConfigurationFlux_GetViaIdentity.cs} (78%)
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/GetAzKubernetesConfigurationFlux_List.cs
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/NewAzKubernetesConfigurationFlux_CreateExpanded.cs
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_Delete.cs
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/RemoveAzKubernetesConfigurationFlux_DeleteViaIdentity.cs
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/SetAzKubernetesConfigurationFlux_UpdateExpanded.cs
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateExpanded.cs
create mode 100644 src/KubernetesConfiguration/generated/cmdlets/UpdateAzKubernetesConfigurationFlux_UpdateViaIdentityExpanded.cs
create mode 100644 src/KubernetesConfiguration/help/Get-AzKubernetesConfigFluxOperationStatus.md
create mode 100644 src/KubernetesConfiguration/help/Get-AzKubernetesConfigurationFlux.md
create mode 100644 src/KubernetesConfiguration/help/New-AzKubernetesConfigurationFlux.md
create mode 100644 src/KubernetesConfiguration/help/Remove-AzKubernetesConfigurationFlux.md
create mode 100644 src/KubernetesConfiguration/help/Update-AzKubernetesConfigurationFlux.md
create mode 100644 src/KubernetesConfiguration/internal/Get-AzKubernetesConfigFluxOperationStatus.ps1
create mode 100644 src/KubernetesConfiguration/internal/Get-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/internal/New-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/internal/Remove-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/internal/Set-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/internal/Update-AzKubernetesConfigurationFlux.ps1
create mode 100644 src/KubernetesConfiguration/test/AzKubernetesConfigurationFlux.Recording.json
create mode 100644 src/KubernetesConfiguration/test/AzKubernetesConfigurationFlux.Tests.ps1
create mode 100644 src/KubernetesConfiguration/test/Get-AzKubernetesConfigFluxOperationStatus.Tests.ps1
create mode 100644 src/KubernetesConfiguration/test/Get-AzKubernetesConfigurationFlux.Tests.ps1
create mode 100644 src/KubernetesConfiguration/test/New-AzKubernetesConfigurationFlux.Tests.ps1
create mode 100644 src/KubernetesConfiguration/test/Remove-AzKubernetesConfigurationFlux.Tests.ps1
create mode 100644 src/KubernetesConfiguration/test/Update-AzKubernetesConfigurationFlux.Tests.ps1
diff --git a/src/KubernetesConfiguration/Az.KubernetesConfiguration.format.ps1xml b/src/KubernetesConfiguration/Az.KubernetesConfiguration.format.ps1xml
index 7a2c8869e4a7..7226323b693e 100644
--- a/src/KubernetesConfiguration/Az.KubernetesConfiguration.format.ps1xml
+++ b/src/KubernetesConfiguration/Az.KubernetesConfiguration.format.ps1xml
@@ -20,6 +20,9 @@
+
+
+
@@ -48,6 +51,9 @@
ExtensionName
+
+ FluxConfigurationName
+
OperationId
@@ -224,9 +230,175 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.Extension
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.BucketDefinition
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.BucketDefinition
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BucketName
+
+
+ Insecure
+
+
+ LocalAuthRef
+
+
+ SyncIntervalInSecond
+
+
+ TimeoutInSecond
+
+
+ Url
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.BucketPatchDefinition
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.BucketPatchDefinition
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BucketName
+
+
+ Insecure
+
+
+ LocalAuthRef
+
+
+ SyncIntervalInSecond
+
+
+ TimeoutInSecond
+
+
+ Url
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ComplianceStatus
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ComplianceStatus
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ComplianceState
+
+
+ LastConfigApplied
+
+
+ Message
+
+
+ MessageLevel
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ConfigurationProtectedSettings
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ConfigurationProtectedSettings
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.Extension
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.Extension
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.Extension
@@ -248,9 +420,6 @@
-
-
-
@@ -273,18 +442,15 @@
ReleaseTrain
-
- ResourceGroupName
-
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionProperties
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionProperties
@@ -294,6 +460,9 @@
+
+
+
@@ -316,6 +485,9 @@
ExtensionType
+
+ InstalledVersion
+
PackageUri
@@ -334,9 +506,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionPropertiesAksAssignedIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionPropertiesAksAssignedIdentity
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionPropertiesAksAssignedIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionPropertiesAksAssignedIdentity
@@ -362,9 +534,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionPropertiesConfigurationProtectedSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionPropertiesConfigurationProtectedSettings
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionPropertiesConfigurationProtectedSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionPropertiesConfigurationProtectedSettings
@@ -384,9 +556,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionPropertiesConfigurationSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionPropertiesConfigurationSettings
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionPropertiesConfigurationSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionPropertiesConfigurationSettings
@@ -406,9 +578,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionPropertiesCustomLocationSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionPropertiesCustomLocationSettings
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionPropertiesCustomLocationSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionPropertiesCustomLocationSettings
@@ -428,9 +600,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionsList
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionsList
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionsList
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionsList
@@ -450,9 +622,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionStatus
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionStatus
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ExtensionStatus
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ExtensionStatus
@@ -496,21 +668,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.OperationStatusList
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.OperationStatusList
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfiguration
-
+
+
+
+
- NextLink
+ Name
+
+
+ ResourceGroupName
@@ -518,33 +696,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.OperationStatusResult
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationPatchProperties
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.OperationStatusResult
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationPatchProperties
-
-
-
-
+
-
+
- Name
-
-
- ResourceGroupName
+ SourceKind
- Status
+ Suspend
@@ -552,9 +724,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.OperationStatusResultProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationPatchPropertiesConfigurationProtectedSettings
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.OperationStatusResultProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationPatchPropertiesConfigurationProtectedSettings
@@ -574,33 +746,81 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.PatchExtensionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationProperties
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.PatchExtensionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationProperties
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- AutoUpgradeMinorVersion
+ ComplianceState
- ReleaseTrain
+ ErrorMessage
- Version
+ Namespace
+
+
+ ProvisioningState
+
+
+ RepositoryPublicKey
+
+
+ Scope
+
+
+ SourceKind
+
+
+ SourceSyncedCommitId
+
+
+ SourceUpdatedAt
+
+
+ StatusUpdatedAt
+
+
+ Suspend
@@ -608,9 +828,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.PatchExtensionPropertiesConfigurationProtectedSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationPropertiesConfigurationProtectedSettings
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.PatchExtensionPropertiesConfigurationProtectedSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationPropertiesConfigurationProtectedSettings
@@ -630,21 +850,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.PatchExtensionPropertiesConfigurationSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationsList
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.PatchExtensionPropertiesConfigurationSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.FluxConfigurationsList
-
+
- Item
+ NextLink
@@ -652,33 +872,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ResourceProviderOperationAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.GitRepositoryDefinition
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ResourceProviderOperationAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.GitRepositoryDefinition
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
- IsDataAction
+ HttpsCaCert
- Name
+ HttpsUser
- Origin
+ LocalAuthRef
+
+
+ SshKnownHost
+
+
+ SyncIntervalInSecond
+
+
+ TimeoutInSecond
+
+
+ Url
@@ -686,43 +930,85 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ResourceProviderOperationListAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.GitRepositoryPatchDefinition
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ResourceProviderOperationListAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.GitRepositoryPatchDefinition
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- NextLink
+ HttpsCaCert
-
-
-
-
+
+ HttpsUser
+
+
+ LocalAuthRef
+
+
+ SshKnownHost
+
+
+ SyncIntervalInSecond
+
+
+ TimeoutInSecond
+
+
+ Url
+
+
+
+
+
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ScopeCluster
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.HelmOperatorProperties
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ScopeCluster
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.HelmOperatorProperties
-
+
+
+
+
- ReleaseNamespace
+ ChartValue
+
+
+ ChartVersion
@@ -730,21 +1016,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ScopeNamespace
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.HelmReleasePropertiesDefinition
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.ScopeNamespace
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.HelmReleasePropertiesDefinition
-
+
+
+
+
+
+
+
+
+
+
- TargetNamespace
+ FailureCount
+
+
+ InstallFailureCount
+
+
+ LastRevisionApplied
+
+
+ UpgradeFailureCount
@@ -752,23 +1056,213 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ComplianceStatus
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.KustomizationDefinition
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ComplianceStatus
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.KustomizationDefinition
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DependsOn
+
+
+ Force
+
+
+ Name
+
+
+ Path
+
+
+ Prune
+
+
+ RetryIntervalInSecond
+
+
+ SyncIntervalInSecond
+
+
+ TimeoutInSecond
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.KustomizationPatchDefinition
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.KustomizationPatchDefinition
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DependsOn
+
+
+ Force
+
+
+ Path
+
+
+ Prune
+
+
+ RetryIntervalInSecond
+
+
+ SyncIntervalInSecond
+
+
+ TimeoutInSecond
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ObjectReferenceDefinition
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ObjectReferenceDefinition
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Namespace
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ObjectStatusConditionDefinition
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ObjectStatusConditionDefinition
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+ LastTransitionTime
+
+
+ Message
+
+
+ Reason
+
+
+ Status
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ObjectStatusDefinition
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ObjectStatusDefinition
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -778,13 +1272,13 @@
ComplianceState
- LastConfigApplied
+ Kind
- Message
+ Name
- MessageLevel
+ Namespace
@@ -792,9 +1286,65 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ConfigurationProtectedSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.OperationStatusList
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ConfigurationProtectedSettings
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.OperationStatusList
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.OperationStatusResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.OperationStatusResult
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ Status
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.OperationStatusResultProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.OperationStatusResultProperties
@@ -814,27 +1364,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ErrorDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.PatchExtensionProperties
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ErrorDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.PatchExtensionProperties
-
+
-
+
+
+
+
- Code
+ AutoUpgradeMinorVersion
- Message
+ ReleaseTrain
+
+
+ Version
@@ -842,27 +1398,83 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.HelmOperatorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.PatchExtensionPropertiesConfigurationProtectedSettings
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.HelmOperatorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.PatchExtensionPropertiesConfigurationProtectedSettings
-
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.PatchExtensionPropertiesConfigurationSettings
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.PatchExtensionPropertiesConfigurationSettings
+
+
+
-
+
- ChartValue
+ Item
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.RepositoryRefDefinition
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.RepositoryRefDefinition
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- ChartVersion
+ Branch
+
+
+ Commit
+
+
+ Semver
+
+
+ Tag
@@ -870,9 +1482,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ResourceProviderOperation
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ResourceProviderOperation
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ResourceProviderOperation
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ResourceProviderOperation
@@ -882,6 +1494,9 @@
+
+
+
@@ -892,15 +1507,18 @@
Name
+
+ Origin
+
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ResourceProviderOperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ResourceProviderOperationDisplay
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ResourceProviderOperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ResourceProviderOperationDisplay
@@ -938,9 +1556,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ResourceProviderOperationList
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ResourceProviderOperationList
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ResourceProviderOperationList
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ResourceProviderOperationList
@@ -960,21 +1578,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.Result
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ScopeCluster
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.Result
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ScopeCluster
-
+
- SampleProperty
+ ReleaseNamespace
@@ -982,15 +1600,40 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.SourceControlConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ScopeNamespace
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.SourceControlConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ScopeNamespace
+
+
+
+
+
+
+
+
+
+
+
+ TargetNamespace
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.SourceControlConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.SourceControlConfiguration
+
+
+
@@ -1001,6 +1644,9 @@
Name
+
+ RepositoryUrl
+
ResourceGroupName
@@ -1010,9 +1656,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.SourceControlConfigurationList
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.SourceControlConfigurationList
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.SourceControlConfigurationList
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.SourceControlConfigurationList
@@ -1032,9 +1678,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.SourceControlConfigurationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.SourceControlConfigurationProperties
- Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.SourceControlConfigurationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.SourceControlConfigurationProperties
diff --git a/src/KubernetesConfiguration/Az.KubernetesConfiguration.psd1 b/src/KubernetesConfiguration/Az.KubernetesConfiguration.psd1
index 80218648d2cb..85b5c22e451f 100644
--- a/src/KubernetesConfiguration/Az.KubernetesConfiguration.psd1
+++ b/src/KubernetesConfiguration/Az.KubernetesConfiguration.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 10/28/2021
+# Generated on: 5/24/2022
#
@{
@@ -69,9 +69,15 @@ FormatsToProcess = './Az.KubernetesConfiguration.format.ps1xml'
# NestedModules = @()
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
-FunctionsToExport = 'Get-AzKubernetesConfiguration', 'Get-AzKubernetesExtension',
- 'New-AzKubernetesConfiguration', 'New-AzKubernetesExtension',
- 'Remove-AzKubernetesConfiguration', 'Remove-AzKubernetesExtension',
+FunctionsToExport = 'Get-AzKubernetesConfigFluxOperationStatus',
+ 'Get-AzKubernetesConfiguration',
+ 'Get-AzKubernetesConfigurationFlux', 'Get-AzKubernetesExtension',
+ 'New-AzKubernetesConfiguration',
+ 'New-AzKubernetesConfigurationFlux', 'New-AzKubernetesExtension',
+ 'Remove-AzKubernetesConfiguration',
+ 'Remove-AzKubernetesConfigurationFlux',
+ 'Remove-AzKubernetesExtension',
+ 'Update-AzKubernetesConfigurationFlux',
'Update-AzKubernetesExtension'
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
@@ -81,10 +87,12 @@ CmdletsToExport = @()
# VariablesToExport = @()
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
-AliasesToExport = 'Get-AzK8sConfiguration', 'Get-AzK8sExtension',
- 'New-AzK8sConfiguration', 'New-AzK8sExtension',
- 'Remove-AzK8sConfiguration', 'Remove-AzK8sExtension',
- 'Update-AzK8sExtension'
+AliasesToExport = 'Get-AzK8sConfigFluxOperationStatus', 'Get-AzK8sConfiguration',
+ 'Get-AzK8sConfigurationFlux', 'Get-AzK8sExtension',
+ 'New-AzK8sConfiguration', 'New-AzK8sConfigurationFlux',
+ 'New-AzK8sExtension', 'Remove-AzK8sConfiguration',
+ 'Remove-AzK8sConfigurationFlux', 'Remove-AzK8sExtension',
+ 'Update-AzK8sConfigurationFlux', 'Update-AzK8sExtension', '*'
# DSC resources to export from this module
# DscResourcesToExport = @()
@@ -113,8 +121,7 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* Onboarded cmdlets ''New/Update/Get/Remove-AzKubernetesExtension'' and ''New/Get/Remove-AzKubernetesConfiguration''
-* Removed the plural form of parameter HelmOperatorChartValues, OperatorParameters and SshKnownHosts in ''New-AzKubernetesConfiguration'''
+ # ReleaseNotes = ''
# Prerelease string of this module
# Prerelease = ''
diff --git a/src/KubernetesConfiguration/Az.KubernetesConfiguration.psm1 b/src/KubernetesConfiguration/Az.KubernetesConfiguration.psm1
index ec935c630a9c..77fd70d19941 100644
--- a/src/KubernetesConfiguration/Az.KubernetesConfiguration.psm1
+++ b/src/KubernetesConfiguration/Az.KubernetesConfiguration.psm1
@@ -25,17 +25,17 @@
}
}
if(-not $accountsModule) {
- $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
if($hasAdequateVersion) {
- $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
}
}
}
if(-not $accountsModule) {
- Write-Error "`nThis module requires $accountsName version 2.2.3 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.2.3') -and (-not $localAccounts)) {
- Write-Error "`nThis module requires $accountsName version 2.2.3 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
+ 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
}
Write-Information "Loaded Module '$($accountsModule.Name)'"
@@ -50,6 +50,10 @@
# Tweaks the pipeline on module load
$instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Following two delegates are added for telemetry
+ $instance.GetTelemetryId = $VTable.GetTelemetryId
+ $instance.Telemetry = $VTable.Telemetry
# Tweaks the pipeline per call
diff --git a/src/KubernetesConfiguration/KubernetesConfiguration.sln b/src/KubernetesConfiguration/KubernetesConfiguration.sln
index 3bf639f440c2..15b8c681626d 100644
--- a/src/KubernetesConfiguration/KubernetesConfiguration.sln
+++ b/src/KubernetesConfiguration/KubernetesConfiguration.sln
@@ -1,19 +1,19 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
-VisualStudioVersion = 16.6.30114.105
+VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{3093A1F1-31CD-4563-BE4B-B17AA4207692}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{01EC8459-C884-4814-9ED9-5D75243A0CC1}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{FDA487AC-B414-46A5-B7EC-F3B7C93E3981}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{9D93BC23-8AF2-4365-9C42-5394C6EA9869}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{91C85ED2-BFCD-4726-B20E-37B43B28029A}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{968C92F4-7A13-4E28-8997-538F2F54823B}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{F407D801-EE25-4226-906D-FEFF527BAA27}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.KubernetesConfiguration", "Az.KubernetesConfiguration.csproj", "{59382982-6677-4EEC-8AF4-141B3BDA3DBA}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.KubernetesConfiguration", "Az.KubernetesConfiguration.csproj", "{45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -28,77 +28,77 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|x64.ActiveCfg = Debug|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|x64.Build.0 = Debug|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|x86.ActiveCfg = Debug|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|x86.Build.0 = Debug|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|Any CPU.Build.0 = Release|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|x64.ActiveCfg = Release|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|x64.Build.0 = Release|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|x86.ActiveCfg = Release|Any CPU
- {3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|x86.Build.0 = Release|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|x64.ActiveCfg = Debug|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|x64.Build.0 = Debug|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|x86.ActiveCfg = Debug|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|x86.Build.0 = Debug|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|Any CPU.Build.0 = Release|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|x64.ActiveCfg = Release|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|x64.Build.0 = Release|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|x86.ActiveCfg = Release|Any CPU
- {8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|x86.Build.0 = Release|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|x64.ActiveCfg = Debug|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|x64.Build.0 = Debug|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|x86.ActiveCfg = Debug|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|x86.Build.0 = Debug|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|Any CPU.Build.0 = Release|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|x64.ActiveCfg = Release|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|x64.Build.0 = Release|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|x86.ActiveCfg = Release|Any CPU
- {9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|x86.Build.0 = Release|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|x64.ActiveCfg = Debug|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|x64.Build.0 = Debug|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|x86.ActiveCfg = Debug|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|x86.Build.0 = Debug|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Release|Any CPU.Build.0 = Release|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Release|x64.ActiveCfg = Release|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Release|x64.Build.0 = Release|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Release|x86.ActiveCfg = Release|Any CPU
- {968C92F4-7A13-4E28-8997-538F2F54823B}.Release|x86.Build.0 = Release|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|x64.ActiveCfg = Debug|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|x64.Build.0 = Debug|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|x86.ActiveCfg = Debug|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|x86.Build.0 = Debug|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|Any CPU.Build.0 = Release|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|x64.ActiveCfg = Release|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|x64.Build.0 = Release|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|x86.ActiveCfg = Release|Any CPU
- {2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|x86.Build.0 = Release|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|x64.ActiveCfg = Debug|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|x64.Build.0 = Debug|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|x86.ActiveCfg = Debug|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|x86.Build.0 = Debug|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|Any CPU.Build.0 = Release|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|x64.ActiveCfg = Release|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|x64.Build.0 = Release|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|x86.ActiveCfg = Release|Any CPU
- {59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|x86.Build.0 = Release|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Debug|x64.Build.0 = Debug|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Debug|x86.Build.0 = Debug|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Release|x64.ActiveCfg = Release|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Release|x64.Build.0 = Release|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Release|x86.ActiveCfg = Release|Any CPU
+ {01EC8459-C884-4814-9ED9-5D75243A0CC1}.Release|x86.Build.0 = Release|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Debug|x64.Build.0 = Debug|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Debug|x86.Build.0 = Debug|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Release|x64.ActiveCfg = Release|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Release|x64.Build.0 = Release|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Release|x86.ActiveCfg = Release|Any CPU
+ {FDA487AC-B414-46A5-B7EC-F3B7C93E3981}.Release|x86.Build.0 = Release|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Debug|x64.Build.0 = Debug|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Debug|x86.Build.0 = Debug|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Release|x64.ActiveCfg = Release|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Release|x64.Build.0 = Release|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Release|x86.ActiveCfg = Release|Any CPU
+ {91C85ED2-BFCD-4726-B20E-37B43B28029A}.Release|x86.Build.0 = Release|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Debug|x64.Build.0 = Debug|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Debug|x86.Build.0 = Debug|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Release|x64.ActiveCfg = Release|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Release|x64.Build.0 = Release|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Release|x86.ActiveCfg = Release|Any CPU
+ {2EA2CC75-3977-460E-8031-D7F6B7FFB0D8}.Release|x86.Build.0 = Release|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Debug|x64.Build.0 = Debug|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Debug|x86.Build.0 = Debug|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Release|x64.ActiveCfg = Release|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Release|x64.Build.0 = Release|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Release|x86.ActiveCfg = Release|Any CPU
+ {F407D801-EE25-4226-906D-FEFF527BAA27}.Release|x86.Build.0 = Release|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Debug|x64.Build.0 = Debug|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Debug|x86.Build.0 = Debug|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Release|Any CPU.Build.0 = Release|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Release|x64.ActiveCfg = Release|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Release|x64.Build.0 = Release|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Release|x86.ActiveCfg = Release|Any CPU
+ {45ADFE07-E812-4F95-855B-B2F0DF0CF4E0}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
diff --git a/src/KubernetesConfiguration/README.md b/src/KubernetesConfiguration/README.md
index 94d0c9bb5823..7420adc435e6 100644
--- a/src/KubernetesConfiguration/README.md
+++ b/src/KubernetesConfiguration/README.md
@@ -17,7 +17,7 @@ This directory contains the PowerShell module for the KubernetesConfiguration se
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
## Module Requirements
-- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater
+- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
## Authentication
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
@@ -47,15 +47,17 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest
``` yaml
-branch: fa0a95854a551be7fdb04367e2e7b6500ab2e341
+branch: 791255f0c5dd775015cd51f3e642549190fb3803
require:
- $(this-folder)/../readme.azure.noprofile.md
input-file:
- - $(repo)/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-03-01/kubernetesconfiguration.json
- - $(repo)/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-09-01/extensions.json
+ - $(repo)/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/extensions.json
+ - $(repo)/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/fluxconfiguration.json
+ - $(repo)/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/operations.json
+ - $(repo)/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/kubernetesconfiguration.json
title: KubernetesConfiguration
-module-version: 0.1.0
+module-version: 0.2.0
subject-prefix: ''
identity-correction-for-post: true
@@ -73,6 +75,12 @@ directive:
"$ref": "#/definitions/Extension"
}
},
+ "201": {
+ "description": "Request received successfully.",
+ "schema": {
+ "$ref": "#/definitions/Extension"
+ }
+ },
"202": {
"description": "Request received successfully, and the resource will be updated asynchronously.",
"schema": {
@@ -83,27 +91,101 @@ directive:
"description": "Conflict",
"x-ms-error-response": true,
"schema": {
- "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/fa0a95854a551be7fdb04367e2e7b6500ab2e341/specification/common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/791255f0c5dd775015cd51f3e642549190fb3803/specification/common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
- "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/fa0a95854a551be7fdb04367e2e7b6500ab2e341/specification/common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/791255f0c5dd775015cd51f3e642549190fb3803/specification/common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
- from: swagger-document
- where: $.definitions.Extension.properties.properties.properties.statuses
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}"].put.responses
transform: >-
return {
- "description": "Status from this extension.",
- "type": "array",
- "readOnly": true,
- "x-nullable": true,
- "items": {
- "$ref": "#/definitions/ExtensionStatus"
+ "200": {
+ "description": "Request received successfully for an existing resource.",
+ "schema": {
+ "$ref": "#/definitions/FluxConfiguration"
}
+ },
+ "201": {
+ "description": "Request received successfully.",
+ "schema": {
+ "$ref": "#/definitions/FluxConfiguration"
+ }
+ },
+ "400": {
+ "description": "Conflict",
+ "x-ms-error-response": true,
+ "schema": {
+ "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/791255f0c5dd775015cd51f3e642549190fb3803/specification/common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/791255f0c5dd775015cd51f3e642549190fb3803/specification/common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}"].patch.responses
+ transform: >-
+ return {
+ "200": {
+ "description": "Request received successfully for an existing resource.",
+ "schema": {
+ "$ref": "#/definitions/FluxConfiguration"
+ }
+ },
+ "202": {
+ "description": "Request received successfully, and the resource will be updated asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/FluxConfiguration"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/791255f0c5dd775015cd51f3e642549190fb3803/specification/common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ - from: swagger-document
+ where: $.definitions.Extension.properties.properties.properties.statuses
+ transform: >-
+ return {
+ "description": "Status from this extension.",
+ "type": "array",
+ "readOnly": true,
+ "x-nullable": true,
+ "items": {
+ "$ref": "#/definitions/ExtensionStatus"
+ },
+ "x-ms-identifiers": []
+ }
+ - from: swagger-document
+ where: $.definitions.BucketDefinition.properties.accessKey
+ transform: >-
+ return {
+ "description": "Plaintext access key used to securely access the S3 bucket",
+ "type": "string",
+ "format": "password",
+ "x-ms-secret": true,
+ "x-nullable": true
+ }
+ - from: swagger-document
+ where: $.definitions.BucketPatchDefinition.properties.accessKey
+ transform: >-
+ return {
+ "description": "Plaintext access key used to securely access the S3 bucket",
+ "type": "string",
+ "format": "password",
+ "x-ms-secret": true,
+ "x-nullable": true
}
- from: swagger-document
where: $.definitions.EnableHelmOperatorDefinition.type
@@ -115,6 +197,14 @@ directive:
subject: SourceControlConfiguration
set:
subject: KubernetesConfiguration
+ - where:
+ subject: FluxConfiguration
+ set:
+ subject: KubernetesConfigurationFlux
+ - where:
+ subject: FluxConfigOperationStatus
+ set:
+ subject: KubernetesConfigFluxOperationStatus
- where:
parameter-name: ClusterResourceName
set:
@@ -165,6 +255,12 @@ directive:
- where:
subject: KubernetesExtension
hide: true
+ - where:
+ subject: KubernetesConfigurationFlux
+ hide: true
+ - where:
+ subject: KubernetesConfigFluxOperationStatus
+ hide: true
- where:
verb: Get
subject: KubernetesExtension
@@ -200,6 +296,31 @@ directive:
subject: KubernetesConfiguration
set:
alias: Remove-AzK8sConfiguration
+ - where:
+ verb: New
+ subject: KubernetesConfigurationFlux
+ set:
+ alias: New-AzK8sConfigurationFlux
+ - where:
+ verb: Get
+ subject: KubernetesConfigurationFlux
+ set:
+ alias: Get-AzK8sConfigurationFlux
+ - where:
+ verb: Remove
+ subject: KubernetesConfigurationFlux
+ set:
+ alias: Remove-AzK8sConfigurationFlux
+ - where:
+ verb: Update
+ subject: KubernetesConfigurationFlux
+ set:
+ alias: Update-AzK8sConfigurationFlux
+ - where:
+ verb: Get
+ subject: KubernetesConfigFluxOperationStatus
+ set:
+ alias: Get-AzK8sConfigFluxOperationStatus
- where:
model-name: Extension
set:
@@ -211,4 +332,12 @@ directive:
- ProvisioningState
- AutoUpgradeMinorVersion
- ReleaseTrain
+ - where:
+ model-name: SourceControlConfiguration
+ set:
+ format-table:
+ properties:
+ - Name
+ - RepositoryUrl
+ - ResourceGroupName
```
diff --git a/src/KubernetesConfiguration/check-dependencies.ps1 b/src/KubernetesConfiguration/check-dependencies.ps1
index b02ae9135957..c29591c7bfe1 100644
--- a/src/KubernetesConfiguration/check-dependencies.ps1
+++ b/src/KubernetesConfiguration/check-dependencies.ps1
@@ -25,7 +25,7 @@ if(-not $Isolated) {
function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
if($predicate) {
$module = Get-Module -ListAvailable -Name $moduleName
- if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) {
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
$null = New-Item -ItemType Directory -Force -Path $path
Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
if ($requiredVersion) {
@@ -47,7 +47,7 @@ if(Test-Path -Path $localModulesPath) {
$env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
}
-DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3'
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
$tools = Join-Path $PSScriptRoot 'tools'
diff --git a/src/KubernetesConfiguration/create-model-cmdlets.ps1 b/src/KubernetesConfiguration/create-model-cmdlets.ps1
index 39c6a1e7a3e5..04c639459581 100644
--- a/src/KubernetesConfiguration/create-model-cmdlets.ps1
+++ b/src/KubernetesConfiguration/create-model-cmdlets.ps1
@@ -23,7 +23,7 @@ function CreateModelCmdlet {
}
$ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
- $ModuleName = 'Az.KubernetesConfiguration'.Split(".")[1]
+ $ModuleName = ''
$OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
$null = New-Item -ItemType Directory -Force -Path $OutputDir
@@ -112,13 +112,22 @@ function CreateModelCmdlet {
$ParameterDefinePropertyList.Add("HelpMessage=`"${Description}.`"")
}
$ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList)
+ # check whether completer is needed
+ $completer = '';
+ if($Type.Split('.').Split('.')[-2] -eq 'Support') {
+ # If Type is an array, need to strip []
+ $strippedType = $Type.Replace('[]', '')
+ $completer += "`n [ArgumentCompleter([${strippedType}])]"
+ }
$ParameterDefineScript = "
- [Parameter($ParameterDefineProperty)]
+ [Parameter($ParameterDefineProperty)]${completer}
[${Type}]
`$${Identifier}"
$ParameterDefineScriptList.Add($ParameterDefineScript)
$ParameterAssignScriptList.Add("
- `$Object.${Identifier} = `$${Identifier}")
+ if (`$PSBoundParameters.ContainsKey('${Identifier}')) {
+ `$Object.${Identifier} = `$${Identifier}
+ }")
}
}
$ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator ","
@@ -142,9 +151,9 @@ function CreateModelCmdlet {
<#
.Synopsis
-Create a in-memory object for ${ObjectType}
+Create an in-memory object for ${ObjectType}.
.Description
-Create a in-memory object for ${ObjectType}
+Create an in-memory object for ${ObjectType}.
.Outputs
${ObjectTypeWithNamespace}
@@ -167,4 +176,4 @@ ${ParameterAssignScript}
"
Set-Content -Path $OutputPath -Value $Script
}
-}
\ No newline at end of file
+}
diff --git a/src/KubernetesConfiguration/custom/Get-AzKubernetesConfigFluxOperationStatus.ps1 b/src/KubernetesConfiguration/custom/Get-AzKubernetesConfigFluxOperationStatus.ps1
new file mode 100644
index 000000000000..4b287e133644
--- /dev/null
+++ b/src/KubernetesConfiguration/custom/Get-AzKubernetesConfigFluxOperationStatus.ps1
@@ -0,0 +1,164 @@
+
+# ----------------------------------------------------------------------------------
+# 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 Async Operation status
+.Description
+Get Async Operation status
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IOperationStatusResult
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfigfluxoperationstatus
+#>
+function Get-AzKubernetesConfigFluxOperationStatus {
+ [Alias('Get-AzK8sConfigFluxOperationStatus')]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IOperationStatusResult])]
+ [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+ param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [ValidateSet('ConnectedClusters', 'ManagedClusters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${FluxConfigurationName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # operation Id
+ ${OperationId},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ if ($ClusterType -eq 'ManagedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
+ }
+ elseif ($ClusterType -eq 'ConnectedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
+ }
+
+ Az.KubernetesConfiguration.internal\Get-AzKubernetesConfigFluxOperationStatus @PSBoundParameters
+ }
+}
diff --git a/src/KubernetesConfiguration/custom/Get-AzKubernetesConfiguration.ps1 b/src/KubernetesConfiguration/custom/Get-AzKubernetesConfiguration.ps1
index 3c5f009d0d0c..c80d4299266e 100644
--- a/src/KubernetesConfiguration/custom/Get-AzKubernetesConfiguration.ps1
+++ b/src/KubernetesConfiguration/custom/Get-AzKubernetesConfiguration.ps1
@@ -1,9 +1,17 @@
# ----------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# Code generated by Microsoft (R) AutoRest Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# 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.
# ----------------------------------------------------------------------------------
<#
@@ -12,18 +20,23 @@ Gets details of the Source Control Configuration.
.Description
Gets details of the Source Control Configuration.
.Example
-PS C:\> {{ Add code here }}
+PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -ClusterType ConnectedClusters
-{{ Add output here }}
+Name Type
+---- ----
+azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+azpstestk8s02 Microsoft.KubernetesConfiguration/sourceControlConfigurations
.Example
-PS C:\> {{ Add code here }}
+PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azpstestk8s01
-{{ Add output here }}
+Name Type
+---- ----
+azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -31,22 +44,23 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
[ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
[Id ]: Resource identity path
[OperationId ]: operation Id
- [ResourceGroupName ]: The name of the resource group.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SourceControlConfigurationName ]: Name of the Source Control Configuration.
- [SubscriptionId ]: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfiguration
#>
function Get-AzKubernetesConfiguration {
- [Alias('Get-AzK8sConfiguration')]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration])]
- [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
- param(
+ [Alias('Get-AzK8sConfiguration')]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration])]
+ [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+ param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
@@ -56,9 +70,11 @@ function Get-AzKubernetesConfiguration {
[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='List', Mandatory)]
+ [ValidateSet('ConnectedClusters', 'ManagedClusters')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -73,6 +89,7 @@ function Get-AzKubernetesConfiguration {
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
[Parameter(ParameterSetName='Get')]
@@ -80,9 +97,7 @@ function Get-AzKubernetesConfiguration {
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
@@ -141,19 +156,13 @@ function Get-AzKubernetesConfiguration {
)
process {
- if ($PSBoundParameters.ContainsKey('ClusterType')) {
- if ($ClusterType -eq 'ManagedClusters') {
- $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
- }
- elseif ($ClusterType -eq 'ConnectedClusters') {
- $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
- }
- }
- else {
- $PSBoundParameters.Add('ClusterType', 'ConnectedClusters')
- $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
- }
+ if ($ClusterType -eq 'ManagedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
+ }
+ elseif ($ClusterType -eq 'ConnectedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
+ }
Az.KubernetesConfiguration.internal\Get-AzKubernetesConfiguration @PSBoundParameters
}
-}
+}
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/custom/Get-AzKubernetesConfigurationFlux.ps1 b/src/KubernetesConfiguration/custom/Get-AzKubernetesConfigurationFlux.ps1
new file mode 100644
index 000000000000..b72c6340a055
--- /dev/null
+++ b/src/KubernetesConfiguration/custom/Get-AzKubernetesConfigurationFlux.ps1
@@ -0,0 +1,163 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Gets details of the Flux Configuration.
+.Description
+Gets details of the Flux Configuration.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfigurationflux
+#>
+function Get-AzKubernetesConfigurationFlux {
+ [Alias('Get-AzK8sConfigurationFlux')]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration])]
+ [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+ param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [ValidateSet('ConnectedClusters', 'ManagedClusters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('FluxConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ if ($ClusterType -eq 'ManagedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
+ }
+ elseif ($ClusterType -eq 'ConnectedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
+ }
+
+ Az.KubernetesConfiguration.internal\Get-AzKubernetesConfigurationFlux @PSBoundParameters
+ }
+}
diff --git a/src/KubernetesConfiguration/custom/Get-AzKubernetesExtension.ps1 b/src/KubernetesConfiguration/custom/Get-AzKubernetesExtension.ps1
index 9f02434e7e45..a881775c910f 100644
--- a/src/KubernetesConfiguration/custom/Get-AzKubernetesExtension.ps1
+++ b/src/KubernetesConfiguration/custom/Get-AzKubernetesExtension.ps1
@@ -1,7 +1,6 @@
# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
+# 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
@@ -11,6 +10,8 @@
# 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.
# ----------------------------------------------------------------------------------
<#
@@ -19,18 +20,22 @@ Gets Kubernetes Cluster Extension.
.Description
Gets Kubernetes Cluster Extension.
.Example
-PS C:\> {{ Add code here }}
+PS C:\> Get-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group
-{{ Add output here }}
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
+---- ------------- ------- ----------------- ----------------------- ------------ -----------------
+azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
.Example
-PS C:\> {{ Add code here }}
+PS C:\> Get-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -ResourceGroupName azps_test_group
-{{ Add output here }}
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
+---- ------------- ------- ----------------- ----------------------- ------------ -----------------
+azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -38,63 +43,63 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
[ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
[Id ]: Resource identity path
[OperationId ]: operation Id
- [ResourceGroupName ]: The name of the resource group.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SourceControlConfigurationName ]: Name of the Source Control Configuration.
- [SubscriptionId ]: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesextension
#>
function Get-AzKubernetesExtension {
[Alias('Get-AzK8sExtension')]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension])]
- [CmdletBinding(DefaultParameterSetName = 'List', PositionalBinding = $false)]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension])]
+ [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(ParameterSetName = 'Get', Mandatory)]
- [Parameter(ParameterSetName = 'List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the kubernetes cluster.
${ClusterName},
- [Parameter(ParameterSetName = 'Get', Mandatory)]
- [Parameter(ParameterSetName = 'List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[ValidateSet('ConnectedClusters', 'ManagedClusters')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
- [Parameter(ParameterSetName = 'Get', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
[Alias('ExtensionName')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# Name of the Extension.
${Name},
- [Parameter(ParameterSetName = 'Get', Mandatory)]
- [Parameter(ParameterSetName = 'List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName = 'Get')]
- [Parameter(ParameterSetName = 'List')]
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
- [Parameter(ParameterSetName = 'GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
# Identity Parameter
@@ -159,4 +164,4 @@ function Get-AzKubernetesExtension {
Az.KubernetesConfiguration.internal\Get-AzKubernetesExtension @PSBoundParameters
}
-}
+}
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/custom/New-AzKubernetesConfiguration.ps1 b/src/KubernetesConfiguration/custom/New-AzKubernetesConfiguration.ps1
index 4c0e701096e2..e32e227d18a0 100644
--- a/src/KubernetesConfiguration/custom/New-AzKubernetesConfiguration.ps1
+++ b/src/KubernetesConfiguration/custom/New-AzKubernetesConfiguration.ps1
@@ -1,7 +1,6 @@
# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
+# 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
@@ -11,6 +10,8 @@
# 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.
# ----------------------------------------------------------------------------------
<#
@@ -18,110 +19,124 @@
Create a new Kubernetes Source Control Configuration.
.Description
Create a new Kubernetes Source Control Configuration.
+.Example
+PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s01 -RepositoryUrl http://github.com/xxxx
+
+Name Type
+---- ----
+azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+.Example
+PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s02 -RepositoryUrl http://github.com/xxxx -OperatorNamespace namespace-t01
+
+Name Type
+---- ----
+azpstestk8s02 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesconfiguration
#>
function New-AzKubernetesConfiguration {
[Alias('New-AzK8sConfiguration')]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory, HelpMessage="The name of the kubernetes cluster.")]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the kubernetes cluster.
${ClusterName},
-
- [Parameter(HelpMessage="The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).")]
+
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
-
- [Parameter(Mandatory, HelpMessage="Name of the Source Control Configuration.")]
+
+ [Parameter(Mandatory)]
[Alias('SourceControlConfigurationName')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# Name of the Source Control Configuration.
${Name},
-
- [Parameter(Mandatory, HelpMessage="The name of the resource group.")]
+
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
-
- [Parameter(HelpMessage="The Azure subscription ID.")]
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
-
- [Parameter(Mandatory, HelpMessage="Url of the SourceControl Repository.")]
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.String]
- # Url of the SourceControl Repository.
- ${RepositoryUrl},
-
- [Parameter(HelpMessage="Option to enable Helm Operator for this git configuration.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IConfigurationProtectedSettings]))]
+ [System.Collections.Hashtable]
+ # Name-value pairs of protected configuration settings for the configuration
+ ${ConfigurationProtectedSetting},
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
[switch]
# Option to enable Helm Operator for this git configuration.
${EnableHelmOperator},
-
- [Parameter(HelpMessage="Values override for the operator Helm chart.")]
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
# Values override for the operator Helm chart.
${HelmOperatorChartValue},
-
- [Parameter(HelpMessage="Version of the operator Helm chart.")]
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
# Version of the operator Helm chart.
${HelmOperatorChartVersion},
-
- [Parameter(HelpMessage="Instance name of the operator - identifying the specific configuration.")]
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
# Instance name of the operator - identifying the specific configuration.
${OperatorInstanceName},
-
- [Parameter(HelpMessage="The namespace to which this operator is installed to. Maximum of 253 lower case alphanumeric characters, hyphen and period only.")]
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
# The namespace to which this operator is installed to.
# Maximum of 253 lower case alphanumeric characters, hyphen and period only.
${OperatorNamespace},
-
- [Parameter(HelpMessage="Any Parameters for the Operator instance in string format.")]
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
# Any Parameters for the Operator instance in string format.
- ${OperatorParameter},
+ ${OperatorParam},
[Parameter(HelpMessage="If passed set the scope of the Configuration to Cluster (default is nameSpace).")]
[switch]
${ClusterScoped},
- [Parameter(HelpMessage="If passed set the scope of the Configuration to Cluster (default is nameSpace).")]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
- # Base64-encoded known_hosts contents containing public SSH keys required to access private Git instances
- ${SshKnownHost},
+ # Url of the SourceControl Repository.
+ ${RepositoryUrl},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.IConfigurationProtectedSettings]))]
- [System.Collections.Hashtable]
- # Name-value pairs of protected configuration settings for the configuration
- ${ConfigurationProtectedSetting},
-
+ [System.String]
+ # Base64-encoded known_hosts contents containing public SSH keys required to access private Git instances
+ ${SshKnownHost},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -129,47 +144,47 @@ function New-AzKubernetesConfiguration {
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
-
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Wait for .NET debugger to attach
${Break},
-
+
[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be appended to the front of the pipeline
${HttpPipelineAppend},
-
+
[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
-
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
[System.Uri]
# The URI for the proxy server to use
${Proxy},
-
+
[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
[System.Management.Automation.PSCredential]
# Credentials for a proxy server to use for the remote call
${ProxyCredential},
-
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)
-
+
process {
if ($PSBoundParameters.ContainsKey('ClusterScoped')) {
$PSBoundParameters.OperatorScope = [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.OperatorScopeType]::Cluster
@@ -177,14 +192,10 @@ function New-AzKubernetesConfiguration {
$PSBoundParameters.OperatorScope = [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.OperatorScopeType]::Namespace
}
- if ($PSBoundParameters.ContainsKey('ClusterType')) {
- if ($ClusterType -eq 'ManagedClusters') {
- $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
- } elseif ($ClusterType -eq 'ConnectedClusters') {
- $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
- }
- } else {
- $PSBoundParameters.Add('ClusterType', 'ConnectedClusters')
+ if ($ClusterType -eq 'ManagedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
+ }
+ elseif ($ClusterType -eq 'ConnectedClusters') {
$PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
}
@@ -192,4 +203,4 @@ function New-AzKubernetesConfiguration {
Az.KubernetesConfiguration.internal\New-AzKubernetesConfiguration @PSBoundParameters
}
-}
+}
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/custom/New-AzKubernetesConfigurationFlux.ps1 b/src/KubernetesConfiguration/custom/New-AzKubernetesConfigurationFlux.ps1
new file mode 100644
index 000000000000..a0e49cf1682e
--- /dev/null
+++ b/src/KubernetesConfiguration/custom/New-AzKubernetesConfigurationFlux.ps1
@@ -0,0 +1,299 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create a new Kubernetes Flux Configuration.
+.Description
+Create a new Kubernetes Flux Configuration.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesconfigurationflux
+#>
+function New-AzKubernetesConfigurationFlux {
+ [Alias('New-AzK8sConfigurationFlux')]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration])]
+ [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+ param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(Mandatory)]
+ [ValidateSet('ConnectedClusters', 'ManagedClusters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(Mandatory)]
+ [Alias('FluxConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Security.SecureString]
+ # Plaintext access key used to securely access the S3 bucket
+ ${BucketAccessKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Specify whether to use insecure communication when puling data from the S3 bucket.
+ ${BucketInsecure},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.
+ ${BucketLocalAuthRef},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The bucket name to sync from the url endpoint for the flux configuration.
+ ${BucketName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The interval at which to re-reconcile the cluster git repository source with the remote.
+ ${BucketSyncIntervalInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The maximum time to attempt to reconcile the cluster git repository source with the remote.
+ ${BucketTimeoutInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The URL to sync for the flux configuration S3 bucket.
+ ${BucketUrl},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfigurationPropertiesConfigurationProtectedSettings]))]
+ [System.Collections.Hashtable]
+ # Key-value pairs of protected configuration settings for the configuration
+ ${ConfigurationProtectedSetting},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS
+ ${GitRepositoryHttpsCaCert},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Plaintext HTTPS username used to access private git repositories over HTTPS
+ ${GitRepositoryHttpsUser},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.
+ ${GitRepositoryLocalAuthRef},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH
+ ${GitRepositorySshKnownHost},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The interval at which to re-reconcile the cluster git repository source with the remote.
+ ${GitRepositorySyncIntervalInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The maximum time to attempt to reconcile the cluster git repository source with the remote.
+ ${GitRepositoryTimeoutInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The URL to sync for the flux configuration git repository.
+ ${GitRepositoryUrl},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfigurationPropertiesKustomizations]))]
+ [System.Collections.Hashtable]
+ # Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster.
+ ${Kustomization},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The namespace to which this configuration is installed to.
+ # Maximum of 253 lower case alphanumeric characters, hyphen and period only.
+ ${Namespace},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The git repository branch name to checkout.
+ ${RepositoryRefBranch},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The commit SHA to checkout.
+ # This value must be combined with the branch name to be valid.
+ # This takes precedence over semver.
+ ${RepositoryRefCommit},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The semver range used to match against git repository tags.
+ # This takes precedence over tag.
+ ${RepositoryRefSemver},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The git repository tag name to checkout.
+ # This takes precedence over branch.
+ ${RepositoryRefTag},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ScopeType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ScopeType]
+ # Scope at which the operator will be installed.
+ ${Scope},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.SourceKindType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.SourceKindType]
+ # Source Kind to pull the configuration data from.
+ ${SourceKind},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Whether this configuration should suspend its reconciliation of its kustomizations and sources.
+ ${Suspend},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ if ($ClusterType -eq 'ManagedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
+ }
+ elseif ($ClusterType -eq 'ConnectedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
+ }
+
+ Az.KubernetesConfiguration.internal\New-AzKubernetesConfigurationFlux @PSBoundParameters
+ }
+}
diff --git a/src/KubernetesConfiguration/custom/New-AzKubernetesExtension.ps1 b/src/KubernetesConfiguration/custom/New-AzKubernetesExtension.ps1
index e78c6b204294..f00a88e7f4d2 100644
--- a/src/KubernetesConfiguration/custom/New-AzKubernetesExtension.ps1
+++ b/src/KubernetesConfiguration/custom/New-AzKubernetesExtension.ps1
@@ -1,7 +1,6 @@
# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
+# 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
@@ -11,6 +10,8 @@
# 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.
# ----------------------------------------------------------------------------------
<#
@@ -21,18 +22,18 @@ Create a new Kubernetes Cluster Extension.
.Example
PS C:\> New-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group -ExtensionType Microsoft.Arcdataservices
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ResourceGroupName
----- ------------- ------- ----------------- ----------------------- -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True azps_test_group
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
+---- ------------- ------- ----------------- ----------------------- ------------ -----------------
+azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesextension
#>
function New-AzKubernetesExtension {
[Alias('New-AzK8sExtension')]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -45,7 +46,8 @@ function New-AzKubernetesExtension {
[ValidateSet('ConnectedClusters', 'ManagedClusters')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
[Parameter(Mandatory)]
@@ -66,15 +68,13 @@ function New-AzKubernetesExtension {
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType])]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.AksIdentityType])]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.AksIdentityType]
# The identity type.
${AkAssignedIdentityType},
@@ -93,14 +93,14 @@ function New-AzKubernetesExtension {
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtensionPropertiesConfigurationProtectedSettings]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtensionPropertiesConfigurationProtectedSettings]))]
[System.Collections.Hashtable]
# Configuration settings that are sensitive, as name-value pairs for configuring this extension.
${ConfigurationProtectedSetting},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtensionPropertiesConfigurationSettings]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtensionPropertiesConfigurationSettings]))]
[System.Collections.Hashtable]
# Configuration settings, as name-value pairs for configuring this extension.
${ConfigurationSetting},
@@ -136,8 +136,8 @@ function New-AzKubernetesExtension {
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
- # Version of the extension for this extension, if it is 'pinned' to a specific version.
- # autoUpgradeMinorVersion must be 'false'.
+ # User-specified version of the extension for this extension to 'pin'.
+ # To use 'version', autoUpgradeMinorVersion must be 'false'.
${Version},
[Parameter()]
@@ -208,6 +208,18 @@ function New-AzKubernetesExtension {
$PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
}
+ if ($Name -ieq 'flux') {
+ if ($Name -ceq 'flux') {
+ if ($IdentityType -cne 'SystemAssigned') {
+ Write-Error "The value of the parameter -IdentityType must be 'SystemAssigned'."
+ return
+ }
+ } else {
+ Write-Error "The value of the parameter -Name must be 'flux'."
+ return
+ }
+ }
+
Az.KubernetesConfiguration.internal\New-AzKubernetesExtension @PSBoundParameters
}
}
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/custom/Remove-AzKubernetesConfiguration.ps1 b/src/KubernetesConfiguration/custom/Remove-AzKubernetesConfiguration.ps1
index 9d27eb917316..f2220eddab29 100644
--- a/src/KubernetesConfiguration/custom/Remove-AzKubernetesConfiguration.ps1
+++ b/src/KubernetesConfiguration/custom/Remove-AzKubernetesConfiguration.ps1
@@ -1,7 +1,6 @@
# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
+# 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
@@ -11,6 +10,8 @@
# 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.
# ----------------------------------------------------------------------------------
<#
@@ -18,6 +19,14 @@
This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
.Description
This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
+.Example
+PS C:\> Remove-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s01 -ClusterType ConnectedClusters
+
+.Example
+PS C:\> $kubConf = Get-AzKubernetesConfiguration -ClusterName azps_test_cluster -ClusterType ConnectedClusters -ResourceGroupName azps_test_group -Name azpstestk8s02
+PS C:\> Remove-AzKubernetesConfiguration -InputObject $kubConf
+
+
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
@@ -29,12 +38,15 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
[Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group.
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SourceControlConfigurationName ]: Name of the Source Control Configuration.
- [SubscriptionId ]: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/remove-azkubernetesconfiguration
#>
@@ -43,41 +55,41 @@ function Remove-AzKubernetesConfiguration {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Delete', Mandatory, HelpMessage="The name of the kubernetes cluster.")]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the kubernetes cluster.
${ClusterName},
- [Parameter(ParameterSetName='Delete', Mandatory, HelpMessage="The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).")]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
- [Parameter(ParameterSetName='Delete', Mandatory, HelpMessage="Name of the Source Control Configuration.")]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Alias('SourceControlConfigurationName')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# Name of the Source Control Configuration.
${Name},
- [Parameter(ParameterSetName='Delete', Mandatory, HelpMessage="The name of the resource group.")]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Delete', HelpMessage="The Azure subscription ID.")]
+ [Parameter(ParameterSetName='Delete')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline, HelpMessage="Identity Parameter")]
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
# Identity Parameter
@@ -150,17 +162,14 @@ function Remove-AzKubernetesConfiguration {
${ProxyUseDefaultCredentials}
)
-
process {
-
- if ($PSBoundParameters.ContainsKey('ClusterType')) {
- if ($ClusterType -eq 'ManagedClusters') {
- $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
- } elseif ($ClusterType -eq 'ConnectedClusters') {
- $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
- }
+ if ($ClusterType -eq 'ManagedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
+ }
+ elseif ($ClusterType -eq 'ConnectedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
}
Az.KubernetesConfiguration.internal\Remove-AzKubernetesConfiguration @PSBoundParameters
}
-}
+}
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/custom/Remove-AzKubernetesConfigurationFlux.ps1 b/src/KubernetesConfiguration/custom/Remove-AzKubernetesConfigurationFlux.ps1
new file mode 100644
index 000000000000..798cd3642358
--- /dev/null
+++ b/src/KubernetesConfiguration/custom/Remove-AzKubernetesConfigurationFlux.ps1
@@ -0,0 +1,183 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
+.Description
+This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
+.Outputs
+System.Boolean
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/remove-azkubernetesconfigurationflux
+#>
+function Remove-AzKubernetesConfigurationFlux {
+ [Alias('Remove-AzK8sConfigurationFlux')]
+ [OutputType([System.Boolean])]
+ [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+ param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [ValidateSet('ConnectedClusters', 'ManagedClusters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('FluxConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Query')]
+ [System.Management.Automation.SwitchParameter]
+ # Delete the extension resource in Azure - not the normal asynchronous delete.
+ ${ForceDelete},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ if ($ClusterType -eq 'ManagedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
+ }
+ elseif ($ClusterType -eq 'ConnectedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
+ }
+
+ Az.KubernetesConfiguration.internal\Remove-AzKubernetesConfigurationFlux @PSBoundParameters
+ }
+}
diff --git a/src/KubernetesConfiguration/custom/Remove-AzKubernetesExtension.ps1 b/src/KubernetesConfiguration/custom/Remove-AzKubernetesExtension.ps1
index bcd6c78450f1..9dd542dc1494 100644
--- a/src/KubernetesConfiguration/custom/Remove-AzKubernetesExtension.ps1
+++ b/src/KubernetesConfiguration/custom/Remove-AzKubernetesExtension.ps1
@@ -1,7 +1,6 @@
# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
+# 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
@@ -11,6 +10,8 @@
# 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.
# ----------------------------------------------------------------------------------
<#
@@ -21,13 +22,8 @@ This will cause the Agent to Uninstall the extension from the cluster.
Delete a Kubernetes Cluster Extension.
This will cause the Agent to Uninstall the extension from the cluster.
.Example
-PS C:\> {{ Add code here }}
+PS C:\> Remove-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group
-{{ Add output here }}
-.Example
-PS C:\> {{ Add code here }}
-
-{{ Add output here }}
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
@@ -40,59 +36,59 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
[ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
[Id ]: Resource identity path
[OperationId ]: operation Id
- [ResourceGroupName ]: The name of the resource group.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SourceControlConfigurationName ]: Name of the Source Control Configuration.
- [SubscriptionId ]: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/remove-azkubernetesextension
#>
function Remove-AzKubernetesExtension {
[Alias('Remove-AzK8sExtension')]
[OutputType([System.Boolean])]
- [CmdletBinding(DefaultParameterSetName = 'Delete', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
+ [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName = 'Delete', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the kubernetes cluster.
${ClusterName},
- [Parameter(ParameterSetName = 'Delete', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[ValidateSet('ConnectedClusters', 'ManagedClusters')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
- [Parameter(ParameterSetName = 'Delete', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Alias('ExtensionName')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# Name of the Extension.
${Name},
- [Parameter(ParameterSetName = 'Delete', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName = 'Delete')]
+ [Parameter(ParameterSetName='Delete')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
- [Parameter(ParameterSetName = 'DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
# Identity Parameter
@@ -181,4 +177,4 @@ function Remove-AzKubernetesExtension {
Az.KubernetesConfiguration.internal\Remove-AzKubernetesExtension @PSBoundParameters
}
-}
+}
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/custom/Update-AzKubernetesConfigurationFlux.ps1 b/src/KubernetesConfiguration/custom/Update-AzKubernetesConfigurationFlux.ps1
new file mode 100644
index 000000000000..ec1cf3987dd1
--- /dev/null
+++ b/src/KubernetesConfiguration/custom/Update-AzKubernetesConfigurationFlux.ps1
@@ -0,0 +1,310 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Update an existing Kubernetes Flux Configuration.
+.Description
+Update an existing Kubernetes Flux Configuration.
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+.Example
+PS C:\> {{ Add code here }}
+
+{{ Add output here }}
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
+.Outputs
+System.Boolean
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/update-azkubernetesconfigurationflux
+#>
+function Update-AzKubernetesConfigurationFlux {
+ [Alias('Update-AzK8sConfigurationFlux')]
+ [OutputType([System.Boolean])]
+ [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+ param(
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [ValidateSet('ConnectedClusters', 'ManagedClusters')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Alias('FluxConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${Name},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Security.SecureString]
+ # Plaintext access key used to securely access the S3 bucket
+ ${BucketAccessKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Specify whether to use insecure communication when puling data from the S3 bucket.
+ ${BucketInsecure},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.
+ ${BucketLocalAuthRef},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The bucket name to sync from the url endpoint for the flux configuration.
+ ${BucketName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The interval at which to re-reconcile the cluster git repository source with the remote.
+ ${BucketSyncIntervalInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The maximum time to attempt to reconcile the cluster git repository source with the remote.
+ ${BucketTimeoutInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The URL to sync for the flux configuration S3 bucket.
+ ${BucketUrl},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfigurationPatchPropertiesConfigurationProtectedSettings]))]
+ [System.Collections.Hashtable]
+ # Key-value pairs of protected configuration settings for the configuration
+ ${ConfigurationProtectedSetting},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS
+ ${GitRepositoryHttpsCaCert},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Plaintext HTTPS username used to access private git repositories over HTTPS
+ ${GitRepositoryHttpsUser},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.
+ ${GitRepositoryLocalAuthRef},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH
+ ${GitRepositorySshKnownHost},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The interval at which to re-reconcile the cluster git repository source with the remote.
+ ${GitRepositorySyncIntervalInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The maximum time to attempt to reconcile the cluster git repository source with the remote.
+ ${GitRepositoryTimeoutInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The URL to sync for the flux configuration git repository.
+ ${GitRepositoryUrl},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfigurationPatchPropertiesKustomizations]))]
+ [System.Collections.Hashtable]
+ # Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster.
+ ${Kustomization},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The git repository branch name to checkout.
+ ${RepositoryRefBranch},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The commit SHA to checkout.
+ # This value must be combined with the branch name to be valid.
+ # This takes precedence over semver.
+ ${RepositoryRefCommit},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The semver range used to match against git repository tags.
+ # This takes precedence over tag.
+ ${RepositoryRefSemver},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The git repository tag name to checkout.
+ # This takes precedence over branch.
+ ${RepositoryRefTag},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.SourceKindType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.SourceKindType]
+ # Source Kind to pull the configuration data from.
+ ${SourceKind},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Whether this configuration should suspend its reconciliation of its kustomizations and sources.
+ ${Suspend},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+ process {
+ if ($ClusterType -eq 'ManagedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.ContainerService')
+ }
+ elseif ($ClusterType -eq 'ConnectedClusters') {
+ $PSBoundParameters.Add('ClusterRp', 'Microsoft.Kubernetes')
+ }
+
+ Az.KubernetesConfiguration.internal\Update-AzKubernetesConfigurationFlux @PSBoundParameters
+ }
+}
diff --git a/src/KubernetesConfiguration/custom/Update-AzKubernetesExtension.ps1 b/src/KubernetesConfiguration/custom/Update-AzKubernetesExtension.ps1
index be85f05a13f5..5e2ee6763498 100644
--- a/src/KubernetesConfiguration/custom/Update-AzKubernetesExtension.ps1
+++ b/src/KubernetesConfiguration/custom/Update-AzKubernetesExtension.ps1
@@ -20,18 +20,16 @@ Patch an existing Kubernetes Cluster Extension.
.Description
Patch an existing Kubernetes Cluster Extension.
.Example
-PS C:\> {{ Add code here }}
+PS C:\> Update-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group -ConfigurationProtectedSetting @{"aa"="bb"}
-{{ Add output here }}
-.Example
-PS C:\> {{ Add code here }}
-
-{{ Add output here }}
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
+---- ------------- ------- ----------------- ----------------------- ------------ -----------------
+azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -39,20 +37,21 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
[ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
[Id ]: Resource identity path
[OperationId ]: operation Id
- [ResourceGroupName ]: The name of the resource group.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SourceControlConfigurationName ]: Name of the Source Control Configuration.
- [SubscriptionId ]: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/update-azkubernetesextension
#>
function Update-AzKubernetesExtension {
[Alias('Update-AzK8sExtension')]
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -65,7 +64,8 @@ function Update-AzKubernetesExtension {
[ValidateSet('ConnectedClusters', 'ManagedClusters')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -86,9 +86,7 @@ function Update-AzKubernetesExtension {
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
[Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
@@ -106,14 +104,14 @@ function Update-AzKubernetesExtension {
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IPatchExtensionPropertiesConfigurationProtectedSettings]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IPatchExtensionPropertiesConfigurationProtectedSettings]))]
[System.Collections.Hashtable]
# Configuration settings that are sensitive, as name-value pairs for configuring this extension.
${ConfigurationProtectedSetting},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IPatchExtensionPropertiesConfigurationSettings]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IPatchExtensionPropertiesConfigurationSettings]))]
[System.Collections.Hashtable]
# Configuration settings, as name-value pairs for configuring this extension.
${ConfigurationSetting},
@@ -202,4 +200,4 @@ function Update-AzKubernetesExtension {
Az.KubernetesConfiguration.internal\Update-AzKubernetesExtension @PSBoundParameters
}
-}
+}
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/Get-AzKubernetesConfigFluxOperationStatus.md b/src/KubernetesConfiguration/examples/Get-AzKubernetesConfigFluxOperationStatus.md
new file mode 100644
index 000000000000..7be05209221b
--- /dev/null
+++ b/src/KubernetesConfiguration/examples/Get-AzKubernetesConfigFluxOperationStatus.md
@@ -0,0 +1,10 @@
+### Example 1: Get Async Operation status
+```powershell
+PS C:\> Get-AzKubernetesConfigFluxOperationStatus -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -FluxConfigurationName azpstestflux-k8s -ResourceGroupName azpstest_gp -OperationId e9871335-7ba8-4100-8cb4-73b3464eb863
+
+Name ResourceGroupName Status
+---- ----------------- ------
+e9871335-7ba8-4100-8cb4-73b3464eb863 azpstest_gp Succeeded
+```
+
+Get Async Operation status
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/Get-AzKubernetesConfiguration.md b/src/KubernetesConfiguration/examples/Get-AzKubernetesConfiguration.md
index d12c398f8272..57e52f1bbc9e 100644
--- a/src/KubernetesConfiguration/examples/Get-AzKubernetesConfiguration.md
+++ b/src/KubernetesConfiguration/examples/Get-AzKubernetesConfiguration.md
@@ -1,22 +1,22 @@
### Example 1: List details of the Source Control Configuration.
```powershell
-PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -ClusterType ConnectedClusters
+PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters
-Name Type
----- ----
-azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
-azpstestk8s02 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s http://github.com/xxxx azpstest_gp
+azpstestk8s-operator http://github.com/xxxx azpstest_gp
```
List details of the Source Control Configuration.
### Example 2: Gets details of the Source Control Configuration.
```powershell
-PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azpstestk8s01
+PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestk8s
-Name Type
----- ----
-azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s http://github.com/xxxx azpstest_gp
```
Gets details of the Source Control Configuration.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/Get-AzKubernetesConfigurationFlux.md b/src/KubernetesConfiguration/examples/Get-AzKubernetesConfigurationFlux.md
new file mode 100644
index 000000000000..d519d95ebc25
--- /dev/null
+++ b/src/KubernetesConfiguration/examples/Get-AzKubernetesConfigurationFlux.md
@@ -0,0 +1,21 @@
+### Example 1: List details of the Flux Configuration.
+```powershell
+PS C:\> Get-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -ResourceGroupName azpstest_gp
+
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+```
+
+List details of the Flux Configuration.
+
+### Example 2: Gets details of the Flux Configuration.
+```powershell
+PS C:\> Get-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp
+
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+```
+
+Gets details of the Flux Configuration.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/Get-AzKubernetesExtension.md b/src/KubernetesConfiguration/examples/Get-AzKubernetesExtension.md
index 96c814ebaec3..57c85cb08927 100644
--- a/src/KubernetesConfiguration/examples/Get-AzKubernetesExtension.md
+++ b/src/KubernetesConfiguration/examples/Get-AzKubernetesExtension.md
@@ -1,21 +1,22 @@
### Example 1: Gets Kubernetes Cluster Extension.
```powershell
-PS C:\> Get-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group
+PS C:\> Get-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azpstest_gp
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
```
Gets Kubernetes Cluster Extension.
### Example 2: List Kubernetes Cluster Extension.
```powershell
-PS C:\> Get-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -ResourceGroupName azps_test_group
+PS C:\> Get-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -ResourceGroupName azpstest_gp
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
+flux microsoft.flux 1.0.0 Succeeded True Stable
```
List Kubernetes Cluster Extension.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/New-AzKubernetesConfiguration.md b/src/KubernetesConfiguration/examples/New-AzKubernetesConfiguration.md
index 871ebde50e5c..2b6812f031df 100644
--- a/src/KubernetesConfiguration/examples/New-AzKubernetesConfiguration.md
+++ b/src/KubernetesConfiguration/examples/New-AzKubernetesConfiguration.md
@@ -1,21 +1,23 @@
-### Example 1: Create a configuration for kubernetes cluster
+### Example 1: Create a configuration for Kubernetes Cluster
```powershell
-PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s01 -RepositoryUrl http://github.com/xxxx
+PS C:\> New-AzConnectedKubernetes -ClusterName azpstest_cluster_arc -ResourceGroupName azpstest_gp -Location eastus
+PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -Name azpstestk8s -RepositoryUrl http://github.com/xxxx -ClusterType ConnectedClusters
-Name Type
----- ----
-azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s http://github.com/xxxx azpstest_gp
```
-This command creates a configuration for kubernetes cluster.
+This command creates a configuration for Kubernetes Cluster.
-### Example 2: Create a configuration for kubernetes cluster with specify paramter OperatorNamespace
+### Example 2: Create a configuration for Kubernetes Cluster with specify paramter OperatorNamespace
```powershell
-PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s02 -RepositoryUrl http://github.com/xxxx -OperatorNamespace namespace-t01
+PS C:\> New-AzConnectedKubernetes -ClusterName azpstest_cluster_arc -ResourceGroupName azpstest_gp -Location eastus
+PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -Name azpstestk8s-operator -RepositoryUrl http://github.com/xxxx -OperatorNamespace namespace-t01 -ClusterType ConnectedClusters
-Name Type
----- ----
-azpstestk8s02 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s-operator http://github.com/xxxx azpstest_gp
```
-This command creates a configuration in the new operator namespace for kubernetes cluster. Note, Unable to create a configuration in an existing operator namespace.
\ No newline at end of file
+This command creates a configuration in the new operator namespace for Kubernetes Cluster. Note, Unable to create a configuration in an existing operator namespace.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/New-AzKubernetesConfigurationFlux.md b/src/KubernetesConfiguration/examples/New-AzKubernetesConfigurationFlux.md
new file mode 100644
index 000000000000..4275c1c84ceb
--- /dev/null
+++ b/src/KubernetesConfiguration/examples/New-AzKubernetesConfigurationFlux.md
@@ -0,0 +1,23 @@
+### Example 1: Create a new Kubernetes Flux Configuration.
+```powershell
+PS C:\> $kustomizations = @{
+ infra=@{
+ Name = "infra"
+ Path = "./infrastructure"
+ Prune = "true"
+ };
+ apps=@{
+ Name = "apps"
+ Path = "./apps/staging"
+ Prune = "true"
+ DependsOn = @("infra")
+ }
+}
+PS C:\> New-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp -Namespace namespace-t01 -Scope 'cluster' -GitRepositoryUrl https://github.com/Azure/gitops-flux2-kustomize-helm-mt -RepositoryRefBranch main -SourceKind 'GitRepository' -GitRepositorySyncIntervalInSecond 600 -GitRepositoryTimeoutInSecond 600 -Suspend:$false -Kustomization $kustomizations
+
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+```
+
+Create a new Kubernetes Flux Configuration.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/New-AzKubernetesExtension.md b/src/KubernetesConfiguration/examples/New-AzKubernetesExtension.md
index 795767b722a5..e41fadbea03f 100644
--- a/src/KubernetesConfiguration/examples/New-AzKubernetesExtension.md
+++ b/src/KubernetesConfiguration/examples/New-AzKubernetesExtension.md
@@ -1,10 +1,21 @@
### Example 1: Create a new Kubernetes Cluster Extension.
```powershell
-PS C:\> New-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group -ExtensionType Microsoft.Arcdataservices
+PS C:\> New-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azpstest_gp -ExtensionType azuremonitor-containers
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
```
-Create a new Kubernetes Cluster Extension.
\ No newline at end of file
+Create a new Kubernetes Cluster Extension.
+
+### Example 2: Create a Flux Cluster Extension.
+```powershell
+PS C:\> New-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name flux -ResourceGroupName azpstest_gp -ExtensionType microsoft.flux -AutoUpgradeMinorVersion -ClusterReleaseNamespace flux-system -IdentityType 'SystemAssigned'
+
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+flux microsoft.flux 1.0.0 Succeeded True Stable
+```
+
+Create a Flux Cluster Extension.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/Remove-AzKubernetesConfiguration.md b/src/KubernetesConfiguration/examples/Remove-AzKubernetesConfiguration.md
index b18336c7f5ce..b029927cdf02 100644
--- a/src/KubernetesConfiguration/examples/Remove-AzKubernetesConfiguration.md
+++ b/src/KubernetesConfiguration/examples/Remove-AzKubernetesConfiguration.md
@@ -1,16 +1,16 @@
-### Example 1: Remove a configuation of kubernetes cluster by name
+### Example 1: Remove a configuation of Kubernetes Cluster by name
```powershell
-PS C:\> Remove-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s01 -ClusterType ConnectedClusters
+PS C:\> Remove-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -Name azpstestk8s -ClusterType ConnectedClusters
```
-This command removes a configuation of kubernetes cluster by name.
+This command removes a configuation of Kubernetes Cluster by name.
-### Example 2: Remove a configuation of kubernetes cluster by object
+### Example 2: Remove a configuation of Kubernetes Cluster by object
```powershell
-PS C:\> $kubConf = Get-AzKubernetesConfiguration -ClusterName azps_test_cluster -ClusterType ConnectedClusters -ResourceGroupName azps_test_group -Name azpstestk8s02
-PS C:\> Remove-AzKubernetesConfiguration -InputObject $kubConf
+PS C:\> $kubConf = Get-AzKubernetesConfiguration -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -ResourceGroupName azpstest_gp -Name azpstestk8s-operator
+Remove-AzKubernetesConfiguration -InputObject $kubConf
```
-This command removes a configuation of kubernetes cluster by object.
\ No newline at end of file
+This command removes a configuation of Kubernetes Cluster by object.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/Remove-AzKubernetesConfigurationFlux.md b/src/KubernetesConfiguration/examples/Remove-AzKubernetesConfigurationFlux.md
new file mode 100644
index 000000000000..a3dcab4a91e5
--- /dev/null
+++ b/src/KubernetesConfiguration/examples/Remove-AzKubernetesConfigurationFlux.md
@@ -0,0 +1,15 @@
+### Example 1: This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
+```powershell
+PS C:\> Remove-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp
+
+```
+
+This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
+
+### Example 2: This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
+```powershell
+PS C:\> Get-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp | Remove-AzKubernetesConfigurationFlux
+
+```
+
+This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/Remove-AzKubernetesExtension.md b/src/KubernetesConfiguration/examples/Remove-AzKubernetesExtension.md
index b21d4208cd30..0db2969c062e 100644
--- a/src/KubernetesConfiguration/examples/Remove-AzKubernetesExtension.md
+++ b/src/KubernetesConfiguration/examples/Remove-AzKubernetesExtension.md
@@ -1,6 +1,6 @@
### Example 1: Delete a Kubernetes Cluster Extension.
```powershell
-PS C:\> Remove-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group
+PS C:\> Remove-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azpstest_gp
```
diff --git a/src/KubernetesConfiguration/examples/Update-AzKubernetesConfigurationFlux.md b/src/KubernetesConfiguration/examples/Update-AzKubernetesConfigurationFlux.md
new file mode 100644
index 000000000000..0b98f2e3a749
--- /dev/null
+++ b/src/KubernetesConfiguration/examples/Update-AzKubernetesConfigurationFlux.md
@@ -0,0 +1,21 @@
+### Example 1: Update an existing Kubernetes Flux Configuration.
+```powershell
+PS C:\> Update-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp -GitRepositoryUrl https://github.com/fluxcd/flux2-kustomize-helm-example -RepositoryRefBranch main -SourceKind 'GitRepository' -GitRepositorySyncIntervalInSecond 600 -GitRepositoryTimeoutInSecond 600 -Suspend:$false
+
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+```
+
+Update an existing Kubernetes Flux Configuration.
+
+### Example 2: Update an existing Kubernetes Flux Configuration.
+```powershell
+PS C:\> Get-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp | Update-AzKubernetesConfigurationFlux -GitRepositoryUrl https://github.com/fluxcd/flux2-kustomize-helm-example -RepositoryRefBranch main -SourceKind 'GitRepository' -GitRepositorySyncIntervalInSecond 600 -GitRepositoryTimeoutInSecond 600 -Suspend:$false
+
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+```
+
+Update an existing Kubernetes Flux Configuration.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/examples/Update-AzKubernetesExtension.md b/src/KubernetesConfiguration/examples/Update-AzKubernetesExtension.md
index 49a01007693e..a331ef962065 100644
--- a/src/KubernetesConfiguration/examples/Update-AzKubernetesExtension.md
+++ b/src/KubernetesConfiguration/examples/Update-AzKubernetesExtension.md
@@ -1,10 +1,10 @@
### Example 1: Update an existing Kubernetes Cluster Extension.
```powershell
-PS C:\> Update-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group -ConfigurationProtectedSetting @{"aa"="bb"}
+PS C:\> Update-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azpstest_gp -ConfigurationProtectedSetting @{"aa"="bb"}
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
```
Update an existing Kubernetes Cluster Extension.
\ No newline at end of file
diff --git a/src/KubernetesConfiguration/exports/Get-AzKubernetesConfigFluxOperationStatus.ps1 b/src/KubernetesConfiguration/exports/Get-AzKubernetesConfigFluxOperationStatus.ps1
new file mode 100644
index 000000000000..42def9c01184
--- /dev/null
+++ b/src/KubernetesConfiguration/exports/Get-AzKubernetesConfigFluxOperationStatus.ps1
@@ -0,0 +1,227 @@
+
+# ----------------------------------------------------------------------------------
+# 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 Async Operation status
+.Description
+Get Async Operation status
+.Example
+PS C:\> Get-AzKubernetesConfigFluxOperationStatus -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -FluxConfigurationName azpstestflux-k8s -ResourceGroupName azpstest_gp -OperationId e9871335-7ba8-4100-8cb4-73b3464eb863
+
+Name ResourceGroupName Status
+---- ----------------- ------
+e9871335-7ba8-4100-8cb4-73b3464eb863 azpstest_gp Succeeded
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IOperationStatusResult
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfigfluxoperationstatus
+#>
+function Get-AzKubernetesConfigFluxOperationStatus {
+[Alias('Get-AzK8sConfigFluxOperationStatus')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IOperationStatusResult])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${FluxConfigurationName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # operation Id
+ ${OperationId},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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.KubernetesConfiguration.custom\Get-AzKubernetesConfigFluxOperationStatus';
+ GetViaIdentity = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfigFluxOperationStatus';
+ }
+ if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $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.KubernetesConfiguration.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
+ }
+}
+}
diff --git a/src/KubernetesConfiguration/exports/Get-AzKubernetesConfiguration.ps1 b/src/KubernetesConfiguration/exports/Get-AzKubernetesConfiguration.ps1
index 9a07e2752667..24449342b4a3 100644
--- a/src/KubernetesConfiguration/exports/Get-AzKubernetesConfiguration.ps1
+++ b/src/KubernetesConfiguration/exports/Get-AzKubernetesConfiguration.ps1
@@ -20,23 +20,23 @@ Gets details of the Source Control Configuration.
.Description
Gets details of the Source Control Configuration.
.Example
-PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -ClusterType ConnectedClusters
+PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters
-Name Type
----- ----
-azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
-azpstestk8s02 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s http://github.com/xxxx azpstest_gp
+azpstestk8s-operator http://github.com/xxxx azpstest_gp
.Example
-PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azpstestk8s01
+PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestk8s
-Name Type
----- ----
-azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s http://github.com/xxxx azpstest_gp
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -44,20 +44,21 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
[ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
[Id ]: Resource identity path
[OperationId ]: operation Id
- [ResourceGroupName ]: The name of the resource group.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SourceControlConfigurationName ]: Name of the Source Control Configuration.
- [SubscriptionId ]: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfiguration
#>
function Get-AzKubernetesConfiguration {
[Alias('Get-AzK8sConfiguration')]
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List', Mandatory)]
@@ -71,7 +72,8 @@ param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
[Parameter(ParameterSetName='List', Mandatory)]
@@ -79,6 +81,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
[Parameter(ParameterSetName='List')]
@@ -86,9 +89,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -160,6 +161,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
List = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfiguration';
Get = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfiguration';
@@ -175,6 +194,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -183,15 +203,32 @@ 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.KubernetesConfiguration.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
}
-}
+}
}
diff --git a/src/KubernetesConfiguration/exports/Get-AzKubernetesConfigurationFlux.ps1 b/src/KubernetesConfiguration/exports/Get-AzKubernetesConfigurationFlux.ps1
new file mode 100644
index 000000000000..cc08c6b5fe6c
--- /dev/null
+++ b/src/KubernetesConfiguration/exports/Get-AzKubernetesConfigurationFlux.ps1
@@ -0,0 +1,233 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Gets details of the Flux Configuration.
+.Description
+Gets details of the Flux Configuration.
+.Example
+PS C:\> Get-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -ResourceGroupName azpstest_gp
+
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+.Example
+PS C:\> Get-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp
+
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfigurationflux
+#>
+function Get-AzKubernetesConfigurationFlux {
+[Alias('Get-AzK8sConfigurationFlux')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='Get')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('FluxConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${Name},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
+ List = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfigurationFlux';
+ Get = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfigurationFlux';
+ GetViaIdentity = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfigurationFlux';
+ }
+ if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $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.KubernetesConfiguration.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
+ }
+}
+}
diff --git a/src/KubernetesConfiguration/exports/Get-AzKubernetesExtension.ps1 b/src/KubernetesConfiguration/exports/Get-AzKubernetesExtension.ps1
index ab4e107c90d4..35ee66aefd9f 100644
--- a/src/KubernetesConfiguration/exports/Get-AzKubernetesExtension.ps1
+++ b/src/KubernetesConfiguration/exports/Get-AzKubernetesExtension.ps1
@@ -20,22 +20,23 @@ Gets Kubernetes Cluster Extension.
.Description
Gets Kubernetes Cluster Extension.
.Example
-PS C:\> Get-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group
+PS C:\> Get-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azpstest_gp
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
.Example
-PS C:\> Get-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -ResourceGroupName azps_test_group
+PS C:\> Get-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -ResourceGroupName azpstest_gp
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
+flux microsoft.flux 1.0.0 Succeeded True Stable
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -43,20 +44,21 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
[ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
[Id ]: Resource identity path
[OperationId ]: operation Id
- [ResourceGroupName ]: The name of the resource group.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SourceControlConfigurationName ]: Name of the Source Control Configuration.
- [SubscriptionId ]: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
+ [SubscriptionId ]: The ID of the target subscription.
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesextension
#>
function Get-AzKubernetesExtension {
[Alias('Get-AzK8sExtension')]
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List', Mandatory)]
@@ -70,7 +72,8 @@ param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
[Parameter(ParameterSetName='List', Mandatory)]
@@ -86,9 +89,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -160,6 +161,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
List = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesExtension';
Get = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesExtension';
@@ -175,6 +194,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -183,15 +203,32 @@ 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.KubernetesConfiguration.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
}
-}
+}
}
diff --git a/src/KubernetesConfiguration/exports/New-AzKubernetesConfiguration.ps1 b/src/KubernetesConfiguration/exports/New-AzKubernetesConfiguration.ps1
index 87794b765a36..9023b071ba9e 100644
--- a/src/KubernetesConfiguration/exports/New-AzKubernetesConfiguration.ps1
+++ b/src/KubernetesConfiguration/exports/New-AzKubernetesConfiguration.ps1
@@ -20,26 +20,28 @@ Create a new Kubernetes Source Control Configuration.
.Description
Create a new Kubernetes Source Control Configuration.
.Example
-PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s01 -RepositoryUrl http://github.com/xxxx
+PS C:\> New-AzConnectedKubernetes -ClusterName azpstest_cluster_arc -ResourceGroupName azpstest_gp -Location eastus
+PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -Name azpstestk8s -RepositoryUrl http://github.com/xxxx -ClusterType ConnectedClusters
-Name Type
----- ----
-azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s http://github.com/xxxx azpstest_gp
.Example
-PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s02 -RepositoryUrl http://github.com/xxxx -OperatorNamespace namespace-t01
+PS C:\> New-AzConnectedKubernetes -ClusterName azpstest_cluster_arc -ResourceGroupName azpstest_gp -Location eastus
+PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -Name azpstestk8s-operator -RepositoryUrl http://github.com/xxxx -OperatorNamespace namespace-t01 -ClusterType ConnectedClusters
-Name Type
----- ----
-azpstestk8s02 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s-operator http://github.com/xxxx azpstest_gp
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesconfiguration
#>
function New-AzKubernetesConfiguration {
[Alias('New-AzK8sConfiguration')]
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -48,6 +50,13 @@ param(
# The name of the kubernetes cluster.
${ClusterName},
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
[Parameter(Mandatory)]
[Alias('SourceControlConfigurationName')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
@@ -59,26 +68,22 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
- [System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- ${ClusterType},
-
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # The Azure subscription ID.
+ # The ID of the target subscription.
${SubscriptionId},
- [Parameter(Mandatory)]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.String]
- # Url of the SourceControl Repository.
- ${RepositoryUrl},
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IConfigurationProtectedSettings]))]
+ [System.Collections.Hashtable]
+ # Name-value pairs of protected configuration settings for the configuration
+ ${ConfigurationProtectedSetting},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
@@ -115,7 +120,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
# Any Parameters for the Operator instance in string format.
- ${OperatorParameter},
+ ${OperatorParam},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
@@ -126,15 +131,14 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
- # If passed set the scope of the Configuration to Cluster (default is nameSpace).
- ${SshKnownHost},
+ # Url of the SourceControl Repository.
+ ${RepositoryUrl},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.IConfigurationProtectedSettings]))]
- [System.Collections.Hashtable]
- # Name-value pairs of protected configuration settings for the configuration
- ${ConfigurationProtectedSetting},
+ [System.String]
+ # Base64-encoded known_hosts contents containing public SSH keys required to access private Git instances
+ ${SshKnownHost},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -191,6 +195,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
CreateExpanded = 'Az.KubernetesConfiguration.custom\New-AzKubernetesConfiguration';
}
@@ -204,6 +226,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -212,15 +235,32 @@ 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.KubernetesConfiguration.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
}
-}
+}
}
diff --git a/src/KubernetesConfiguration/exports/New-AzKubernetesConfigurationFlux.ps1 b/src/KubernetesConfiguration/exports/New-AzKubernetesConfigurationFlux.ps1
new file mode 100644
index 000000000000..b4b767bfd7e6
--- /dev/null
+++ b/src/KubernetesConfiguration/exports/New-AzKubernetesConfigurationFlux.ps1
@@ -0,0 +1,374 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Create a new Kubernetes Flux Configuration.
+.Description
+Create a new Kubernetes Flux Configuration.
+.Example
+PS C:\> $kustomizations = @{
+ infra=@{
+ Name = "infra"
+ Path = "./infrastructure"
+ Prune = "true"
+ };
+ apps=@{
+ Name = "apps"
+ Path = "./apps/staging"
+ Prune = "true"
+ DependsOn = @("infra")
+ }
+}
+PS C:\> New-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp -Namespace namespace-t01 -Scope 'cluster' -GitRepositoryUrl https://github.com/Azure/gitops-flux2-kustomize-helm-mt -RepositoryRefBranch main -SourceKind 'GitRepository' -GitRepositorySyncIntervalInSecond 600 -GitRepositoryTimeoutInSecond 600 -Suspend:$false -Kustomization $kustomizations
+
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesconfigurationflux
+#>
+function New-AzKubernetesConfigurationFlux {
+[Alias('New-AzK8sConfigurationFlux')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(Mandatory)]
+ [Alias('FluxConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Security.SecureString]
+ # Plaintext access key used to securely access the S3 bucket
+ ${BucketAccessKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Specify whether to use insecure communication when puling data from the S3 bucket.
+ ${BucketInsecure},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.
+ ${BucketLocalAuthRef},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The bucket name to sync from the url endpoint for the flux configuration.
+ ${BucketName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The interval at which to re-reconcile the cluster git repository source with the remote.
+ ${BucketSyncIntervalInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The maximum time to attempt to reconcile the cluster git repository source with the remote.
+ ${BucketTimeoutInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The URL to sync for the flux configuration S3 bucket.
+ ${BucketUrl},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfigurationPropertiesConfigurationProtectedSettings]))]
+ [System.Collections.Hashtable]
+ # Key-value pairs of protected configuration settings for the configuration
+ ${ConfigurationProtectedSetting},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS
+ ${GitRepositoryHttpsCaCert},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Plaintext HTTPS username used to access private git repositories over HTTPS
+ ${GitRepositoryHttpsUser},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.
+ ${GitRepositoryLocalAuthRef},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH
+ ${GitRepositorySshKnownHost},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The interval at which to re-reconcile the cluster git repository source with the remote.
+ ${GitRepositorySyncIntervalInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The maximum time to attempt to reconcile the cluster git repository source with the remote.
+ ${GitRepositoryTimeoutInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The URL to sync for the flux configuration git repository.
+ ${GitRepositoryUrl},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfigurationPropertiesKustomizations]))]
+ [System.Collections.Hashtable]
+ # Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster.
+ ${Kustomization},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The namespace to which this configuration is installed to.
+ # Maximum of 253 lower case alphanumeric characters, hyphen and period only.
+ ${Namespace},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The git repository branch name to checkout.
+ ${RepositoryRefBranch},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The commit SHA to checkout.
+ # This value must be combined with the branch name to be valid.
+ # This takes precedence over semver.
+ ${RepositoryRefCommit},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The semver range used to match against git repository tags.
+ # This takes precedence over tag.
+ ${RepositoryRefSemver},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The git repository tag name to checkout.
+ # This takes precedence over branch.
+ ${RepositoryRefTag},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ScopeType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ScopeType]
+ # Scope at which the operator will be installed.
+ ${Scope},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.SourceKindType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.SourceKindType]
+ # Source Kind to pull the configuration data from.
+ ${SourceKind},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Whether this configuration should suspend its reconciliation of its kustomizations and sources.
+ ${Suspend},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
+ CreateExpanded = 'Az.KubernetesConfiguration.custom\New-AzKubernetesConfigurationFlux';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $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.KubernetesConfiguration.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
+ }
+}
+}
diff --git a/src/KubernetesConfiguration/exports/New-AzKubernetesExtension.ps1 b/src/KubernetesConfiguration/exports/New-AzKubernetesExtension.ps1
index 71eb954dc0dd..dfb13f547d85 100644
--- a/src/KubernetesConfiguration/exports/New-AzKubernetesExtension.ps1
+++ b/src/KubernetesConfiguration/exports/New-AzKubernetesExtension.ps1
@@ -20,20 +20,26 @@ Create a new Kubernetes Cluster Extension.
.Description
Create a new Kubernetes Cluster Extension.
.Example
-PS C:\> New-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group -ExtensionType Microsoft.Arcdataservices
+PS C:\> New-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azpstest_gp -ExtensionType azuremonitor-containers
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
+.Example
+PS C:\> New-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name flux -ResourceGroupName azpstest_gp -ExtensionType microsoft.flux -AutoUpgradeMinorVersion -ClusterReleaseNamespace flux-system -IdentityType 'SystemAssigned'
+
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+flux microsoft.flux 1.0.0 Succeeded True Stable
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension
.Link
https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesextension
#>
function New-AzKubernetesExtension {
[Alias('New-AzK8sExtension')]
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -45,7 +51,8 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
[Parameter(Mandatory)]
@@ -66,9 +73,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
[Parameter(Mandatory)]
@@ -79,9 +84,9 @@ param(
${ExtensionType},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType])]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.AksIdentityType])]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.AksIdentityType]
# The identity type.
${AkAssignedIdentityType},
@@ -100,14 +105,14 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtensionPropertiesConfigurationProtectedSettings]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtensionPropertiesConfigurationProtectedSettings]))]
[System.Collections.Hashtable]
# Configuration settings that are sensitive, as name-value pairs for configuring this extension.
${ConfigurationProtectedSetting},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtensionPropertiesConfigurationSettings]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtensionPropertiesConfigurationSettings]))]
[System.Collections.Hashtable]
# Configuration settings, as name-value pairs for configuring this extension.
${ConfigurationSetting},
@@ -136,8 +141,8 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
[System.String]
- # Version of the extension for this extension, if it is 'pinned' to a specific version.
- # autoUpgradeMinorVersion must be 'false'.
+ # User-specified version of the extension for this extension to 'pin'.
+ # To use 'version', autoUpgradeMinorVersion must be 'false'.
${Version},
[Parameter()]
@@ -207,6 +212,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
CreateExpanded = 'Az.KubernetesConfiguration.custom\New-AzKubernetesExtension';
}
@@ -220,6 +243,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -228,15 +252,32 @@ 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.KubernetesConfiguration.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
}
-}
+}
}
diff --git a/src/KubernetesConfiguration/exports/ProxyCmdletDefinitions.ps1 b/src/KubernetesConfiguration/exports/ProxyCmdletDefinitions.ps1
index 0722ce1c9e27..d3566615ff61 100644
--- a/src/KubernetesConfiguration/exports/ProxyCmdletDefinitions.ps1
+++ b/src/KubernetesConfiguration/exports/ProxyCmdletDefinitions.ps1
@@ -16,27 +16,20 @@
<#
.Synopsis
-Gets details of the Source Control Configuration.
+Get Async Operation status
.Description
-Gets details of the Source Control Configuration.
-.Example
-PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -ClusterType ConnectedClusters
-
-Name Type
----- ----
-azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
-azpstestk8s02 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Get Async Operation status
.Example
-PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azpstestk8s01
+PS C:\> Get-AzKubernetesConfigFluxOperationStatus -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -FluxConfigurationName azpstestflux-k8s -ResourceGroupName azpstest_gp -OperationId e9871335-7ba8-4100-8cb4-73b3464eb863
-Name Type
----- ----
-azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name ResourceGroupName Status
+---- ----------------- ------
+e9871335-7ba8-4100-8cb4-73b3464eb863 azpstest_gp Succeeded
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IOperationStatusResult
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -44,60 +37,62 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
[ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
[Id ]: Resource identity path
[OperationId ]: operation Id
- [ResourceGroupName ]: The name of the resource group.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SourceControlConfigurationName ]: Name of the Source Control Configuration.
- [SubscriptionId ]: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
+ [SubscriptionId ]: The ID of the target subscription.
.Link
-https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfiguration
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfigfluxoperationstatus
#>
-function Get-AzKubernetesConfiguration {
-[Alias('Get-AzK8sConfiguration')]
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+function Get-AzKubernetesConfigFluxOperationStatus {
+[Alias('Get-AzK8sConfigFluxOperationStatus')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IOperationStatusResult])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
- [Parameter(ParameterSetName='List', Mandatory)]
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the kubernetes cluster.
${ClusterName},
- [Parameter(ParameterSetName='List', Mandatory)]
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${FluxConfigurationName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # operation Id
+ ${OperationId},
+
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='List')]
[Parameter(ParameterSetName='Get')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('SourceControlConfigurationName')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
- [System.String]
- # Name of the Source Control Configuration.
- ${Name},
-
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
@@ -160,12 +155,29 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
- List = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfiguration';
- Get = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfiguration';
- GetViaIdentity = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfiguration';
+ Get = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfigFluxOperationStatus';
+ GetViaIdentity = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfigFluxOperationStatus';
}
- if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -175,6 +187,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -183,41 +196,59 @@ 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.KubernetesConfiguration.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
}
-}
+}
}
<#
.Synopsis
-Gets Kubernetes Cluster Extension.
+Gets details of the Source Control Configuration.
.Description
-Gets Kubernetes Cluster Extension.
+Gets details of the Source Control Configuration.
.Example
-PS C:\> Get-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group
+PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s http://github.com/xxxx azpstest_gp
+azpstestk8s-operator http://github.com/xxxx azpstest_gp
.Example
-PS C:\> Get-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -ResourceGroupName azps_test_group
+PS C:\> Get-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestk8s
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s http://github.com/xxxx azpstest_gp
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -225,20 +256,21 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
[ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
[Id ]: Resource identity path
[OperationId ]: operation Id
- [ResourceGroupName ]: The name of the resource group.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SourceControlConfigurationName ]: Name of the Source Control Configuration.
- [SubscriptionId ]: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
+ [SubscriptionId ]: The ID of the target subscription.
.Link
-https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azextension
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfiguration
#>
-function Get-AzKubernetesExtension {
-[Alias('Get-AzK8sExtension')]
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension])]
+function Get-AzKubernetesConfiguration {
+[Alias('Get-AzK8sConfiguration')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List', Mandatory)]
@@ -252,7 +284,8 @@ param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
[Parameter(ParameterSetName='List', Mandatory)]
@@ -268,16 +301,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ # The ID of the target subscription.
${SubscriptionId},
[Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('ExtensionName')]
+ [Alias('SourceControlConfigurationName')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # Name of the Extension.
+ # Name of the Source Control Configuration.
${Name},
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
@@ -342,10 +373,28 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
- List = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesExtension';
- Get = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesExtension';
- GetViaIdentity = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesExtension';
+ List = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfiguration';
+ Get = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfiguration';
+ GetViaIdentity = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfiguration';
}
if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
@@ -357,6 +406,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -365,140 +415,126 @@ 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.KubernetesConfiguration.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
}
-}
+}
}
<#
.Synopsis
-Create a new Kubernetes Source Control Configuration.
+Gets details of the Flux Configuration.
.Description
-Create a new Kubernetes Source Control Configuration.
+Gets details of the Flux Configuration.
.Example
-PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s01 -RepositoryUrl http://github.com/xxxx
+PS C:\> Get-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -ResourceGroupName azpstest_gp
-Name Type
----- ----
-azpstestk8s01 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
.Example
-PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s02 -RepositoryUrl http://github.com/xxxx -OperatorNamespace namespace-t01
+PS C:\> Get-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp
-Name Type
----- ----
-azpstestk8s02 Microsoft.KubernetesConfiguration/sourceControlConfigurations
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
.Link
-https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesconfiguration
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesconfigurationflux
#>
-function New-AzKubernetesConfiguration {
-[Alias('New-AzK8sConfiguration')]
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.ISourceControlConfiguration])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Get-AzKubernetesConfigurationFlux {
+[Alias('Get-AzK8sConfigurationFlux')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the kubernetes cluster.
${ClusterName},
- [Parameter(Mandatory)]
- [Alias('SourceControlConfigurationName')]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # Name of the Source Control Configuration.
- ${Name},
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
- [System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- ${ClusterType},
-
- [Parameter()]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='Get')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The Azure subscription ID.
+ [System.String[]]
+ # The ID of the target subscription.
${SubscriptionId},
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.String]
- # Url of the SourceControl Repository.
- ${RepositoryUrl},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.Management.Automation.SwitchParameter]
- # Option to enable Helm Operator for this git configuration.
- ${EnableHelmOperator},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.String]
- # Values override for the operator Helm chart.
- ${HelmOperatorChartValue},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.String]
- # Version of the operator Helm chart.
- ${HelmOperatorChartVersion},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.String]
- # Instance name of the operator - identifying the specific configuration.
- ${OperatorInstanceName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.String]
- # The namespace to which this operator is installed to.
- # Maximum of 253 lower case alphanumeric characters, hyphen and period only.
- ${OperatorNamespace},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.String]
- # Any Parameters for the Operator instance in string format.
- ${OperatorParameter},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.Management.Automation.SwitchParameter]
- # If passed set the scope of the Configuration to Cluster (default is nameSpace).
- ${ClusterScoped},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('FluxConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # If passed set the scope of the Configuration to Cluster (default is nameSpace).
- ${SshKnownHost},
+ # Name of the Flux Configuration.
+ ${Name},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210301.IConfigurationProtectedSettings]))]
- [System.Collections.Hashtable]
- # Name-value pairs of protected configuration settings for the configuration
- ${ConfigurationProtectedSetting},
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -555,10 +591,30 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
- CreateExpanded = 'Az.KubernetesConfiguration.custom\New-AzKubernetesConfiguration';
+ List = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfigurationFlux';
+ Get = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfigurationFlux';
+ GetViaIdentity = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesConfigurationFlux';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -568,6 +624,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -576,144 +633,1445 @@ 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.KubernetesConfiguration.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
}
-}
+}
}
<#
.Synopsis
-Create a new Kubernetes Cluster Extension.
+Gets Kubernetes Cluster Extension.
.Description
-Create a new Kubernetes Cluster Extension.
+Gets Kubernetes Cluster Extension.
+.Example
+PS C:\> Get-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azpstest_gp
+
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
.Example
-PS C:\> New-AzKubernetesExtension -ClusterName azps_test_cluster -ClusterType ConnectedClusters -Name azps_test_extension -ResourceGroupName azps_test_group -ExtensionType Microsoft.Arcdataservices
+PS C:\> Get-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -ResourceGroupName azpstest_gp
-Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain ResourceGroupName
----- ------------- ------- ----------------- ----------------------- ------------ -----------------
-azps_test_extension microsoft.arcdataservices 1.0.16701001 Succeeded True Stable azps_test_group
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
+flux microsoft.flux 1.0.0 Succeeded True Stable
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
.Link
-https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azextension
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/get-azkubernetesextension
#>
-function New-AzKubernetesExtension {
-[Alias('New-AzK8sExtension')]
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtension])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Get-AzKubernetesExtension {
+[Alias('Get-AzK8sExtension')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the kubernetes cluster.
${ClusterName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
${ClusterType},
- [Parameter(Mandatory)]
- [Alias('ExtensionName')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
- [System.String]
- # Name of the Extension.
- ${Name},
-
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter()]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='Get')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The Azure subscription ID.
- # This is a GUID-formatted string (e.g.
- # 00000000-0000-0000-0000-000000000000)
+ [System.String[]]
+ # The ID of the target subscription.
${SubscriptionId},
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ExtensionName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # Type of the Extension, of which this resource is an instance of.
- # It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher.
- ${ExtensionType},
+ # Name of the Extension.
+ ${Name},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType])]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType]
- # The identity type.
- ${AkAssignedIdentityType},
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
[Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
- # Flag to note if this extension participates in auto upgrade of minor version, or not.
- ${AutoUpgradeMinorVersion},
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
+ List = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesExtension';
+ Get = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesExtension';
+ GetViaIdentity = 'Az.KubernetesConfiguration.custom\Get-AzKubernetesExtension';
+ }
+ if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $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.KubernetesConfiguration.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
+ }
+}
+}
+
+<#
+.Synopsis
+Create a new Kubernetes Source Control Configuration.
+.Description
+Create a new Kubernetes Source Control Configuration.
+.Example
+PS C:\> New-AzConnectedKubernetes -ClusterName azpstest_cluster_arc -ResourceGroupName azpstest_gp -Location eastus
+PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -Name azpstestk8s -RepositoryUrl http://github.com/xxxx -ClusterType ConnectedClusters
+
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s http://github.com/xxxx azpstest_gp
+.Example
+PS C:\> New-AzConnectedKubernetes -ClusterName azpstest_cluster_arc -ResourceGroupName azpstest_gp -Location eastus
+PS C:\> New-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -Name azpstestk8s-operator -RepositoryUrl http://github.com/xxxx -OperatorNamespace namespace-t01 -ClusterType ConnectedClusters
+
+Name RepositoryUrl ResourceGroupName
+---- ------------- -----------------
+azpstestk8s-operator http://github.com/xxxx azpstest_gp
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesconfiguration
+#>
+function New-AzKubernetesConfiguration {
+[Alias('New-AzK8sConfiguration')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.ISourceControlConfiguration])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(Mandatory)]
+ [Alias('SourceControlConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Source Control Configuration.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
[Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # Namespace where the extension Release must be placed, for a Cluster scoped extension.
- # If this namespace does not exist, it will be created
- ${ClusterReleaseNamespace},
+ # The ID of the target subscription.
+ ${SubscriptionId},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtensionPropertiesConfigurationProtectedSettings]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IConfigurationProtectedSettings]))]
[System.Collections.Hashtable]
- # Configuration settings that are sensitive, as name-value pairs for configuring this extension.
+ # Name-value pairs of protected configuration settings for the configuration
${ConfigurationProtectedSetting},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20210901.IExtensionPropertiesConfigurationSettings]))]
- [System.Collections.Hashtable]
- # Configuration settings, as name-value pairs for configuring this extension.
- ${ConfigurationSetting},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Option to enable Helm Operator for this git configuration.
+ ${EnableHelmOperator},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Values override for the operator Helm chart.
+ ${HelmOperatorChartValue},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Version of the operator Helm chart.
+ ${HelmOperatorChartVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Instance name of the operator - identifying the specific configuration.
+ ${OperatorInstanceName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The namespace to which this operator is installed to.
+ # Maximum of 253 lower case alphanumeric characters, hyphen and period only.
+ ${OperatorNamespace},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Any Parameters for the Operator instance in string format.
+ ${OperatorParam},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # If passed set the scope of the Configuration to Cluster (default is nameSpace).
+ ${ClusterScoped},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Url of the SourceControl Repository.
+ ${RepositoryUrl},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Base64-encoded known_hosts contents containing public SSH keys required to access private Git instances
+ ${SshKnownHost},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
+ CreateExpanded = 'Az.KubernetesConfiguration.custom\New-AzKubernetesConfiguration';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $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.KubernetesConfiguration.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
+ }
+}
+}
+
+<#
+.Synopsis
+Create a new Kubernetes Flux Configuration.
+.Description
+Create a new Kubernetes Flux Configuration.
+.Example
+PS C:\> $kustomizations = @{
+ infra=@{
+ Name = "infra"
+ Path = "./infrastructure"
+ Prune = "true"
+ };
+ apps=@{
+ Name = "apps"
+ Path = "./apps/staging"
+ Prune = "true"
+ DependsOn = @("infra")
+ }
+}
+PS C:\> New-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp -Namespace namespace-t01 -Scope 'cluster' -GitRepositoryUrl https://github.com/Azure/gitops-flux2-kustomize-helm-mt -RepositoryRefBranch main -SourceKind 'GitRepository' -GitRepositorySyncIntervalInSecond 600 -GitRepositoryTimeoutInSecond 600 -Suspend:$false -Kustomization $kustomizations
+
+Name ResourceGroupName
+---- -----------------
+azpstestflux-k8s azpstest_gp
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesconfigurationflux
+#>
+function New-AzKubernetesConfigurationFlux {
+[Alias('New-AzK8sConfigurationFlux')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfiguration])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(Mandatory)]
+ [Alias('FluxConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Security.SecureString]
+ # Plaintext access key used to securely access the S3 bucket
+ ${BucketAccessKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Specify whether to use insecure communication when puling data from the S3 bucket.
+ ${BucketInsecure},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.
+ ${BucketLocalAuthRef},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The bucket name to sync from the url endpoint for the flux configuration.
+ ${BucketName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The interval at which to re-reconcile the cluster git repository source with the remote.
+ ${BucketSyncIntervalInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The maximum time to attempt to reconcile the cluster git repository source with the remote.
+ ${BucketTimeoutInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The URL to sync for the flux configuration S3 bucket.
+ ${BucketUrl},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfigurationPropertiesConfigurationProtectedSettings]))]
+ [System.Collections.Hashtable]
+ # Key-value pairs of protected configuration settings for the configuration
+ ${ConfigurationProtectedSetting},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Base64-encoded HTTPS certificate authority contents used to access git private git repositories over HTTPS
+ ${GitRepositoryHttpsCaCert},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Plaintext HTTPS username used to access private git repositories over HTTPS
+ ${GitRepositoryHttpsUser},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets.
+ ${GitRepositoryLocalAuthRef},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Base64-encoded known_hosts value containing public SSH keys required to access private git repositories over SSH
+ ${GitRepositorySshKnownHost},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The interval at which to re-reconcile the cluster git repository source with the remote.
+ ${GitRepositorySyncIntervalInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Int64]
+ # The maximum time to attempt to reconcile the cluster git repository source with the remote.
+ ${GitRepositoryTimeoutInSecond},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The URL to sync for the flux configuration git repository.
+ ${GitRepositoryUrl},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IFluxConfigurationPropertiesKustomizations]))]
+ [System.Collections.Hashtable]
+ # Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster.
+ ${Kustomization},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The namespace to which this configuration is installed to.
+ # Maximum of 253 lower case alphanumeric characters, hyphen and period only.
+ ${Namespace},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The git repository branch name to checkout.
+ ${RepositoryRefBranch},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The commit SHA to checkout.
+ # This value must be combined with the branch name to be valid.
+ # This takes precedence over semver.
+ ${RepositoryRefCommit},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The semver range used to match against git repository tags.
+ # This takes precedence over tag.
+ ${RepositoryRefSemver},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # The git repository tag name to checkout.
+ # This takes precedence over branch.
+ ${RepositoryRefTag},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ScopeType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ScopeType]
+ # Scope at which the operator will be installed.
+ ${Scope},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.SourceKindType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.SourceKindType]
+ # Source Kind to pull the configuration data from.
+ ${SourceKind},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Whether this configuration should suspend its reconciliation of its kustomizations and sources.
+ ${Suspend},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
+ CreateExpanded = 'Az.KubernetesConfiguration.custom\New-AzKubernetesConfigurationFlux';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $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.KubernetesConfiguration.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
+ }
+}
+}
+
+<#
+.Synopsis
+Create a new Kubernetes Cluster Extension.
+.Description
+Create a new Kubernetes Cluster Extension.
+.Example
+PS C:\> New-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azpstest_gp -ExtensionType azuremonitor-containers
+
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+azpstest-extension azuremonitor-containers 2.9.2 Succeeded True Stable
+.Example
+PS C:\> New-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name flux -ResourceGroupName azpstest_gp -ExtensionType microsoft.flux -AutoUpgradeMinorVersion -ClusterReleaseNamespace flux-system -IdentityType 'SystemAssigned'
+
+Name ExtensionType Version ProvisioningState AutoUpgradeMinorVersion ReleaseTrain
+---- ------------- ------- ----------------- ----------------------- ------------
+flux microsoft.flux 1.0.0 Succeeded True Stable
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/new-azkubernetesextension
+#>
+function New-AzKubernetesExtension {
+[Alias('New-AzK8sExtension')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtension])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(Mandatory)]
+ [Alias('ExtensionName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Extension.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Type of the Extension, of which this resource is an instance of.
+ # It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher.
+ ${ExtensionType},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.AksIdentityType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.AksIdentityType]
+ # The identity type.
+ ${AkAssignedIdentityType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Flag to note if this extension participates in auto upgrade of minor version, or not.
+ ${AutoUpgradeMinorVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Namespace where the extension Release must be placed, for a Cluster scoped extension.
+ # If this namespace does not exist, it will be created
+ ${ClusterReleaseNamespace},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtensionPropertiesConfigurationProtectedSettings]))]
+ [System.Collections.Hashtable]
+ # Configuration settings that are sensitive, as name-value pairs for configuring this extension.
+ ${ConfigurationProtectedSetting},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.Api20220301.IExtensionPropertiesConfigurationSettings]))]
+ [System.Collections.Hashtable]
+ # Configuration settings, as name-value pairs for configuring this extension.
+ ${ConfigurationSetting},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType]
+ # The identity type.
+ ${IdentityType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # Namespace where the extension will be created for an Namespace scoped extension.
+ # If this namespace does not exist, it will be created
+ ${NamespaceTargetNamespace},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # ReleaseTrain this extension participates in for auto-upgrade (e.g.
+ # Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'.
+ ${ReleaseTrain},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [System.String]
+ # User-specified version of the extension for this extension to 'pin'.
+ # To use 'version', autoUpgradeMinorVersion must be 'false'.
+ ${Version},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
+ CreateExpanded = 'Az.KubernetesConfiguration.custom\New-AzKubernetesExtension';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $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.KubernetesConfiguration.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
+ }
+}
+}
+
+<#
+.Synopsis
+This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
+.Description
+This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
+.Example
+PS C:\> Remove-AzKubernetesConfiguration -ResourceGroupName azpstest_gp -ClusterName azpstest_cluster_arc -Name azpstestk8s -ClusterType ConnectedClusters
+
+.Example
+PS C:\> $kubConf = Get-AzKubernetesConfiguration -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -ResourceGroupName azpstest_gp -Name azpstestk8s-operator
+Remove-AzKubernetesConfiguration -InputObject $kubConf
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
+.Outputs
+System.Boolean
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/remove-azkubernetesconfiguration
+#>
+function Remove-AzKubernetesConfiguration {
+[Alias('Remove-AzK8sConfiguration')]
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('SourceControlConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Source Control Configuration.
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
+ Delete = 'Az.KubernetesConfiguration.custom\Remove-AzKubernetesConfiguration';
+ DeleteViaIdentity = 'Az.KubernetesConfiguration.custom\Remove-AzKubernetesConfiguration';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $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.KubernetesConfiguration.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
+ }
+}
+}
+
+<#
+.Synopsis
+This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
+.Description
+This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
+.Example
+PS C:\> Remove-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp
+
+.Example
+PS C:\> Get-AzKubernetesConfigurationFlux -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstestflux-k8s -ResourceGroupName azpstest_gp | Remove-AzKubernetesConfigurationFlux
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity
+.Outputs
+System.Boolean
+.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.
+
+INPUTOBJECT : Identity Parameter
+ [ClusterName ]: The name of the kubernetes cluster.
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
+ [ExtensionName ]: Name of the Extension.
+ [FluxConfigurationName ]: Name of the Flux Configuration.
+ [Id ]: Resource identity path
+ [OperationId ]: operation Id
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SourceControlConfigurationName ]: Name of the Source Control Configuration.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://docs.microsoft.com/powershell/module/az.kubernetesconfiguration/remove-azkubernetesconfigurationflux
+#>
+function Remove-AzKubernetesConfigurationFlux {
+[Alias('Remove-AzK8sConfigurationFlux')]
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The name of the kubernetes cluster.
+ ${ClusterName},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # The Kubernetes cluster resource name - i.e.
+ # managedClusters, connectedClusters, provisionedClusters.
+ ${ClusterType},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType])]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Support.ResourceIdentityType]
- # The identity type.
- ${IdentityType},
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('FluxConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [System.String]
+ # Name of the Flux Configuration.
+ ${Name},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
[System.String]
- # Namespace where the extension will be created for an Namespace scoped extension.
- # If this namespace does not exist, it will be created
- ${NamespaceTargetNamespace},
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # ReleaseTrain this extension participates in for auto-upgrade (e.g.
- # Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'.
- ${ReleaseTrain},
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Models.IKubernetesConfigurationIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
[Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Body')]
- [System.String]
- # Version of the extension for this extension, if it is 'pinned' to a specific version.
- # autoUpgradeMinorVersion must be 'false'.
- ${Version},
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Query')]
+ [System.Management.Automation.SwitchParameter]
+ # Delete the extension resource in Azure - not the normal asynchronous delete.
+ ${ForceDelete},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -755,6 +2113,12 @@ param(
# Run the command asynchronously
${NoWait},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.Category('Runtime')]
[System.Uri]
@@ -782,10 +2146,29 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.KubernetesConfiguration.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 = @{
- CreateExpanded = 'Az.KubernetesConfiguration.custom\New-AzKubernetesExtension';
+ Delete = 'Az.KubernetesConfiguration.custom\Remove-AzKubernetesConfigurationFlux';
+ DeleteViaIdentity = 'Az.KubernetesConfiguration.custom\Remove-AzKubernetesConfigurationFlux';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -795,6 +2178,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -803,30 +2187,45 @@ 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.KubernetesConfiguration.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
}
-}
+}
}
<#
.Synopsis
-This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
+Delete a Kubernetes Cluster Extension.
+This will cause the Agent to Uninstall the extension from the cluster.
.Description
-This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
-.Example
-PS C:\> Remove-AzKubernetesConfiguration -ResourceGroupName azps_test_group -ClusterName azps_test_cluster -Name azpstestk8s01 -ClusterType ConnectedClusters
-
+Delete a Kubernetes Cluster Extension.
+This will cause the Agent to Uninstall the extension from the cluster.
.Example
-PS C:\> $kubConf = Get-AzKubernetesConfiguration -ClusterName azps_test_cluster -ClusterType ConnectedClusters -ResourceGroupName azps_test_group -Name azpstestk8s02
-PS C:\> Remove-AzKubernetesConfiguration -InputObject $kubConf
+PS C:\> Remove-AzKubernetesExtension -ClusterName azpstest_cluster_arc -ClusterType ConnectedClusters -Name azpstest-extension -ResourceGroupName azpstest_gp
.Inputs
@@ -840,19 +2239,20 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[ClusterName ]: The name of the kubernetes cluster.
- [ClusterResourceName ]: The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- [ClusterRp ]: The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
+ [ClusterResourceName ]: The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
+ [ClusterRp ]: The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
[ExtensionName