From 1fb0e8d3546d8d5d26977b9fe03a63a3dbf6eb95 Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Tue, 20 May 2025 02:39:59 +0000
Subject: [PATCH] [skip ci] Archive 8538617563abf65e4d5ca0265cece070f5eac35f
---
.../Az.ServiceLinker.csproj | 2 +-
.../Az.ServiceLinker.format.ps1xml | 934 +-
.../Az.ServiceLinker.psd1 | 3 +-
.../Properties/AssemblyInfo.cs | 31 +-
.../check-dependencies.ps1 | 6 +-
...viceLinkerConfigurationForContainerApp.ps1 | 20 +-
...rviceLinkerConfigurationForSpringCloud.ps1 | 22 +-
...-AzServiceLinkerConfigurationForWebApp.ps1 | 20 +-
.../Get-AzServiceLinkerConfigurationName.ps1 | 16 +-
.../Get-AzServiceLinkerForContainerApp.ps1 | 22 +-
.../Get-AzServiceLinkerForSpringCloud.ps1 | 24 +-
.../exports/Get-AzServiceLinkerForWebApp.ps1 | 22 +-
...New-AzServiceLinkerAzureResourceObject.ps1 | 15 +-
...ceLinkerConfluentBootstrapServerObject.ps1 | 23 +-
...iceLinkerConfluentSchemaRegistryObject.ps1 | 23 +-
.../New-AzServiceLinkerForContainerApp.ps1 | 64 +-
.../New-AzServiceLinkerForSpringCloud.ps1 | 66 +-
.../exports/New-AzServiceLinkerForWebApp.ps1 | 64 +-
...ew-AzServiceLinkerSecretAuthInfoObject.ps1 | 26 +-
...erServicePrincipalSecretAuthInfoObject.ps1 | 30 +-
...erSystemAssignedIdentityAuthInfoObject.ps1 | 29 +-
...nkerUserAssignedIdentityAuthInfoObject.ps1 | 29 +-
.../exports/ProxyCmdletDefinitions.ps1 | 767 +-
.../Remove-AzServiceLinkerForContainerApp.ps1 | 18 +-
.../Remove-AzServiceLinkerForSpringcloud.ps1 | 20 +-
.../Remove-AzServiceLinkerForWebApp.ps1 | 18 +-
.../Test-AzServiceLinkerForContainerApp.ps1 | 22 +-
.../Test-AzServiceLinkerForSpringCloud.ps1 | 24 +-
.../exports/Test-AzServiceLinkerForWebApp.ps1 | 22 +-
.../Update-AzServiceLinkerForContainerApp.ps1 | 42 +-
.../Update-AzServiceLinkerForSpringCloud.ps1 | 44 +-
.../Update-AzServiceLinkerForWebApp.ps1 | 42 +-
.../ServiceLinker.Autorest/generate-info.json | 2 +-
.../generated/Module.cs | 27 +-
.../AccessKeyInfoBase.PowerShell.cs | 50 +-
.../AccessKeyInfoBase.TypeConverter.cs | 6 +-
.../AccessKeyInfoBase.cs | 35 +-
.../AccessKeyInfoBase.json.cs | 12 +-
.../generated/api/Models/Any.PowerShell.cs | 24 +-
.../generated/api/Models/Any.cs | 6 +-
.../generated/api/Models/Any.json.cs | 2 +-
...eateOrUpdateDryrunParameters.PowerShell.cs | 330 -
.../CreateOrUpdateDryrunParameters.cs | 193 -
.../DryrunResource.PowerShell.cs | 266 -
.../Api20221101Preview/DryrunResource.cs | 196 -
.../LinkerPatch.PowerShell.cs | 328 -
.../LinkerProperties.PowerShell.cs | 322 -
.../LinkerResource.PowerShell.cs | 410 -
.../AuthInfoBase.PowerShell.cs | 44 +-
.../AuthInfoBase.TypeConverter.cs | 6 +-
.../{Api20221101Preview => }/AuthInfoBase.cs | 21 +-
.../AuthInfoBase.json.cs | 14 +-
.../AzureKeyVaultProperties.PowerShell.cs | 50 +-
.../AzureKeyVaultProperties.TypeConverter.cs | 6 +-
.../AzureKeyVaultProperties.cs | 22 +-
.../AzureKeyVaultProperties.json.cs | 12 +-
.../AzureResource.PowerShell.cs | 52 +-
.../AzureResource.TypeConverter.cs | 6 +-
.../{Api20221101Preview => }/AzureResource.cs | 35 +-
.../AzureResource.json.cs | 14 +-
.../AzureResourcePropertiesBase.PowerShell.cs | 46 +-
...ureResourcePropertiesBase.TypeConverter.cs | 6 +-
.../AzureResourcePropertiesBase.cs | 11 +-
.../AzureResourcePropertiesBase.json.cs | 14 +-
...rrorDryrunPrerequisiteResult.PowerShell.cs | 52 +-
...rDryrunPrerequisiteResult.TypeConverter.cs | 6 +-
.../BasicErrorDryrunPrerequisiteResult.cs | 25 +-
...BasicErrorDryrunPrerequisiteResult.json.cs | 14 +-
.../ConfigurationInfo.PowerShell.cs | 58 +-
.../ConfigurationInfo.TypeConverter.cs | 6 +-
.../ConfigurationInfo.cs | 62 +-
.../ConfigurationInfo.json.cs | 16 +-
...InfoAdditionalConfigurations.PowerShell.cs | 40 +-
...oAdditionalConfigurations.TypeConverter.cs | 6 +-
...nfigurationInfoAdditionalConfigurations.cs | 6 +-
...InfoAdditionalConfigurations.dictionary.cs | 4 +-
...rationInfoAdditionalConfigurations.json.cs | 8 +-
...figurationInfoCustomizedKeys.PowerShell.cs | 42 +-
...urationInfoCustomizedKeys.TypeConverter.cs | 6 +-
.../ConfigurationInfoCustomizedKeys.cs | 6 +-
...figurationInfoCustomizedKeys.dictionary.cs | 4 +-
.../ConfigurationInfoCustomizedKeys.json.cs | 8 +-
.../ConfigurationName.PowerShell.cs | 50 +-
.../ConfigurationName.TypeConverter.cs | 6 +-
.../ConfigurationName.cs | 12 +-
.../ConfigurationName.json.cs | 12 +-
.../ConfigurationNameItem.PowerShell.cs | 62 +-
.../ConfigurationNameItem.TypeConverter.cs | 6 +-
.../ConfigurationNameItem.cs | 56 +-
.../ConfigurationNameItem.json.cs | 10 +-
.../ConfigurationNameResult.PowerShell.cs | 50 +-
.../ConfigurationNameResult.TypeConverter.cs | 6 +-
.../ConfigurationNameResult.cs | 24 +-
.../ConfigurationNameResult.json.cs | 14 +-
.../ConfigurationNames.PowerShell.cs | 58 +-
.../ConfigurationNames.TypeConverter.cs | 6 +-
.../ConfigurationNames.cs | 52 +-
.../ConfigurationNames.json.cs | 16 +-
.../ConfigurationResult.PowerShell.cs | 46 +-
.../ConfigurationResult.TypeConverter.cs | 6 +-
.../ConfigurationResult.cs | 19 +-
.../ConfigurationResult.json.cs | 10 +-
.../ConfluentBootstrapServer.PowerShell.cs | 50 +-
.../ConfluentBootstrapServer.TypeConverter.cs | 6 +-
.../ConfluentBootstrapServer.cs | 22 +-
.../ConfluentBootstrapServer.json.cs | 12 +-
.../ConfluentSchemaRegistry.PowerShell.cs | 50 +-
.../ConfluentSchemaRegistry.TypeConverter.cs | 6 +-
.../ConfluentSchemaRegistry.cs | 22 +-
.../ConfluentSchemaRegistry.json.cs | 12 +-
...eateOrUpdateDryrunParameters.PowerShell.cs | 348 +
...eOrUpdateDryrunParameters.TypeConverter.cs | 6 +-
.../Models/CreateOrUpdateDryrunParameters.cs | 209 +
.../CreateOrUpdateDryrunParameters.json.cs | 12 +-
.../DatabaseAadAuthInfo.PowerShell.cs | 46 +-
.../DatabaseAadAuthInfo.TypeConverter.cs | 6 +-
.../DatabaseAadAuthInfo.cs | 9 +-
.../DatabaseAadAuthInfo.json.cs | 10 +-
.../DryrunList.PowerShell.cs | 48 +-
.../DryrunList.TypeConverter.cs | 6 +-
.../{Api20221101Preview => }/DryrunList.cs | 22 +-
.../DryrunList.json.cs | 12 +-
.../DryrunOperationPreview.PowerShell.cs | 62 +-
.../DryrunOperationPreview.TypeConverter.cs | 6 +-
.../DryrunOperationPreview.cs | 33 +-
.../DryrunOperationPreview.json.cs | 18 +-
.../DryrunParameters.PowerShell.cs | 46 +-
.../DryrunParameters.TypeConverter.cs | 6 +-
.../DryrunParameters.cs | 11 +-
.../DryrunParameters.json.cs | 14 +-
.../DryrunPatch.PowerShell.cs | 64 +-
.../DryrunPatch.TypeConverter.cs | 6 +-
.../{Api20221101Preview => }/DryrunPatch.cs | 62 +-
.../DryrunPatch.json.cs | 10 +-
.../DryrunPrerequisiteResult.PowerShell.cs | 46 +-
.../DryrunPrerequisiteResult.TypeConverter.cs | 6 +-
.../DryrunPrerequisiteResult.cs | 21 +-
.../DryrunPrerequisiteResult.json.cs | 14 +-
.../DryrunProperties.PowerShell.cs | 62 +-
.../DryrunProperties.TypeConverter.cs | 6 +-
.../DryrunProperties.cs | 56 +-
.../DryrunProperties.json.cs | 22 +-
.../api/Models/DryrunResource.PowerShell.cs | 284 +
.../DryrunResource.TypeConverter.cs | 6 +-
.../generated/api/Models/DryrunResource.cs | 234 +
.../DryrunResource.json.cs | 14 +-
.../ErrorAdditionalInfo.PowerShell.cs | 48 +-
.../ErrorAdditionalInfo.TypeConverter.cs | 6 +-
.../Models/{Api30 => }/ErrorAdditionalInfo.cs | 16 +-
.../{Api30 => }/ErrorAdditionalInfo.json.cs | 16 +-
.../{Api30 => }/ErrorDetail.PowerShell.cs | 60 +-
.../{Api30 => }/ErrorDetail.TypeConverter.cs | 6 +-
.../api/Models/{Api30 => }/ErrorDetail.cs | 51 +-
.../Models/{Api30 => }/ErrorDetail.json.cs | 28 +-
.../{Api30 => }/ErrorResponse.PowerShell.cs | 64 +-
.../ErrorResponse.TypeConverter.cs | 6 +-
.../api/Models/{Api30 => }/ErrorResponse.cs | 61 +-
.../Models/{Api30 => }/ErrorResponse.json.cs | 10 +-
.../FirewallRules.PowerShell.cs | 52 +-
.../FirewallRules.TypeConverter.cs | 6 +-
.../{Api20221101Preview => }/FirewallRules.cs | 47 +-
.../FirewallRules.json.cs | 14 +-
...ultSecretReferenceSecretInfo.PowerShell.cs | 52 +-
...SecretReferenceSecretInfo.TypeConverter.cs | 6 +-
.../KeyVaultSecretReferenceSecretInfo.cs | 25 +-
.../KeyVaultSecretReferenceSecretInfo.json.cs | 14 +-
.../KeyVaultSecretUriSecretInfo.PowerShell.cs | 50 +-
...yVaultSecretUriSecretInfo.TypeConverter.cs | 6 +-
.../KeyVaultSecretUriSecretInfo.cs | 22 +-
.../KeyVaultSecretUriSecretInfo.json.cs | 12 +-
.../api/Models/LinkerPatch.PowerShell.cs | 348 +
.../LinkerPatch.TypeConverter.cs | 6 +-
.../{Api20221101Preview => }/LinkerPatch.cs | 226 +-
.../LinkerPatch.json.cs | 10 +-
.../api/Models/LinkerProperties.PowerShell.cs | 340 +
.../LinkerProperties.TypeConverter.cs | 6 +-
.../LinkerProperties.cs | 236 +-
.../LinkerProperties.json.cs | 28 +-
.../api/Models/LinkerResource.PowerShell.cs | 428 +
.../LinkerResource.TypeConverter.cs | 6 +-
.../LinkerResource.cs | 288 +-
.../LinkerResource.json.cs | 14 +-
.../{Api30 => }/Operation.PowerShell.cs | 76 +-
.../{Api30 => }/Operation.TypeConverter.cs | 6 +-
.../api/Models/{Api30 => }/Operation.cs | 86 +-
.../api/Models/{Api30 => }/Operation.json.cs | 26 +-
.../OperationDisplay.PowerShell.cs | 56 +-
.../OperationDisplay.TypeConverter.cs | 6 +-
.../Models/{Api30 => }/OperationDisplay.cs | 26 +-
.../{Api30 => }/OperationDisplay.json.cs | 24 +-
.../OperationListResult.PowerShell.cs | 48 +-
.../OperationListResult.TypeConverter.cs | 6 +-
.../Models/{Api30 => }/OperationListResult.cs | 26 +-
.../{Api30 => }/OperationListResult.json.cs | 16 +-
...singDryrunPrerequisiteResult.PowerShell.cs | 56 +-
...gDryrunPrerequisiteResult.TypeConverter.cs | 6 +-
...missionsMissingDryrunPrerequisiteResult.cs | 36 +-
...onsMissingDryrunPrerequisiteResult.json.cs | 16 +-
.../{Api30 => }/ProxyResource.PowerShell.cs | 80 +-
.../ProxyResource.TypeConverter.cs | 6 +-
.../api/Models/{Api30 => }/ProxyResource.cs | 61 +-
.../Models/{Api30 => }/ProxyResource.json.cs | 10 +-
.../PublicNetworkSolution.PowerShell.cs | 66 +-
.../PublicNetworkSolution.TypeConverter.cs | 6 +-
.../PublicNetworkSolution.cs | 79 +-
.../PublicNetworkSolution.json.cs | 14 +-
.../Models/{Api30 => }/Resource.PowerShell.cs | 80 +-
.../{Api30 => }/Resource.TypeConverter.cs | 6 +-
.../api/Models/{Api30 => }/Resource.cs | 113 +-
.../api/Models/{Api30 => }/Resource.json.cs | 24 +-
.../ResourceList.PowerShell.cs | 48 +-
.../ResourceList.TypeConverter.cs | 6 +-
.../{Api20221101Preview => }/ResourceList.cs | 22 +-
.../ResourceList.json.cs | 12 +-
.../SecretAuthInfo.PowerShell.cs | 54 +-
.../SecretAuthInfo.TypeConverter.cs | 6 +-
.../SecretAuthInfo.cs | 36 +-
.../SecretAuthInfo.json.cs | 14 +-
.../SecretInfoBase.PowerShell.cs | 46 +-
.../SecretInfoBase.TypeConverter.cs | 6 +-
.../SecretInfoBase.cs | 21 +-
.../SecretInfoBase.json.cs | 14 +-
.../SecretStore.PowerShell.cs | 48 +-
.../SecretStore.TypeConverter.cs | 6 +-
.../{Api20221101Preview => }/SecretStore.cs | 12 +-
.../SecretStore.json.cs | 12 +-
.../SelfHostedServer.PowerShell.cs | 50 +-
.../SelfHostedServer.TypeConverter.cs | 6 +-
.../SelfHostedServer.cs | 22 +-
.../SelfHostedServer.json.cs | 12 +-
.../ServiceLinkerIdentity.PowerShell.cs | 20 +
.../api/Models/ServiceLinkerIdentity.cs | 24 +
.../api/Models/ServiceLinkerIdentity.json.cs | 16 +-
...PrincipalCertificateAuthInfo.PowerShell.cs | 64 +-
...ncipalCertificateAuthInfo.TypeConverter.cs | 6 +-
.../ServicePrincipalCertificateAuthInfo.cs | 55 +-
...ervicePrincipalCertificateAuthInfo.json.cs | 20 +-
...rvicePrincipalSecretAuthInfo.PowerShell.cs | 70 +-
...cePrincipalSecretAuthInfo.TypeConverter.cs | 6 +-
.../ServicePrincipalSecretAuthInfo.cs | 65 +-
.../ServicePrincipalSecretAuthInfo.json.cs | 22 +-
.../SourceConfiguration.PowerShell.cs | 50 +-
.../SourceConfiguration.TypeConverter.cs | 6 +-
.../SourceConfiguration.cs | 12 +-
.../SourceConfiguration.json.cs | 12 +-
...stemAssignedIdentityAuthInfo.PowerShell.cs | 58 +-
...mAssignedIdentityAuthInfo.TypeConverter.cs | 6 +-
.../SystemAssignedIdentityAuthInfo.cs | 56 +-
.../SystemAssignedIdentityAuthInfo.json.cs | 16 +-
.../{Api30 => }/SystemData.PowerShell.cs | 64 +-
.../{Api30 => }/SystemData.TypeConverter.cs | 6 +-
.../api/Models/{Api30 => }/SystemData.cs | 48 +-
.../api/Models/{Api30 => }/SystemData.json.cs | 20 +-
.../TargetServiceBase.PowerShell.cs | 46 +-
.../TargetServiceBase.TypeConverter.cs | 6 +-
.../TargetServiceBase.cs | 21 +-
.../TargetServiceBase.json.cs | 14 +-
.../UserAccountAuthInfo.PowerShell.cs | 62 +-
.../UserAccountAuthInfo.TypeConverter.cs | 6 +-
.../UserAccountAuthInfo.cs | 59 +-
.../UserAccountAuthInfo.json.cs | 18 +-
...UserAssignedIdentityAuthInfo.PowerShell.cs | 66 +-
...rAssignedIdentityAuthInfo.TypeConverter.cs | 6 +-
.../UserAssignedIdentityAuthInfo.cs | 62 +-
.../UserAssignedIdentityAuthInfo.json.cs | 20 +-
.../VNetSolution.PowerShell.cs | 48 +-
.../VNetSolution.TypeConverter.cs | 6 +-
.../{Api20221101Preview => }/VNetSolution.cs | 36 +-
.../VNetSolution.json.cs | 12 +-
.../ValidateOperationResult.PowerShell.cs | 86 +-
.../ValidateOperationResult.TypeConverter.cs | 6 +-
.../ValidateOperationResult.cs | 74 +-
.../ValidateOperationResult.json.cs | 14 +-
.../ValidateResult.PowerShell.cs | 74 +-
.../ValidateResult.TypeConverter.cs | 6 +-
.../ValidateResult.cs | 52 +-
.../ValidateResult.json.cs | 24 +-
.../ValidationResultItem.PowerShell.cs | 62 +-
.../ValidationResultItem.TypeConverter.cs | 6 +-
.../ValidationResultItem.cs | 33 +-
.../ValidationResultItem.json.cs | 18 +-
.../ValueSecretInfo.PowerShell.cs | 50 +-
.../ValueSecretInfo.TypeConverter.cs | 6 +-
.../ValueSecretInfo.cs | 22 +-
.../ValueSecretInfo.json.cs | 12 +-
.../generated/api/ServiceLinker.cs | 10181 ++++++++++++----
.../Support/AccessKeyPermissions.Completer.cs | 51 -
.../AccessKeyPermissions.TypeConverter.cs | 59 -
.../api/Support/AccessKeyPermissions.cs | 103 -
.../api/Support/ActionType.Completer.cs | 45 -
.../api/Support/ActionType.TypeConverter.cs | 61 -
.../generated/api/Support/ActionType.cs | 102 -
.../api/Support/AllowType.Completer.cs | 39 -
.../api/Support/AllowType.TypeConverter.cs | 59 -
.../generated/api/Support/AllowType.cs | 98 -
.../api/Support/AuthType.Completer.cs | 59 -
.../api/Support/AuthType.TypeConverter.cs | 59 -
.../generated/api/Support/AuthType.cs | 108 -
.../api/Support/ClientType.Completer.cs | 75 -
.../api/Support/ClientType.TypeConverter.cs | 59 -
.../generated/api/Support/ClientType.cs | 116 -
.../api/Support/CreatedByType.Completer.cs | 47 -
.../Support/CreatedByType.TypeConverter.cs | 59 -
.../generated/api/Support/CreatedByType.cs | 102 -
.../DeleteOrUpdateBehavior.Completer.cs | 41 -
.../DeleteOrUpdateBehavior.TypeConverter.cs | 61 -
.../api/Support/DeleteOrUpdateBehavior.cs | 100 -
.../DryrunPrerequisiteResultType.Completer.cs | 39 -
...runPrerequisiteResultType.TypeConverter.cs | 59 -
.../Support/DryrunPrerequisiteResultType.cs | 102 -
.../DryrunPreviewOperationType.Completer.cs | 43 -
...ryrunPreviewOperationType.TypeConverter.cs | 59 -
.../api/Support/DryrunPreviewOperationType.cs | 102 -
.../generated/api/Support/Origin.Completer.cs | 46 -
.../api/Support/Origin.TypeConverter.cs | 62 -
.../generated/api/Support/Origin.cs | 103 -
.../api/Support/SecretType.Completer.cs | 43 -
.../api/Support/SecretType.TypeConverter.cs | 59 -
.../generated/api/Support/SecretType.cs | 100 -
.../Support/TargetServiceType.Completer.cs | 47 -
.../TargetServiceType.TypeConverter.cs | 59 -
.../api/Support/TargetServiceType.cs | 102 -
.../api/Support/VNetSolutionType.Completer.cs | 39 -
.../Support/VNetSolutionType.TypeConverter.cs | 59 -
.../generated/api/Support/VNetSolutionType.cs | 98 -
.../ValidationResultStatus.Completer.cs | 43 -
.../ValidationResultStatus.TypeConverter.cs | 59 -
.../api/Support/ValidationResultStatus.cs | 100 -
...etAzServiceLinkerConfigurationName_List.cs | 116 +-
.../GetAzServiceLinkerConfiguration_List.cs | 113 +-
.../cmdlets/GetAzServiceLinkerDryrun_Get.cs | 109 +-
...GetAzServiceLinkerDryrun_GetViaIdentity.cs | 105 +-
.../cmdlets/GetAzServiceLinkerDryrun_List.cs | 116 +-
.../GetAzServiceLinkerOperation_List.cs | 112 +-
.../cmdlets/GetAzServiceLinker_Get.cs | 109 +-
.../GetAzServiceLinker_GetViaIdentity.cs | 105 +-
.../cmdlets/GetAzServiceLinker_List.cs | 116 +-
...ewAzServiceLinkerConfiguration_Generate.cs | 120 +-
...iceLinkerConfiguration_GenerateExpanded.cs | 139 +-
...LinkerConfiguration_GenerateViaIdentity.cs | 120 +-
...nfiguration_GenerateViaIdentityExpanded.cs | 139 +-
...erConfiguration_GenerateViaJsonFilePath.cs | 514 +
...nkerConfiguration_GenerateViaJsonString.cs | 512 +
...NewAzServiceLinkerDryrun_CreateExpanded.cs | 131 +-
...eLinkerDryrun_CreateViaIdentityExpanded.cs | 568 +
.../NewAzServiceLinker_CreateExpanded.cs | 225 +-
...ServiceLinker_CreateViaIdentityExpanded.cs | 825 ++
.../RemoveAzServiceLinkerDryrun_Delete.cs | 77 +-
...AzServiceLinkerDryrun_DeleteViaIdentity.cs | 73 +-
.../cmdlets/RemoveAzServiceLinker_Delete.cs | 95 +-
...RemoveAzServiceLinker_DeleteViaIdentity.cs | 91 +-
.../cmdlets/TestAzServiceLinker_Validate.cs | 127 +-
...TestAzServiceLinker_ValidateViaIdentity.cs | 123 +-
...ateAzServiceLinkerDryrun_UpdateExpanded.cs | 131 +-
...eLinkerDryrun_UpdateViaIdentityExpanded.cs | 133 +-
.../UpdateAzServiceLinker_UpdateExpanded.cs | 215 +-
...ServiceLinker_UpdateViaIdentityExpanded.cs | 217 +-
.../Attributes/ExternalDocsAttribute.cs | 30 +
.../PSArgumentCompleterAttribute.cs | 52 +
.../BuildTime/Cmdlets/ExportFormatPs1xml.cs | 6 +-
.../BuildTime/Cmdlets/ExportModelSurface.cs | 2 +-
.../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 4 +-
.../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 8 +-
.../BuildTime/Cmdlets/ExportTestStub.cs | 211 +-
.../runtime/BuildTime/MarkdownRenderer.cs | 2 +-
.../BuildTime/Models/PsMarkdownTypes.cs | 43 +-
.../BuildTime/Models/PsProxyOutputs.cs | 60 +-
.../runtime/BuildTime/Models/PsProxyTypes.cs | 56 +-
.../runtime/BuildTime/PsAttributes.cs | 15 +
.../runtime/BuildTime/PsExtensions.cs | 7 +
.../generated/runtime/BuildTime/PsHelpers.cs | 4 +-
.../generated/runtime/Context.cs | 33 +
.../generated/runtime/Events.cs | 4 +-
.../generated/runtime/ISendAsync.cs | 113 +
.../generated/runtime/InfoAttribute.cs | 4 +
.../generated/runtime/InputHandler.cs | 22 +
.../runtime/Nodes/Collections/XNodeArray.cs | 5 +
.../generated/runtime/SerializationMode.cs | 8 +-
.../runtime/TypeConverterExtensions.cs | 50 +
.../internal/Get-AzServiceLinker.ps1 | 11 +-
.../Get-AzServiceLinkerConfiguration.ps1 | 10 +-
.../internal/Get-AzServiceLinkerDryrun.ps1 | 11 +-
.../internal/Get-AzServiceLinkerOperation.ps1 | 10 +-
.../internal/New-AzServiceLinker.ps1 | 89 +-
.../New-AzServiceLinkerConfiguration.ps1 | 46 +-
.../internal/New-AzServiceLinkerDryrun.ps1 | 37 +-
.../internal/ProxyCmdletDefinitions.ps1 | 299 +-
.../internal/Remove-AzServiceLinker.ps1 | 7 +-
.../internal/Remove-AzServiceLinkerDryrun.ps1 | 7 +-
.../internal/Test-AzServiceLinker.ps1 | 11 +-
.../internal/Update-AzServiceLinker.ps1 | 49 +-
.../internal/Update-AzServiceLinkerDryrun.ps1 | 11 +-
.../resources/README.md | 11 +
.../ServiceLinker.Autorest/test-module.ps1 | 10 +-
394 files changed, 22010 insertions(+), 11905 deletions(-)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AccessKeyInfoBase.PowerShell.cs (73%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AccessKeyInfoBase.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AccessKeyInfoBase.cs (74%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AccessKeyInfoBase.json.cs (88%)
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.PowerShell.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/DryrunResource.PowerShell.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/DryrunResource.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/LinkerPatch.PowerShell.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/LinkerProperties.PowerShell.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/LinkerResource.PowerShell.cs
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AuthInfoBase.PowerShell.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AuthInfoBase.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AuthInfoBase.cs (66%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AuthInfoBase.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureKeyVaultProperties.PowerShell.cs (72%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureKeyVaultProperties.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureKeyVaultProperties.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureKeyVaultProperties.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureResource.PowerShell.cs (70%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureResource.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureResource.cs (75%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureResource.json.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureResourcePropertiesBase.PowerShell.cs (76%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureResourcePropertiesBase.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureResourcePropertiesBase.cs (89%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/AzureResourcePropertiesBase.json.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/BasicErrorDryrunPrerequisiteResult.PowerShell.cs (70%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/BasicErrorDryrunPrerequisiteResult.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/BasicErrorDryrunPrerequisiteResult.cs (81%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/BasicErrorDryrunPrerequisiteResult.json.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfo.PowerShell.cs (63%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfo.cs (72%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfo.json.cs (91%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoAdditionalConfigurations.PowerShell.cs (81%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoAdditionalConfigurations.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoAdditionalConfigurations.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoAdditionalConfigurations.dictionary.cs (96%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoAdditionalConfigurations.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoCustomizedKeys.PowerShell.cs (81%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoCustomizedKeys.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoCustomizedKeys.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoCustomizedKeys.dictionary.cs (96%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationInfoCustomizedKeys.json.cs (95%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationName.PowerShell.cs (74%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationName.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationName.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationName.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNameItem.PowerShell.cs (60%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNameItem.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNameItem.cs (55%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNameItem.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNameResult.PowerShell.cs (70%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNameResult.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNameResult.cs (76%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNameResult.json.cs (89%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNames.PowerShell.cs (65%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNames.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNames.cs (65%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationNames.json.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationResult.PowerShell.cs (72%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationResult.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationResult.cs (72%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfigurationResult.json.cs (89%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfluentBootstrapServer.PowerShell.cs (75%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfluentBootstrapServer.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfluentBootstrapServer.cs (80%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfluentBootstrapServer.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfluentSchemaRegistry.PowerShell.cs (74%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfluentSchemaRegistry.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfluentSchemaRegistry.cs (80%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ConfluentSchemaRegistry.json.cs (93%)
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/CreateOrUpdateDryrunParameters.PowerShell.cs
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/CreateOrUpdateDryrunParameters.TypeConverter.cs (97%)
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/CreateOrUpdateDryrunParameters.cs
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/CreateOrUpdateDryrunParameters.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DatabaseAadAuthInfo.PowerShell.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DatabaseAadAuthInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DatabaseAadAuthInfo.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DatabaseAadAuthInfo.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunList.PowerShell.cs (71%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunList.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunList.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunList.json.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunOperationPreview.PowerShell.cs (66%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunOperationPreview.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunOperationPreview.cs (86%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunOperationPreview.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunParameters.PowerShell.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunParameters.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunParameters.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunParameters.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunPatch.PowerShell.cs (57%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunPatch.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunPatch.cs (52%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunPatch.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunPrerequisiteResult.PowerShell.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunPrerequisiteResult.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunPrerequisiteResult.cs (70%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunPrerequisiteResult.json.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunProperties.PowerShell.cs (59%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunProperties.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunProperties.cs (61%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunProperties.json.cs (86%)
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/DryrunResource.PowerShell.cs
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunResource.TypeConverter.cs (97%)
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/DryrunResource.cs
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/DryrunResource.json.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorAdditionalInfo.PowerShell.cs (73%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorAdditionalInfo.TypeConverter.cs (98%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorAdditionalInfo.cs (86%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorAdditionalInfo.json.cs (95%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorDetail.PowerShell.cs (62%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorDetail.TypeConverter.cs (98%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorDetail.cs (68%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorDetail.json.cs (87%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorResponse.PowerShell.cs (61%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorResponse.TypeConverter.cs (98%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorResponse.cs (60%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ErrorResponse.json.cs (95%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/FirewallRules.PowerShell.cs (70%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/FirewallRules.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/FirewallRules.cs (73%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/FirewallRules.json.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/KeyVaultSecretReferenceSecretInfo.PowerShell.cs (72%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/KeyVaultSecretReferenceSecretInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/KeyVaultSecretReferenceSecretInfo.cs (85%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/KeyVaultSecretReferenceSecretInfo.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/KeyVaultSecretUriSecretInfo.PowerShell.cs (74%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/KeyVaultSecretUriSecretInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/KeyVaultSecretUriSecretInfo.cs (82%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/KeyVaultSecretUriSecretInfo.json.cs (93%)
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/LinkerPatch.PowerShell.cs
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/LinkerPatch.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/LinkerPatch.cs (56%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/LinkerPatch.json.cs (94%)
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/LinkerProperties.PowerShell.cs
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/LinkerProperties.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/LinkerProperties.cs (59%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/LinkerProperties.json.cs (89%)
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/LinkerResource.PowerShell.cs
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/LinkerResource.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/LinkerResource.cs (54%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/LinkerResource.json.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/Operation.PowerShell.cs (61%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/Operation.TypeConverter.cs (98%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/Operation.cs (76%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/Operation.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/OperationDisplay.PowerShell.cs (69%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/OperationDisplay.TypeConverter.cs (98%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/OperationDisplay.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/OperationDisplay.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/OperationListResult.PowerShell.cs (71%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/OperationListResult.TypeConverter.cs (98%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/OperationListResult.cs (75%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/OperationListResult.json.cs (91%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/PermissionsMissingDryrunPrerequisiteResult.PowerShell.cs (66%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/PermissionsMissingDryrunPrerequisiteResult.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/PermissionsMissingDryrunPrerequisiteResult.cs (80%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/PermissionsMissingDryrunPrerequisiteResult.json.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ProxyResource.PowerShell.cs (58%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ProxyResource.TypeConverter.cs (98%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ProxyResource.cs (52%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/ProxyResource.json.cs (95%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/PublicNetworkSolution.PowerShell.cs (58%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/PublicNetworkSolution.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/PublicNetworkSolution.cs (64%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/PublicNetworkSolution.json.cs (92%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/Resource.PowerShell.cs (57%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/Resource.TypeConverter.cs (98%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/Resource.cs (63%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/Resource.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ResourceList.PowerShell.cs (70%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ResourceList.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ResourceList.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ResourceList.json.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretAuthInfo.PowerShell.cs (70%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretAuthInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretAuthInfo.cs (73%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretAuthInfo.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretInfoBase.PowerShell.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretInfoBase.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretInfoBase.cs (70%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretInfoBase.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretStore.PowerShell.cs (74%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretStore.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretStore.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SecretStore.json.cs (95%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SelfHostedServer.PowerShell.cs (74%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SelfHostedServer.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SelfHostedServer.cs (80%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SelfHostedServer.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ServicePrincipalCertificateAuthInfo.PowerShell.cs (62%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ServicePrincipalCertificateAuthInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ServicePrincipalCertificateAuthInfo.cs (79%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ServicePrincipalCertificateAuthInfo.json.cs (91%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ServicePrincipalSecretAuthInfo.PowerShell.cs (60%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ServicePrincipalSecretAuthInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ServicePrincipalSecretAuthInfo.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ServicePrincipalSecretAuthInfo.json.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SourceConfiguration.PowerShell.cs (74%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SourceConfiguration.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SourceConfiguration.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SourceConfiguration.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SystemAssignedIdentityAuthInfo.PowerShell.cs (66%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SystemAssignedIdentityAuthInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SystemAssignedIdentityAuthInfo.cs (69%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/SystemAssignedIdentityAuthInfo.json.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/SystemData.PowerShell.cs (63%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/SystemData.TypeConverter.cs (98%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/SystemData.cs (80%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api30 => }/SystemData.json.cs (95%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/TargetServiceBase.PowerShell.cs (77%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/TargetServiceBase.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/TargetServiceBase.cs (70%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/TargetServiceBase.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/UserAccountAuthInfo.PowerShell.cs (65%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/UserAccountAuthInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/UserAccountAuthInfo.cs (72%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/UserAccountAuthInfo.json.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/UserAssignedIdentityAuthInfo.PowerShell.cs (62%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/UserAssignedIdentityAuthInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/UserAssignedIdentityAuthInfo.cs (75%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/UserAssignedIdentityAuthInfo.json.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/VNetSolution.PowerShell.cs (74%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/VNetSolution.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/VNetSolution.cs (65%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/VNetSolution.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidateOperationResult.PowerShell.cs (51%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidateOperationResult.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidateOperationResult.cs (68%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidateOperationResult.json.cs (93%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidateResult.PowerShell.cs (56%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidateResult.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidateResult.cs (80%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidateResult.json.cs (90%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidationResultItem.PowerShell.cs (66%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidationResultItem.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidationResultItem.cs (85%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValidationResultItem.json.cs (94%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValueSecretInfo.PowerShell.cs (75%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValueSecretInfo.TypeConverter.cs (97%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValueSecretInfo.cs (81%)
rename generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/{Api20221101Preview => }/ValueSecretInfo.json.cs (94%)
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/AccessKeyPermissions.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/AccessKeyPermissions.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/AccessKeyPermissions.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/ActionType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/ActionType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/ActionType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/AllowType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/AllowType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/AllowType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/AuthType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/AuthType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/AuthType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/ClientType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/ClientType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/ClientType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/CreatedByType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/CreatedByType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/DeleteOrUpdateBehavior.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/DeleteOrUpdateBehavior.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/DeleteOrUpdateBehavior.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/DryrunPrerequisiteResultType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/DryrunPrerequisiteResultType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/DryrunPrerequisiteResultType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/DryrunPreviewOperationType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/DryrunPreviewOperationType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/DryrunPreviewOperationType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/Origin.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/Origin.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/Origin.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/SecretType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/SecretType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/SecretType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/TargetServiceType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/TargetServiceType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/TargetServiceType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/VNetSolutionType.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/VNetSolutionType.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/VNetSolutionType.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/ValidationResultStatus.Completer.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/ValidationResultStatus.TypeConverter.cs
delete mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Support/ValidationResultStatus.cs
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaJsonFilePath.cs
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaJsonString.cs
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinkerDryrun_CreateViaIdentityExpanded.cs
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/cmdlets/NewAzServiceLinker_CreateViaIdentityExpanded.cs
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/Context.cs
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/generated/runtime/InputHandler.cs
create mode 100644 generated/ServiceLinker/ServiceLinker.Autorest/resources/README.md
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.csproj b/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.csproj
index e6c1a14713eb..c22884a0b384 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.csproj
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.csproj
@@ -2,9 +2,9 @@
ServiceLinker
ServiceLinker
+ ServiceLinker.Autorest
-
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.format.ps1xml b/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.format.ps1xml
index 8c1c158049e7..a2975b859fd4 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.format.ps1xml
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.format.ps1xml
@@ -2,57 +2,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServiceLinkerIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AccessKeyInfoBase
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServiceLinkerIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AccessKeyInfoBase#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- ConnectorName
-
-
- DryrunName
-
-
- LinkerName
-
-
- Location
-
-
- ResourceGroupName
-
-
- ResourceUri
-
-
- SubscriptionId
+ AuthType
@@ -60,33 +24,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetail
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AuthInfoBase
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetail
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AuthInfoBase#Multiple
-
-
-
-
-
-
-
+
- Code
-
-
- Message
-
-
- Target
+ AuthType
@@ -94,39 +46,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AzureKeyVaultProperties
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AzureKeyVaultProperties#Multiple
-
-
-
-
-
-
-
-
-
-
+
- ActionType
-
-
- IsDataAction
-
-
- Name
-
-
- Origin
+ ConnectAsKubernetesCsiDriver
@@ -134,61 +68,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.BasicErrorDryrunPrerequisiteResult
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.BasicErrorDryrunPrerequisiteResult#Multiple
-
-
-
-
-
-
-
+
-
+
- Description
-
-
- Operation
-
-
- Provider
+ Code
- Resource
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
+ Message
@@ -196,57 +96,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationInfo#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
- Name
-
-
- SystemDataCreatedAt
-
-
- SystemDataCreatedBy
-
-
- SystemDataCreatedByType
-
-
- SystemDataLastModifiedAt
-
-
- SystemDataLastModifiedBy
+ Action
- SystemDataLastModifiedByType
+ DeleteOrUpdateBehavior
@@ -254,21 +124,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationInfoAdditionalConfigurations
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationInfoAdditionalConfigurations#Multiple
-
+
- Name
+ Item
@@ -276,51 +146,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationInfoCustomizedKeys
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationInfoCustomizedKeys#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- CreatedAt
-
-
- CreatedBy
-
-
- CreatedByType
-
-
- LastModifiedAt
-
-
- LastModifiedBy
-
-
- LastModifiedByType
+ Item
@@ -328,27 +168,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AccessKeyInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationName
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AccessKeyInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationName#Multiple
-
+
-
+
- AuthType
+ Description
- Permission
+ Value
@@ -356,21 +196,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationNameResult
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationNameResult#Multiple
-
+
- AuthType
+ NextLink
@@ -378,49 +218,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureKeyVaultProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationNames
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureKeyVaultProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfigurationNames#Multiple
-
+
-
-
-
-
-
- ConnectAsKubernetesCsiDriver
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.BasicErrorDryrunPrerequisiteResult
-
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.BasicErrorDryrunPrerequisiteResult
-
-
-
-
+
-
+
- Code
+ AuthType
- Message
+ ClientType
+
+
+ TargetService
@@ -428,27 +252,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentBootstrapServer
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentBootstrapServer#Multiple
-
-
-
-
+
- Action
-
-
- DeleteOrUpdateBehavior
+ Endpoint
@@ -456,21 +274,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurations
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentSchemaRegistry
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurations
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentSchemaRegistry#Multiple
-
+
- Item
+ Endpoint
@@ -478,21 +296,99 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeys
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.CreateOrUpdateDryrunParameters
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeys
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.CreateOrUpdateDryrunParameters#Multiple
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Item
+ ActionName
+
+
+ ClientType
+
+
+ ConfigurationInfoAction
+
+
+ ConfigurationInfoDeleteOrUpdateBehavior
+
+
+ FirewallRuleAzureService
+
+
+ FirewallRuleCallerClientIP
+
+
+ ProvisioningState
+
+
+ PublicNetworkSolutionAction
+
+
+ PublicNetworkSolutionDeleteOrUpdateBehavior
+
+
+ Scope
+
+
+ SecretStoreKeyVaultId
+
+
+ SecretStoreKeyVaultSecretName
+
+
+ VNetSolutionDeleteOrUpdateBehavior
+
+
+ VNetSolutionType
@@ -500,27 +396,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationName
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DatabaseAadAuthInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationName
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DatabaseAadAuthInfo#Multiple
-
-
-
-
+
- Description
-
-
- Value
+ UserName
@@ -528,9 +418,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameResult
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunList
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameResult
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunList#Multiple
@@ -550,33 +440,45 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNames
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunOperationPreview
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNames
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunOperationPreview#Multiple
-
+
-
+
-
+
+
+
+
+
+
+
- AuthType
+ Action
- ClientType
+ Description
- TargetService
+ Name
+
+
+ OperationType
+
+
+ Scope
@@ -584,21 +486,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunParameters
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunParameters#Multiple
-
+
- Endpoint
+ ActionName
@@ -606,21 +508,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunProperties
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunProperties#Multiple
-
+
- Endpoint
+ ProvisioningState
@@ -628,105 +530,63 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.CreateOrUpdateDryrunParameters
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunResource
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.CreateOrUpdateDryrunParameters
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.DryrunResource#Multiple
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
- ActionName
-
-
- ClientType
-
-
- ConfigurationInfoAction
-
-
- ConfigurationInfoDeleteOrUpdateBehavior
-
-
- FirewallRuleAzureService
-
-
- FirewallRuleCallerClientIP
-
-
- FirewallRuleIPRange
-
-
- ProvisioningState
+ Name
- PublicNetworkSolutionAction
+ SystemDataCreatedAt
- PublicNetworkSolutionDeleteOrUpdateBehavior
+ SystemDataCreatedBy
- Scope
+ SystemDataCreatedByType
- SecretStoreKeyVaultId
+ SystemDataLastModifiedAt
- SecretStoreKeyVaultSecretName
+ SystemDataLastModifiedBy
- VNetSolutionDeleteOrUpdateBehavior
+ SystemDataLastModifiedByType
- VNetSolutionType
+ ResourceGroupName
@@ -734,21 +594,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ErrorDetail
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ErrorDetail#Multiple
-
+
+
+
+
+
+
+
- UserName
+ Code
+
+
+ Message
+
+
+ Target
@@ -756,21 +628,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunList
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.FirewallRules
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunList
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.FirewallRules#Multiple
-
+
+
+
+
- NextLink
+ AzureService
+
+
+ CallerClientIP
@@ -778,45 +656,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreview
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.KeyVaultSecretReferenceSecretInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreview
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.KeyVaultSecretReferenceSecretInfo#Multiple
-
-
-
-
+
-
-
-
-
+
- Action
-
-
- Description
+ SecretType
Name
- OperationType
-
-
- Scope
+ Version
@@ -824,21 +690,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParameters
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.KeyVaultSecretUriSecretInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParameters
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.KeyVaultSecretUriSecretInfo#Multiple
-
+
+
+
+
- ActionName
+ SecretType
+
+
+ Value
@@ -846,31 +718,43 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.LinkerProperties
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.LinkerProperties#Multiple
+
+
+
+
+
+
+
+ ClientType
+
ProvisioningState
+
+ Scope
+
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.LinkerResource
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.LinkerResource#Multiple
@@ -895,6 +779,9 @@
+
+
+
@@ -920,39 +807,48 @@
SystemDataLastModifiedByType
+
+ ResourceGroupName
+
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRules
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Operation
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRules
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Operation#Multiple
-
+
-
+
+
+
+
-
+
- AzureService
+ ActionType
- CallerClientIP
+ IsDataAction
+
+
+ Name
- IPRange
+ Origin
@@ -960,33 +856,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretReferenceSecretInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.OperationDisplay
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretReferenceSecretInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.OperationDisplay#Multiple
-
+
-
+
-
+
+
+
+
- SecretType
+ Description
- Name
+ Operation
- Version
+ Provider
+
+
+ Resource
@@ -994,27 +896,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretUriSecretInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.OperationListResult
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretUriSecretInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.OperationListResult#Multiple
-
-
-
-
+
- SecretType
-
-
- Value
+ NextLink
@@ -1022,17 +918,14 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.PermissionsMissingDryrunPrerequisiteResult
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.PermissionsMissingDryrunPrerequisiteResult#Multiple
-
-
-
-
+
@@ -1042,10 +935,7 @@
- ClientType
-
-
- ProvisioningState
+ RecommendedRole
Scope
@@ -1056,9 +946,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ProxyResource
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ProxyResource#Multiple
@@ -1114,33 +1004,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PermissionsMissingDryrunPrerequisiteResult
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.PublicNetworkSolution
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PermissionsMissingDryrunPrerequisiteResult
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.PublicNetworkSolution#Multiple
-
-
-
-
+
-
+
- Permission
-
-
- RecommendedRole
+ Action
- Scope
+ DeleteOrUpdateBehavior
@@ -1148,27 +1032,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolution
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Resource
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolution
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Resource#Multiple
-
-
-
-
+
- Action
-
-
- DeleteOrUpdateBehavior
+ Name
@@ -1176,9 +1054,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ResourceList
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ResourceList#Multiple
@@ -1198,9 +1076,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretAuthInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretAuthInfo#Multiple
@@ -1226,9 +1104,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretInfoBase
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretInfoBase#Multiple
@@ -1248,9 +1126,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStore
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretStore
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStore
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretStore#Multiple
@@ -1276,9 +1154,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SelfHostedServer
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SelfHostedServer
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SelfHostedServer
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SelfHostedServer#Multiple
@@ -1298,9 +1176,67 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalCertificateAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServiceLinkerIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServiceLinkerIdentity#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ConnectorName
+
+
+ DryrunName
+
+
+ LinkerName
+
+
+ Location
+
+
+ ResourceGroupName
+
+
+ ResourceUri
+
+
+ SubscriptionId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServicePrincipalCertificateAuthInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalCertificateAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServicePrincipalCertificateAuthInfo#Multiple
@@ -1319,9 +1255,6 @@
-
-
-
@@ -1341,18 +1274,15 @@
PrincipalId
-
- Role
-
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServicePrincipalSecretAuthInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServicePrincipalSecretAuthInfo#Multiple
@@ -1371,9 +1301,6 @@
-
-
-
@@ -1396,9 +1323,6 @@
PrincipalId
-
- Role
-
Secret
@@ -1408,9 +1332,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SourceConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SourceConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SourceConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SourceConfiguration#Multiple
@@ -1436,9 +1360,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SystemAssignedIdentityAuthInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SystemAssignedIdentityAuthInfo#Multiple
@@ -1451,9 +1375,6 @@
-
-
-
@@ -1467,8 +1388,57 @@
DeleteOrUpdateBehavior
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SystemData
+
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SystemData#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CreatedAt
+
+
+ CreatedBy
+
+
+ CreatedByType
+
+
+ LastModifiedAt
+
- Role
+ LastModifiedBy
+
+
+ LastModifiedByType
@@ -1476,9 +1446,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAccountAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.UserAccountAuthInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAccountAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.UserAccountAuthInfo#Multiple
@@ -1494,9 +1464,6 @@
-
-
-
@@ -1513,18 +1480,15 @@
PrincipalId
-
- Role
-
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.UserAssignedIdentityAuthInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.UserAssignedIdentityAuthInfo#Multiple
@@ -1540,9 +1504,6 @@
-
-
-
@@ -1562,9 +1523,6 @@
DeleteOrUpdateBehavior
-
- Role
-
SubscriptionId
@@ -1574,9 +1532,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateOperationResult
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ValidateOperationResult
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateOperationResult
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ValidateOperationResult#Multiple
@@ -1602,9 +1560,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateResult
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ValidateResult
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateResult
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ValidateResult#Multiple
@@ -1660,9 +1618,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidationResultItem
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ValidationResultItem
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidationResultItem
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ValidationResultItem#Multiple
@@ -1706,9 +1664,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValueSecretInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ValueSecretInfo
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValueSecretInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ValueSecretInfo#Multiple
@@ -1734,9 +1692,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolution
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.VNetSolution
- Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolution
+ Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.VNetSolution#Multiple
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.psd1 b/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.psd1
index 60269b07a55e..f7c14d87fa9c 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.psd1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/Az.ServiceLinker.psd1
@@ -11,8 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.ServiceLinker.private.dll'
FormatsToProcess = './Az.ServiceLinker.format.ps1xml'
- FunctionsToExport = 'Get-AzServiceLinkerConfigurationForContainerApp', 'Get-AzServiceLinkerConfigurationForSpringCloud', 'Get-AzServiceLinkerConfigurationForWebApp', 'Get-AzServiceLinkerConfigurationName', 'Get-AzServiceLinkerForContainerApp', 'Get-AzServiceLinkerForSpringCloud', 'Get-AzServiceLinkerForWebApp', 'New-AzServiceLinkerAzureResourceObject', 'New-AzServiceLinkerConfluentBootstrapServerObject', 'New-AzServiceLinkerConfluentSchemaRegistryObject', 'New-AzServiceLinkerForContainerApp', 'New-AzServiceLinkerForSpringCloud', 'New-AzServiceLinkerForWebApp', 'New-AzServiceLinkerSecretAuthInfoObject', 'New-AzServiceLinkerServicePrincipalSecretAuthInfoObject', 'New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject', 'New-AzServiceLinkerUserAssignedIdentityAuthInfoObject', 'Remove-AzServiceLinkerForContainerApp', 'Remove-AzServiceLinkerForSpringCloud', 'Remove-AzServiceLinkerForWebApp', 'Test-AzServiceLinkerForContainerApp', 'Test-AzServiceLinkerForSpringCloud', 'Test-AzServiceLinkerForWebApp', 'Update-AzServiceLinkerForContainerApp', 'Update-AzServiceLinkerForSpringCloud', 'Update-AzServiceLinkerForWebApp', '*'
- AliasesToExport = '*'
+ FunctionsToExport = 'Get-AzServiceLinkerConfigurationForContainerApp', 'Get-AzServiceLinkerConfigurationForSpringCloud', 'Get-AzServiceLinkerConfigurationForWebApp', 'Get-AzServiceLinkerConfigurationName', 'Get-AzServiceLinkerForContainerApp', 'Get-AzServiceLinkerForSpringCloud', 'Get-AzServiceLinkerForWebApp', 'New-AzServiceLinkerAzureResourceObject', 'New-AzServiceLinkerConfluentBootstrapServerObject', 'New-AzServiceLinkerConfluentSchemaRegistryObject', 'New-AzServiceLinkerForContainerApp', 'New-AzServiceLinkerForSpringCloud', 'New-AzServiceLinkerForWebApp', 'New-AzServiceLinkerSecretAuthInfoObject', 'New-AzServiceLinkerServicePrincipalSecretAuthInfoObject', 'New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject', 'New-AzServiceLinkerUserAssignedIdentityAuthInfoObject', 'Remove-AzServiceLinkerForContainerApp', 'Remove-AzServiceLinkerForSpringCloud', 'Remove-AzServiceLinkerForWebApp', 'Test-AzServiceLinkerForContainerApp', 'Test-AzServiceLinkerForSpringCloud', 'Test-AzServiceLinkerForWebApp', 'Update-AzServiceLinkerForContainerApp', 'Update-AzServiceLinkerForSpringCloud', 'Update-AzServiceLinkerForWebApp'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ServiceLinker'
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/Properties/AssemblyInfo.cs b/generated/ServiceLinker/ServiceLinker.Autorest/Properties/AssemblyInfo.cs
index 0ea153fffa7e..c85b54fac4b5 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/Properties/AssemblyInfo.cs
@@ -1,28 +1,29 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// Licensed under the Apache License, Version 2.0 (the "License");
+// 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,
+// 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.
using System;
using System.Reflection;
+using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-[assembly: AssemblyTitle("Microsoft Azure Powershell - ServiceLinker")]
-[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
-[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
-[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
+[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
+[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
+[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ServiceLinker")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.3")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.2.3")]
+[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
+
+
-[assembly: ComVisible(false)]
-[assembly: CLSCompliant(false)]
-[assembly: Guid("e290afad-f8a0-4683-8688-2522dcadc660")]
-[assembly: AssemblyVersion("0.2.3")]
-[assembly: AssemblyFileVersion("0.2.3")]
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/check-dependencies.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/check-dependencies.ps1
index c29591c7bfe1..90ca9867ae40 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/check-dependencies.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/check-dependencies.ps1
@@ -12,13 +12,13 @@
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
-param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
$ErrorActionPreference = 'Stop'
-if(-not $Isolated) {
+if(-not $NotIsolated) {
Write-Host -ForegroundColor Green 'Creating isolated process...'
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
- & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
return
}
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1
index c5c9f89bc797..5ce7561edfae 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1
@@ -23,12 +23,12 @@ list source configurations for a linker in container app.
Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforcontainerapp
#>
function Get-AzServiceLinkerConfigurationForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -118,6 +118,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -139,9 +148,7 @@ begin {
$mapping = @{
List = 'Az.ServiceLinker.custom\Get-AzServiceLinkerConfigurationForContainerApp';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -155,6 +162,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1
index 40f63e4e7d65..e32566e6092f 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1
@@ -23,12 +23,12 @@ list source configurations for a linker in spring cloud.
Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforspringcloud
#>
function Get-AzServiceLinkerConfigurationForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -131,6 +131,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -152,12 +161,10 @@ begin {
$mapping = @{
List = 'Az.ServiceLinker.custom\Get-AzServiceLinkerConfigurationForSpringCloud';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -171,6 +178,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1
index ba87ac0091f1..454d35933e2c 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1
@@ -23,12 +23,12 @@ list source configurations for a linker in webapp.
Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforwebapp
#>
function Get-AzServiceLinkerConfigurationForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -118,6 +118,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -139,9 +148,7 @@ begin {
$mapping = @{
List = 'Az.ServiceLinker.custom\Get-AzServiceLinkerConfigurationForWebApp';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -155,6 +162,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationName.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationName.ps1
index 3991db793639..8bf1d01f2532 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationName.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerConfigurationName.ps1
@@ -23,12 +23,12 @@ Lists the configuration names generated by Service Connector for all target, cli
Get-AzServiceLinkerConfigurationName
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationNameItem
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationname
#>
function Get-AzServiceLinkerConfigurationName {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationNameItem])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter()]
@@ -99,6 +99,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -127,6 +136,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForContainerApp.ps1
index ab2bf7943138..1b6010065faa 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForContainerApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForContainerApp.ps1
@@ -33,13 +33,13 @@ $identity | Get-AzServiceLinkerForContainerApp | Format-List
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -52,7 +52,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforcontainerapp
#>
function Get-AzServiceLinkerForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List')]
@@ -153,6 +153,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -176,9 +185,7 @@ begin {
Get = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForContainerApp';
GetViaIdentity = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForContainerApp';
}
- if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -192,6 +199,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForSpringCloud.ps1
index bd42fb14ba4b..9f24b05bb8f7 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForSpringCloud.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForSpringCloud.ps1
@@ -33,13 +33,13 @@ $identity | Get-AzServiceLinkerForSpringCloud | Format-List
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -52,7 +52,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforspringcloud
#>
function Get-AzServiceLinkerForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List')]
@@ -168,6 +168,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -191,12 +200,10 @@ begin {
Get = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForSpringCloud';
GetViaIdentity = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForSpringCloud';
}
- if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -210,6 +217,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForWebApp.ps1
index 4c0ab8ff2fb7..e41214834428 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForWebApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Get-AzServiceLinkerForWebApp.ps1
@@ -33,13 +33,13 @@ $identity | Get-AzServiceLinkerForWebApp | Format-List
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -52,7 +52,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforwebapp
#>
function Get-AzServiceLinkerForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List')]
@@ -153,6 +153,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -176,9 +185,7 @@ begin {
Get = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForWebApp';
GetViaIdentity = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForWebApp';
}
- if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -192,6 +199,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerAzureResourceObject.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerAzureResourceObject.ps1
index 35142a28da03..5c64938b3fec 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerAzureResourceObject.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerAzureResourceObject.ps1
@@ -23,12 +23,12 @@ Create an in-memory object for AzureResource.
New-AzServiceLinkerAzureResourceObject -Id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv -ConnectAsKubernetesCsiDriver 1
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AzureResource
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerazureresourceobject
#>
function New-AzServiceLinkerAzureResourceObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AzureResource])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -45,10 +45,9 @@ param(
${ConnectAsKubernetesCsiDriver},
[Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType])]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"AzureResource"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType]
+ [System.String]
# The target service type.
${Type}
)
@@ -60,6 +59,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -81,7 +83,7 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerAzureResourceObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Type')) {
+ if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Type') ) {
$PSBoundParameters['Type'] = "AzureResource"
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -91,6 +93,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerConfluentBootstrapServerObject.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerConfluentBootstrapServerObject.ps1
index 31ac17fed258..f3b82bade698 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerConfluentBootstrapServerObject.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerConfluentBootstrapServerObject.ps1
@@ -23,27 +23,19 @@ Create an in-memory object for ConfluentBootstrapServer.
New-AzServiceLinkerConfluentBootstrapServerObject -Endpoint "pkc-xxxx.eastus.azure.confluent.cloud:9092"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentBootstrapServer
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentbootstrapserverobject
#>
function New-AzServiceLinkerConfluentBootstrapServerObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentBootstrapServer])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[System.String]
# The endpoint of service.
- ${Endpoint},
-
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType])]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"ConfluentBootstrapServer"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType]
- # The target service type.
- ${Type}
+ ${Endpoint}
)
begin {
@@ -53,6 +45,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -74,9 +69,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerConfluentBootstrapServerObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Type')) {
- $PSBoundParameters['Type'] = "ConfluentBootstrapServer"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -84,6 +76,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1
index 23cdfe4b3ed6..9b1f93161ac9 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1
@@ -23,27 +23,19 @@ Create an in-memory object for ConfluentSchemaRegistry.
New-AzServiceLinkerConfluentSchemaRegistryObject -Endpoint "https://psrc-xxxx.westus2.azure.confluent.cloud"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentSchemaRegistry
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentschemaregistryobject
#>
function New-AzServiceLinkerConfluentSchemaRegistryObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentSchemaRegistry])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[System.String]
# The endpoint of service.
- ${Endpoint},
-
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType])]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"ConfluentSchemaRegistry"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType]
- # The target service type.
- ${Type}
+ ${Endpoint}
)
begin {
@@ -53,6 +45,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -74,9 +69,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerConfluentSchemaRegistryObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Type')) {
- $PSBoundParameters['Type'] = "ConfluentSchemaRegistry"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -84,6 +76,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForContainerApp.ps1
index 30e8927f3fc8..9ef2e49ef275 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForContainerApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForContainerApp.ps1
@@ -27,22 +27,22 @@ $authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name testUser -SecretValue **
New-AzServiceLinkerForContainerApp -TargetService $target -AuthInfo $auth -ClientType dotnet -LinkerName testLinker -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-linux-group -Scope 'simple-hello-world-container'
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforcontainerapp
#>
function New-AzServiceLinkerForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
@@ -67,30 +67,30 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional, indicate whether to apply configurations on source application.
# If enable, generate configurations and applied to the source application.
# Default is enable.
@@ -99,7 +99,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoAdditionalConfigurations]))]
[System.Collections.Hashtable]
# A dictionary of additional configurations to be added.
# Service will auto generate a set of basic configurations and this property is to full fill more customized configurations
@@ -107,7 +107,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoCustomizedKeys]))]
[System.Collections.Hashtable]
# Optional.
# A dictionary of default key name and customized key name mapping.
@@ -115,16 +115,16 @@ param(
${ConfigurationInfoCustomizedKey},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow Azure services to access the target service if true.
${FirewallRuleAzureService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow caller client IP to access the target service if true.
# the property is used when connecting local application to target service.
${FirewallRuleCallerClientIP},
@@ -137,9 +137,9 @@ param(
${FirewallRuleIPRange},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional.
# Indicates public network solution.
# If enable, enable public network access of target service with best try.
@@ -166,9 +166,9 @@ param(
${SecretStoreKeyVaultSecretName},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -260,6 +260,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -281,15 +290,13 @@ begin {
$mapping = @{
CreateExpanded = 'Az.ServiceLinker.custom\New-AzServiceLinkerForContainerApp';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name') ) {
$PSBoundParameters['Name'] = "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType') ) {
$PSBoundParameters['ClientType'] = "none"
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -303,6 +310,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForSpringCloud.ps1
index 0a39bc04bec4..4e93721c1bfd 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForSpringCloud.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForSpringCloud.ps1
@@ -29,22 +29,22 @@ New-AzServiceLinkerForSpringCloud -TargetService $target -AuthInfo $auth -Client
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforspringcloud
#>
function New-AzServiceLinkerForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
@@ -69,30 +69,30 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional, indicate whether to apply configurations on source application.
# If enable, generate configurations and applied to the source application.
# Default is enable.
@@ -101,7 +101,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoAdditionalConfigurations]))]
[System.Collections.Hashtable]
# A dictionary of additional configurations to be added.
# Service will auto generate a set of basic configurations and this property is to full fill more customized configurations
@@ -109,7 +109,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoCustomizedKeys]))]
[System.Collections.Hashtable]
# Optional.
# A dictionary of default key name and customized key name mapping.
@@ -117,16 +117,16 @@ param(
${ConfigurationInfoCustomizedKey},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow Azure services to access the target service if true.
${FirewallRuleAzureService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow caller client IP to access the target service if true.
# the property is used when connecting local application to target service.
${FirewallRuleCallerClientIP},
@@ -139,9 +139,9 @@ param(
${FirewallRuleIPRange},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional.
# Indicates public network solution.
# If enable, enable public network access of target service with best try.
@@ -168,9 +168,9 @@ param(
${SecretStoreKeyVaultSecretName},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -275,6 +275,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -296,18 +305,16 @@ begin {
$mapping = @{
CreateExpanded = 'Az.ServiceLinker.custom\New-AzServiceLinkerForSpringCloud';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name') ) {
$PSBoundParameters['Name'] = "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType') ) {
$PSBoundParameters['ClientType'] = "none"
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -321,6 +328,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForWebApp.ps1
index 74200a31b18a..7ad4beb11b02 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForWebApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerForWebApp.ps1
@@ -27,22 +27,22 @@ $authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name testUser -SecretValue **
New-AzServiceLinkerForWebApp -TargetService $target -AuthInfo $auth -ClientType dotnet -LinkerName testLinker -WebApp servicelinker-app -ResourceGroupName servicelinker-test-group
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforwebapp
#>
function New-AzServiceLinkerForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
@@ -67,30 +67,30 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional, indicate whether to apply configurations on source application.
# If enable, generate configurations and applied to the source application.
# Default is enable.
@@ -99,7 +99,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoAdditionalConfigurations]))]
[System.Collections.Hashtable]
# A dictionary of additional configurations to be added.
# Service will auto generate a set of basic configurations and this property is to full fill more customized configurations
@@ -107,7 +107,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoCustomizedKeys]))]
[System.Collections.Hashtable]
# Optional.
# A dictionary of default key name and customized key name mapping.
@@ -115,16 +115,16 @@ param(
${ConfigurationInfoCustomizedKey},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow Azure services to access the target service if true.
${FirewallRuleAzureService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow caller client IP to access the target service if true.
# the property is used when connecting local application to target service.
${FirewallRuleCallerClientIP},
@@ -137,9 +137,9 @@ param(
${FirewallRuleIPRange},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional.
# Indicates public network solution.
# If enable, enable public network access of target service with best try.
@@ -166,9 +166,9 @@ param(
${SecretStoreKeyVaultSecretName},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -261,6 +261,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -282,15 +291,13 @@ begin {
$mapping = @{
CreateExpanded = 'Az.ServiceLinker.custom\New-AzServiceLinkerForWebApp';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name') ) {
$PSBoundParameters['Name'] = "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType') ) {
$PSBoundParameters['ClientType'] = "none"
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -304,6 +311,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1
index b0dcf214c14c..34b2bb0199a9 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1
@@ -27,12 +27,12 @@ New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretKeyVaultUri "https://s
New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretNameInKeyVault test-secret
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretAuthInfo
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersecretauthinfoobject
#>
function New-AzServiceLinkerSecretAuthInfoObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretAuthInfo])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
@@ -43,9 +43,8 @@ param(
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISecretInfoBase]
# Password or key vault secret for secret auth.
- # To construct, see NOTES section for SECRETINFO properties and create a hash table.
${SecretInfo},
[Parameter()]
@@ -64,15 +63,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[System.String]
# The name of secret in keyvault refenced by -SecretStoreKeyVaultId.
- ${SecretNameInKeyVault},
-
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType])]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"secret"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType]
- # The authentication type.
- ${AuthType}
+ ${SecretNameInKeyVault}
)
begin {
@@ -82,6 +73,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -103,9 +97,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerSecretAuthInfoObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('AuthType')) {
- $PSBoundParameters['AuthType'] = "secret"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -113,6 +104,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1
index 8487031d4540..afd89d9c840c 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1
@@ -23,12 +23,12 @@ Create an in-memory object for ServicePrincipalSecretAuthInfo.
New-AzServiceLinkerServicePrincipalSecretAuthInfoObject -ClientId 00000000-0000-0000-0000-000000000000 -PrincipalId 00000000-0000-0000-0000-000000000000 -Secret secret
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServicePrincipalSecretAuthInfo
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerserviceprincipalsecretauthinfoobject
#>
function New-AzServiceLinkerServicePrincipalSecretAuthInfoObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServicePrincipalSecretAuthInfo])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -49,13 +49,18 @@ param(
# Secret for servicePrincipal auth.
${Secret},
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType])]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"servicePrincipalSecret"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType]
- # The authentication type.
- ${AuthType}
+ [System.String[]]
+ # Optional, this value specifies the Azure roles to be assigned.
+ # Automatically .
+ ${Role},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
+ [System.String]
+ # Username created in the database which is mapped to a user in AAD.
+ ${UserName}
)
begin {
@@ -65,6 +70,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -86,9 +94,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerServicePrincipalSecretAuthInfoObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('AuthType')) {
- $PSBoundParameters['AuthType'] = "servicePrincipalSecret"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -96,6 +101,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1
index 4db512556d5a..79561ad27e6c 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1
@@ -23,21 +23,25 @@ Create an in-memory object for SystemAssignedIdentityAuthInfo.
New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SystemAssignedIdentityAuthInfo
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersystemassignedidentityauthinfoobject
#>
function New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SystemAssignedIdentityAuthInfo])]
[CmdletBinding(PositionalBinding=$false)]
param(
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType])]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"systemAssignedIdentity"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType]
- # The authentication type.
- ${AuthType}
+ [System.String[]]
+ # Optional, this value specifies the Azure role to be assigned.
+ ${Role},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
+ [System.String]
+ # Username created in the database which is mapped to a user in AAD.
+ ${UserName}
)
begin {
@@ -47,6 +51,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -68,9 +75,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('AuthType')) {
- $PSBoundParameters['AuthType'] = "systemAssignedIdentity"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -78,6 +82,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1
index b8063d894d91..04557e855422 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1
@@ -23,12 +23,12 @@ Create an in-memory object for UserAssignedIdentityAuthInfo.
New-AzServiceLinkerUserAssignedIdentityAuthInfoObject -ClientId 00000000-0000-0000-0000-000000000000 -SubscriptionId 00000000-0000-0000-0000-000000000000
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.UserAssignedIdentityAuthInfo
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkeruserassignedidentityauthinfoobject
#>
function New-AzServiceLinkerUserAssignedIdentityAuthInfoObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.UserAssignedIdentityAuthInfo])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
@@ -37,19 +37,23 @@ param(
# Client Id for userAssignedIdentity.
${ClientId},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
+ [System.String[]]
+ # Optional, this value specifies the Azure role to be assigned.
+ ${Role},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[System.String]
# Subscription id for userAssignedIdentity.
${SubscriptionId},
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType])]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"userAssignedIdentity"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType]
- # The authentication type.
- ${AuthType}
+ [System.String]
+ # Username created in the database which is mapped to a user in AAD.
+ ${UserName}
)
begin {
@@ -59,6 +63,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -80,9 +87,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerUserAssignedIdentityAuthInfoObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('AuthType')) {
- $PSBoundParameters['AuthType'] = "userAssignedIdentity"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -90,6 +94,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/ProxyCmdletDefinitions.ps1
index d464de7d3663..0368a5f2c26f 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -23,12 +23,12 @@ Lists the configuration names generated by Service Connector for all target, cli
Get-AzServiceLinkerConfigurationName
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationNameItem
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationname
#>
function Get-AzServiceLinkerConfigurationName {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationNameItem])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter()]
@@ -99,6 +99,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -127,6 +136,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -179,12 +191,12 @@ list source configurations for a linker in container app.
Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforcontainerapp
#>
function Get-AzServiceLinkerConfigurationForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -274,6 +286,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -295,9 +316,7 @@ begin {
$mapping = @{
List = 'Az.ServiceLinker.custom\Get-AzServiceLinkerConfigurationForContainerApp';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -311,6 +330,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -363,12 +385,12 @@ list source configurations for a linker in spring cloud.
Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforspringcloud
#>
function Get-AzServiceLinkerConfigurationForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -471,6 +493,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -492,12 +523,10 @@ begin {
$mapping = @{
List = 'Az.ServiceLinker.custom\Get-AzServiceLinkerConfigurationForSpringCloud';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -511,6 +540,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -563,12 +595,12 @@ list source configurations for a linker in webapp.
Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforwebapp
#>
function Get-AzServiceLinkerConfigurationForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISourceConfiguration])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -658,6 +690,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -679,9 +720,7 @@ begin {
$mapping = @{
List = 'Az.ServiceLinker.custom\Get-AzServiceLinkerConfigurationForWebApp';
}
- if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -695,6 +734,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -757,13 +799,13 @@ $identity | Get-AzServiceLinkerForContainerApp | Format-List
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -776,7 +818,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforcontainerapp
#>
function Get-AzServiceLinkerForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List')]
@@ -877,6 +919,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -900,9 +951,7 @@ begin {
Get = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForContainerApp';
GetViaIdentity = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForContainerApp';
}
- if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -916,6 +965,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -978,13 +1030,13 @@ $identity | Get-AzServiceLinkerForSpringCloud | Format-List
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -997,7 +1049,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforspringcloud
#>
function Get-AzServiceLinkerForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List')]
@@ -1113,6 +1165,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1136,12 +1197,10 @@ begin {
Get = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForSpringCloud';
GetViaIdentity = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForSpringCloud';
}
- if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1155,6 +1214,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1217,13 +1279,13 @@ $identity | Get-AzServiceLinkerForWebApp | Format-List
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -1236,7 +1298,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforwebapp
#>
function Get-AzServiceLinkerForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List')]
@@ -1337,6 +1399,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1360,9 +1431,7 @@ begin {
Get = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForWebApp';
GetViaIdentity = 'Az.ServiceLinker.custom\Get-AzServiceLinkerForWebApp';
}
- if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('List', 'Get', 'GetViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1376,6 +1445,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1428,12 +1500,12 @@ Create an in-memory object for AzureResource.
New-AzServiceLinkerAzureResourceObject -Id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv -ConnectAsKubernetesCsiDriver 1
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AzureResource
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerazureresourceobject
#>
function New-AzServiceLinkerAzureResourceObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AzureResource])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -1450,10 +1522,9 @@ param(
${ConnectAsKubernetesCsiDriver},
[Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType])]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"AzureResource"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType]
+ [System.String]
# The target service type.
${Type}
)
@@ -1465,6 +1536,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1486,7 +1560,7 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerAzureResourceObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Type')) {
+ if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Type') ) {
$PSBoundParameters['Type'] = "AzureResource"
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -1496,6 +1570,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1548,27 +1625,19 @@ Create an in-memory object for ConfluentBootstrapServer.
New-AzServiceLinkerConfluentBootstrapServerObject -Endpoint "pkc-xxxx.eastus.azure.confluent.cloud:9092"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentBootstrapServer
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentbootstrapserverobject
#>
function New-AzServiceLinkerConfluentBootstrapServerObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentBootstrapServer])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[System.String]
# The endpoint of service.
- ${Endpoint},
-
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType])]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"ConfluentBootstrapServer"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType]
- # The target service type.
- ${Type}
+ ${Endpoint}
)
begin {
@@ -1578,6 +1647,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1599,9 +1671,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerConfluentBootstrapServerObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Type')) {
- $PSBoundParameters['Type'] = "ConfluentBootstrapServer"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -1609,6 +1678,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1661,27 +1733,19 @@ Create an in-memory object for ConfluentSchemaRegistry.
New-AzServiceLinkerConfluentSchemaRegistryObject -Endpoint "https://psrc-xxxx.westus2.azure.confluent.cloud"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentSchemaRegistry
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentschemaregistryobject
#>
function New-AzServiceLinkerConfluentSchemaRegistryObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ConfluentSchemaRegistry])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[System.String]
# The endpoint of service.
- ${Endpoint},
-
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType])]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"ConfluentSchemaRegistry"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType]
- # The target service type.
- ${Type}
+ ${Endpoint}
)
begin {
@@ -1691,6 +1755,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1712,9 +1779,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerConfluentSchemaRegistryObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Type')) {
- $PSBoundParameters['Type'] = "ConfluentSchemaRegistry"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -1722,6 +1786,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1778,22 +1845,22 @@ $authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name testUser -SecretValue **
New-AzServiceLinkerForContainerApp -TargetService $target -AuthInfo $auth -ClientType dotnet -LinkerName testLinker -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-linux-group -Scope 'simple-hello-world-container'
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforcontainerapp
#>
function New-AzServiceLinkerForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
@@ -1818,30 +1885,30 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional, indicate whether to apply configurations on source application.
# If enable, generate configurations and applied to the source application.
# Default is enable.
@@ -1850,7 +1917,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoAdditionalConfigurations]))]
[System.Collections.Hashtable]
# A dictionary of additional configurations to be added.
# Service will auto generate a set of basic configurations and this property is to full fill more customized configurations
@@ -1858,7 +1925,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoCustomizedKeys]))]
[System.Collections.Hashtable]
# Optional.
# A dictionary of default key name and customized key name mapping.
@@ -1866,16 +1933,16 @@ param(
${ConfigurationInfoCustomizedKey},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow Azure services to access the target service if true.
${FirewallRuleAzureService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow caller client IP to access the target service if true.
# the property is used when connecting local application to target service.
${FirewallRuleCallerClientIP},
@@ -1888,9 +1955,9 @@ param(
${FirewallRuleIPRange},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional.
# Indicates public network solution.
# If enable, enable public network access of target service with best try.
@@ -1917,9 +1984,9 @@ param(
${SecretStoreKeyVaultSecretName},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -2011,6 +2078,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2032,15 +2108,13 @@ begin {
$mapping = @{
CreateExpanded = 'Az.ServiceLinker.custom\New-AzServiceLinkerForContainerApp';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name') ) {
$PSBoundParameters['Name'] = "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType') ) {
$PSBoundParameters['ClientType'] = "none"
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2054,6 +2128,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2112,22 +2189,22 @@ New-AzServiceLinkerForSpringCloud -TargetService $target -AuthInfo $auth -Client
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforspringcloud
#>
function New-AzServiceLinkerForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
@@ -2152,30 +2229,30 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional, indicate whether to apply configurations on source application.
# If enable, generate configurations and applied to the source application.
# Default is enable.
@@ -2184,7 +2261,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoAdditionalConfigurations]))]
[System.Collections.Hashtable]
# A dictionary of additional configurations to be added.
# Service will auto generate a set of basic configurations and this property is to full fill more customized configurations
@@ -2192,7 +2269,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoCustomizedKeys]))]
[System.Collections.Hashtable]
# Optional.
# A dictionary of default key name and customized key name mapping.
@@ -2200,16 +2277,16 @@ param(
${ConfigurationInfoCustomizedKey},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow Azure services to access the target service if true.
${FirewallRuleAzureService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow caller client IP to access the target service if true.
# the property is used when connecting local application to target service.
${FirewallRuleCallerClientIP},
@@ -2222,9 +2299,9 @@ param(
${FirewallRuleIPRange},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional.
# Indicates public network solution.
# If enable, enable public network access of target service with best try.
@@ -2251,9 +2328,9 @@ param(
${SecretStoreKeyVaultSecretName},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -2358,6 +2435,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2379,18 +2465,16 @@ begin {
$mapping = @{
CreateExpanded = 'Az.ServiceLinker.custom\New-AzServiceLinkerForSpringCloud';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name') ) {
$PSBoundParameters['Name'] = "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType') ) {
$PSBoundParameters['ClientType'] = "none"
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2404,6 +2488,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2460,22 +2547,22 @@ $authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name testUser -SecretValue **
New-AzServiceLinkerForWebApp -TargetService $target -AuthInfo $auth -ClientType dotnet -LinkerName testLinker -WebApp servicelinker-app -ResourceGroupName servicelinker-test-group
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforwebapp
#>
function New-AzServiceLinkerForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
@@ -2500,30 +2587,30 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional, indicate whether to apply configurations on source application.
# If enable, generate configurations and applied to the source application.
# Default is enable.
@@ -2532,7 +2619,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoAdditionalConfigurations]))]
[System.Collections.Hashtable]
# A dictionary of additional configurations to be added.
# Service will auto generate a set of basic configurations and this property is to full fill more customized configurations
@@ -2540,7 +2627,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IConfigurationInfoCustomizedKeys]))]
[System.Collections.Hashtable]
# Optional.
# A dictionary of default key name and customized key name mapping.
@@ -2548,16 +2635,16 @@ param(
${ConfigurationInfoCustomizedKey},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow Azure services to access the target service if true.
${FirewallRuleAzureService},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("true", "false")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType]
+ [System.String]
# Allow caller client IP to access the target service if true.
# the property is used when connecting local application to target service.
${FirewallRuleCallerClientIP},
@@ -2570,9 +2657,9 @@ param(
${FirewallRuleIPRange},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("Internal", "enable", "optOut")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType]
+ [System.String]
# Optional.
# Indicates public network solution.
# If enable, enable public network access of target service with best try.
@@ -2599,9 +2686,9 @@ param(
${SecretStoreKeyVaultSecretName},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -2694,6 +2781,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2715,15 +2811,13 @@ begin {
$mapping = @{
CreateExpanded = 'Az.ServiceLinker.custom\New-AzServiceLinkerForWebApp';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name') ) {
$PSBoundParameters['Name'] = "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType') ) {
$PSBoundParameters['ClientType'] = "none"
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2737,6 +2831,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2793,12 +2890,12 @@ New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretKeyVaultUri "https://s
New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretNameInKeyVault test-secret
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretAuthInfo
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersecretauthinfoobject
#>
function New-AzServiceLinkerSecretAuthInfoObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SecretAuthInfo])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
@@ -2809,9 +2906,8 @@ param(
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ISecretInfoBase]
# Password or key vault secret for secret auth.
- # To construct, see NOTES section for SECRETINFO properties and create a hash table.
${SecretInfo},
[Parameter()]
@@ -2830,15 +2926,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[System.String]
# The name of secret in keyvault refenced by -SecretStoreKeyVaultId.
- ${SecretNameInKeyVault},
-
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType])]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"secret"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType]
- # The authentication type.
- ${AuthType}
+ ${SecretNameInKeyVault}
)
begin {
@@ -2848,6 +2936,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2869,9 +2960,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerSecretAuthInfoObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('AuthType')) {
- $PSBoundParameters['AuthType'] = "secret"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -2879,6 +2967,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2931,12 +3022,12 @@ Create an in-memory object for ServicePrincipalSecretAuthInfo.
New-AzServiceLinkerServicePrincipalSecretAuthInfoObject -ClientId 00000000-0000-0000-0000-000000000000 -PrincipalId 00000000-0000-0000-0000-000000000000 -Secret secret
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServicePrincipalSecretAuthInfo
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerserviceprincipalsecretauthinfoobject
#>
function New-AzServiceLinkerServicePrincipalSecretAuthInfoObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ServicePrincipalSecretAuthInfo])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -2957,13 +3048,18 @@ param(
# Secret for servicePrincipal auth.
${Secret},
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType])]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"servicePrincipalSecret"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType]
- # The authentication type.
- ${AuthType}
+ [System.String[]]
+ # Optional, this value specifies the Azure roles to be assigned.
+ # Automatically .
+ ${Role},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
+ [System.String]
+ # Username created in the database which is mapped to a user in AAD.
+ ${UserName}
)
begin {
@@ -2973,6 +3069,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2994,9 +3093,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerServicePrincipalSecretAuthInfoObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('AuthType')) {
- $PSBoundParameters['AuthType'] = "servicePrincipalSecret"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -3004,6 +3100,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3056,21 +3155,25 @@ Create an in-memory object for SystemAssignedIdentityAuthInfo.
New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SystemAssignedIdentityAuthInfo
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersystemassignedidentityauthinfoobject
#>
function New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.SystemAssignedIdentityAuthInfo])]
[CmdletBinding(PositionalBinding=$false)]
param(
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType])]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"systemAssignedIdentity"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType]
- # The authentication type.
- ${AuthType}
+ [System.String[]]
+ # Optional, this value specifies the Azure role to be assigned.
+ ${Role},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
+ [System.String]
+ # Username created in the database which is mapped to a user in AAD.
+ ${UserName}
)
begin {
@@ -3080,6 +3183,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -3101,9 +3207,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('AuthType')) {
- $PSBoundParameters['AuthType'] = "systemAssignedIdentity"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -3111,6 +3214,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3163,12 +3269,12 @@ Create an in-memory object for UserAssignedIdentityAuthInfo.
New-AzServiceLinkerUserAssignedIdentityAuthInfoObject -ClientId 00000000-0000-0000-0000-000000000000 -SubscriptionId 00000000-0000-0000-0000-000000000000
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.UserAssignedIdentityAuthInfo
.Link
https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkeruserassignedidentityauthinfoobject
#>
function New-AzServiceLinkerUserAssignedIdentityAuthInfoObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.UserAssignedIdentityAuthInfo])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
@@ -3177,19 +3283,23 @@ param(
# Client Id for userAssignedIdentity.
${ClientId},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
+ [System.String[]]
+ # Optional, this value specifies the Azure role to be assigned.
+ ${Role},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
[System.String]
# Subscription id for userAssignedIdentity.
${SubscriptionId},
- [Parameter(DontShow)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType])]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"userAssignedIdentity"')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType]
- # The authentication type.
- ${AuthType}
+ [System.String]
+ # Username created in the database which is mapped to a user in AAD.
+ ${UserName}
)
begin {
@@ -3199,6 +3309,9 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -3220,9 +3333,6 @@ begin {
$mapping = @{
__AllParameterSets = 'Az.ServiceLinker.custom\New-AzServiceLinkerUserAssignedIdentityAuthInfoObject';
}
- if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('AuthType')) {
- $PSBoundParameters['AuthType'] = "userAssignedIdentity"
- }
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
@@ -3230,6 +3340,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3290,7 +3403,7 @@ 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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -3419,6 +3532,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -3441,9 +3563,7 @@ begin {
Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForContainerApp';
DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForContainerApp';
}
- if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3457,6 +3577,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3517,7 +3640,7 @@ 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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -3659,6 +3782,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -3681,12 +3813,10 @@ begin {
Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringCloud';
DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringCloud';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3700,6 +3830,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3760,7 +3893,7 @@ 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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -3889,6 +4022,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -3911,9 +4053,7 @@ begin {
Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForWebApp';
DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForWebApp';
}
- if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3927,6 +4067,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3981,13 +4124,13 @@ Test-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGro
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -4000,7 +4143,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforcontainerapp
#>
function Test-AzServiceLinkerForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult])]
[CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Validate', Mandatory)]
@@ -4110,6 +4253,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -4132,9 +4284,7 @@ begin {
Validate = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForContainerApp';
ValidateViaIdentity = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForContainerApp';
}
- if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -4148,6 +4298,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -4202,13 +4355,13 @@ Test-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppNa
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -4221,7 +4374,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforspringcloud
#>
function Test-AzServiceLinkerForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult])]
[CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Validate', Mandatory)]
@@ -4344,6 +4497,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -4366,12 +4528,10 @@ begin {
Validate = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForSpringCloud';
ValidateViaIdentity = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForSpringCloud';
}
- if (('Validate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('Validate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -4385,6 +4545,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -4439,13 +4602,13 @@ Test-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName se
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -4458,7 +4621,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforwebapp
#>
function Test-AzServiceLinkerForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult])]
[CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Validate', Mandatory)]
@@ -4568,6 +4731,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -4590,9 +4762,7 @@ begin {
Validate = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForWebApp';
ValidateViaIdentity = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForWebApp';
}
- if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -4606,6 +4776,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -4662,16 +4835,16 @@ Update-AzServiceLinkerForContainerApp -ResourceGroupName servicelinker-test-linu
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-INPUTOBJECT : Identity Parameter
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -4681,13 +4854,13 @@ INPUTOBJECT : Identity Parameter
[ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected.
[SubscriptionId ]: The ID of the target subscription.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforcontainerapp
#>
function Update-AzServiceLinkerForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -4718,15 +4891,15 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
@@ -4738,7 +4911,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
@@ -4750,9 +4923,9 @@ param(
${SecretStoreKeyVaultId},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -4843,6 +5016,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -4865,9 +5047,7 @@ begin {
UpdateExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForContainerApp';
UpdateViaIdentityExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForContainerApp';
}
- if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -4881,6 +5061,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -4937,16 +5120,16 @@ Update-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -App
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-INPUTOBJECT : Identity Parameter
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -4956,13 +5139,13 @@ INPUTOBJECT : Identity Parameter
[ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected.
[SubscriptionId ]: The ID of the target subscription.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforspringcloud
#>
function Update-AzServiceLinkerForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -4993,21 +5176,21 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
@@ -5025,9 +5208,9 @@ param(
${SecretStoreKeyVaultId},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -5131,6 +5314,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -5153,12 +5345,10 @@ begin {
UpdateExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForSpringCloud';
UpdateViaIdentityExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForSpringCloud';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -5172,6 +5362,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -5228,16 +5421,16 @@ Update-AzServiceLinkerForWebApp -ResourceGroupName servicelinker-test-linux-grou
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-INPUTOBJECT : Identity Parameter
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -5247,13 +5440,13 @@ INPUTOBJECT : Identity Parameter
[ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected.
[SubscriptionId ]: The ID of the target subscription.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforwebapp
#>
function Update-AzServiceLinkerForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -5284,21 +5477,21 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
@@ -5316,9 +5509,9 @@ param(
${SecretStoreKeyVaultId},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -5409,6 +5602,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -5431,9 +5633,7 @@ begin {
UpdateExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForWebApp';
UpdateViaIdentityExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForWebApp';
}
- if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -5447,6 +5647,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForContainerApp.ps1
index ae047c98be1e..cbd5a14fef20 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForContainerApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForContainerApp.ps1
@@ -31,7 +31,7 @@ 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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -160,6 +160,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -182,9 +191,7 @@ begin {
Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForContainerApp';
DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForContainerApp';
}
- if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -198,6 +205,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForSpringcloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForSpringcloud.ps1
index bb7de954799b..e5193d657ecc 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForSpringcloud.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForSpringcloud.ps1
@@ -31,7 +31,7 @@ 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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -173,6 +173,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -195,12 +204,10 @@ begin {
Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringCloud';
DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringCloud';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -214,6 +221,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForWebApp.ps1
index b70f179daf95..a2bd9c67240e 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForWebApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Remove-AzServiceLinkerForWebApp.ps1
@@ -31,7 +31,7 @@ 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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -160,6 +160,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -182,9 +191,7 @@ begin {
Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForWebApp';
DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForWebApp';
}
- if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete', 'DeleteViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -198,6 +205,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForContainerApp.ps1
index 8171d4d374a1..dfe6268a1fab 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForContainerApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForContainerApp.ps1
@@ -25,13 +25,13 @@ Test-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGro
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforcontainerapp
#>
function Test-AzServiceLinkerForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult])]
[CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Validate', Mandatory)]
@@ -154,6 +154,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -176,9 +185,7 @@ begin {
Validate = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForContainerApp';
ValidateViaIdentity = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForContainerApp';
}
- if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -192,6 +199,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForSpringCloud.ps1
index 3f1d016d01c1..ec76e53b6977 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForSpringCloud.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForSpringCloud.ps1
@@ -25,13 +25,13 @@ Test-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppNa
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforspringcloud
#>
function Test-AzServiceLinkerForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult])]
[CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Validate', Mandatory)]
@@ -167,6 +167,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -189,12 +198,10 @@ begin {
Validate = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForSpringCloud';
ValidateViaIdentity = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForSpringCloud';
}
- if (('Validate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('Validate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -208,6 +215,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForWebApp.ps1
index e3390c631b1d..32e8ead2d5b0 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForWebApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Test-AzServiceLinkerForWebApp.ps1
@@ -25,13 +25,13 @@ Test-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName se
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult
.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
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforwebapp
#>
function Test-AzServiceLinkerForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IValidateResult])]
[CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Validate', Mandatory)]
@@ -154,6 +154,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -176,9 +185,7 @@ begin {
Validate = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForWebApp';
ValidateViaIdentity = 'Az.ServiceLinker.custom\Test-AzServiceLinkerForWebApp';
}
- if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Validate', 'ValidateViaIdentity') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -192,6 +199,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForContainerApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForContainerApp.ps1
index c03fa7aa2109..f35347b09378 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForContainerApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForContainerApp.ps1
@@ -27,16 +27,16 @@ Update-AzServiceLinkerForContainerApp -ResourceGroupName servicelinker-test-linu
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-INPUTOBJECT : Identity Parameter
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -46,13 +46,13 @@ INPUTOBJECT : Identity Parameter
[ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected.
[SubscriptionId ]: The ID of the target subscription.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforcontainerapp
#>
function Update-AzServiceLinkerForContainerApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -83,15 +83,15 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
@@ -103,7 +103,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
@@ -115,9 +115,9 @@ param(
${SecretStoreKeyVaultId},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -208,6 +208,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -230,9 +239,7 @@ begin {
UpdateExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForContainerApp';
UpdateViaIdentityExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForContainerApp';
}
- if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -246,6 +253,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForSpringCloud.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForSpringCloud.ps1
index 068846913095..883e60274b29 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForSpringCloud.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForSpringCloud.ps1
@@ -27,16 +27,16 @@ Update-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -App
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-INPUTOBJECT : Identity Parameter
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -46,13 +46,13 @@ INPUTOBJECT : Identity Parameter
[ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected.
[SubscriptionId ]: The ID of the target subscription.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforspringcloud
#>
function Update-AzServiceLinkerForSpringCloud {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -83,21 +83,21 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
@@ -115,9 +115,9 @@ param(
${SecretStoreKeyVaultId},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -221,6 +221,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -243,12 +252,10 @@ begin {
UpdateExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForSpringCloud';
UpdateViaIdentityExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForSpringCloud';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) {
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName') ) {
$PSBoundParameters['DeploymentName'] = "default"
}
- if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -262,6 +269,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForWebApp.ps1 b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForWebApp.ps1
index a1d145bfa43b..fb2056242d2f 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForWebApp.ps1
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/exports/Update-AzServiceLinkerForWebApp.ps1
@@ -27,16 +27,16 @@ Update-AzServiceLinkerForWebApp -ResourceGroupName servicelinker-test-linux-grou
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource
+Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource
.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.
-AUTHINFO : The authentication type.
- AuthType : The authentication type.
+AUTHINFO : The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table.
+ AuthType : The authentication type.
-INPUTOBJECT : Identity Parameter
+INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ConnectorName ]: The name of resource.
[DryrunName ]: The name of dryrun.
[Id ]: Resource identity path
@@ -46,13 +46,13 @@ INPUTOBJECT : Identity Parameter
[ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected.
[SubscriptionId ]: The ID of the target subscription.
-TARGETSERVICE : The target service properties
- Type : The target service type.
+TARGETSERVICE : The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
+ Type : The target service type.
.Link
https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforwebapp
#>
function Update-AzServiceLinkerForWebApp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ILinkerResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -83,21 +83,21 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBase]
# The authentication type.
# To construct, see NOTES section for AUTHINFO properties and create a hash table.
${AuthInfo},
[Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("none", "dotnet", "java", "python", "go", "php", "ruby", "django", "nodejs", "springBoot", "kafka-springBoot")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType]
+ [System.String]
# The application client type
${ClientType},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.ITargetServiceBase]
# The target service properties
# To construct, see NOTES section for TARGETSERVICE properties and create a hash table.
${TargetService},
@@ -115,9 +115,9 @@ param(
${SecretStoreKeyVaultId},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PSArgumentCompleterAttribute("serviceEndpoint", "privateLink")]
[Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType]
+ [System.String]
# Type of VNet solution.
${VNetSolutionType},
@@ -208,6 +208,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -230,9 +239,7 @@ begin {
UpdateExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForWebApp';
UpdateViaIdentityExpanded = 'Az.ServiceLinker.custom\Update-AzServiceLinkerForWebApp';
}
- if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaIdentityExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -246,6 +253,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/generate-info.json b/generated/ServiceLinker/ServiceLinker.Autorest/generate-info.json
index d91bd5de624c..1dc67d099da4 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/generate-info.json
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "1f7e5d7b-9f7e-4235-8e00-5e2f6a3c1ed8"
+ "generate_Id": "7c01552d-641c-4637-8009-6b16c5c1c92b"
}
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/generated/Module.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/Module.cs
index 755ec5485cce..6aca59803b26 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/Module.cs
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/Module.cs
@@ -28,12 +28,20 @@ public partial class Module
public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler();
+ private static bool _init = false;
+
+ private static readonly global::System.Object _initLock = new global::System.Object();
+
+ private static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module _instance;
+
/// the ISendAsync pipeline instance
private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline _pipeline;
/// the ISendAsync pipeline instance (when proxy is enabled)
private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline _pipelineWithProxy;
+ private static readonly global::System.Object _singletonLock = new global::System.Object();
+
public bool _useProxy = false;
public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy();
@@ -56,11 +64,8 @@ public partial class Module
/// The delegate to get the telemetry info.
public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; }
- /// Backing field for property.
- private static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module _instance;
-
/// the singleton of this module class
- public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module());
+ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
/// The Name of this module
public string Name => @"Az.ServiceLinker";
@@ -125,9 +130,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Cre
/// Initialization steps performed after the module is loaded.
public void Init()
{
- OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
- OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
- CustomInit();
+ if (_init == false)
+ {
+ lock (_initLock) {
+ if (_init == false) {
+ OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
+ OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
+ CustomInit();
+ _init = true;
+ }
+ }
+ }
}
/// Creates the module instance.
diff --git a/generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.PowerShell.cs b/generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/AccessKeyInfoBase.PowerShell.cs
similarity index 73%
rename from generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.PowerShell.cs
rename to generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/AccessKeyInfoBase.PowerShell.cs
index 1207022000ec..d6aac0a79911 100644
--- a/generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.PowerShell.cs
+++ b/generated/ServiceLinker/ServiceLinker.Autorest/generated/api/Models/AccessKeyInfoBase.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell;
@@ -57,7 +57,15 @@ public partial class AccessKeyInfoBase
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into a new instance of OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
+ ///
+ /// /// instance serialized to a string, normally it is a Json
+ /// /// set returnNow to true if you provide a customized OverrideToString function
+
+ partial void OverrideToString(ref string stringResult, ref bool returnNow);
+
+ ///
+ /// Deserializes a into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -72,17 +80,17 @@ internal AccessKeyInfoBase(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Permission"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBaseInternal)this).Permission = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions[]) content.GetValueForProperty("Permission",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBaseInternal)this).Permission, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions.CreateFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAccessKeyInfoBaseInternal)this).Permission = (System.Collections.Generic.List) content.GetValueForProperty("Permission",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAccessKeyInfoBaseInternal)this).Permission, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString));
}
if (content.Contains("AuthType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBaseInternal)this).AuthType = (string) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAuthInfoBaseInternal)this).AuthType, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///