From b316bfb66890b3458b2532386454dcf7f087b014 Mon Sep 17 00:00:00 2001 From: Azure PowerShell <65331932+azure-powershell-bot@users.noreply.github.com> Date: Tue, 26 Mar 2024 00:13:37 +0800 Subject: [PATCH] Migrate VMware from generation to main (#24503) * Move VMware to main * Update ChangeLog.md --------- Co-authored-by: Vincent Dai <23257217+vidai-msft@users.noreply.github.com> --- src/VMware/VMware.Autorest/Az.VMware.psm1 | 24 +- src/VMware/VMware.Autorest/README.md | 11 +- .../exports/Get-AzVMwareAddon.ps1 | 10 +- .../exports/Get-AzVMwareAuthorization.ps1 | 10 +- .../exports/Get-AzVMwareCloudLink.ps1 | 10 +- .../exports/Get-AzVMwareCluster.ps1 | 10 +- .../exports/Get-AzVMwareClusterZone.ps1 | 8 +- .../exports/Get-AzVMwareDatastore.ps1 | 11 +- .../Get-AzVMwareGlobalReachConnection.ps1 | 10 +- .../exports/Get-AzVMwarePlacementPolicy.ps1 | 11 +- .../exports/Get-AzVMwarePrivateCloud.ps1 | 9 +- ...et-AzVMwarePrivateCloudAdminCredential.ps1 | 8 +- .../exports/Get-AzVMwareVirtualMachine.ps1 | 11 +- .../exports/New-AzVMwareAddon.ps1 | 10 +- .../exports/New-AzVMwareAuthorization.ps1 | 10 +- .../exports/New-AzVMwareCloudLink.ps1 | 10 +- .../exports/New-AzVMwareCluster.ps1 | 10 +- .../exports/New-AzVMwareDatastore.ps1 | 11 +- .../New-AzVMwareGlobalReachConnection.ps1 | 10 +- .../exports/New-AzVMwarePlacementPolicy.ps1 | 12 +- .../exports/New-AzVMwarePrivateCloud.ps1 | 10 +- .../New-AzVMwarePrivateCloudNsxtPassword.ps1 | 9 +- ...ew-AzVMwarePrivateCloudVcenterPassword.ps1 | 9 +- .../exports/ProxyCmdletDefinitions.ps1 | 379 +++++++++++----- .../exports/Remove-AzVMwareAddon.ps1 | 10 +- .../exports/Remove-AzVMwareAuthorization.ps1 | 10 +- .../exports/Remove-AzVMwareCloudLink.ps1 | 10 +- .../exports/Remove-AzVMwareCluster.ps1 | 10 +- .../exports/Remove-AzVMwareDatastore.ps1 | 11 +- .../Remove-AzVMwareGlobalReachConnection.ps1 | 10 +- .../Remove-AzVMwarePlacementPolicy.ps1 | 11 +- .../exports/Remove-AzVMwarePrivateCloud.ps1 | 10 +- ...Test-AzVMwareLocationQuotaAvailability.ps1 | 8 +- ...Test-AzVMwareLocationTrialAvailability.ps1 | 8 +- .../exports/Update-AzVMwareAuthorization.ps1 | 10 +- .../exports/Update-AzVMwareCloudLink.ps1 | 10 +- .../exports/Update-AzVMwareCluster.ps1 | 10 +- .../exports/Update-AzVMwareDatastore.ps1 | 11 +- .../Update-AzVMwareGlobalReachConnection.ps1 | 10 +- .../Update-AzVMwarePlacementPolicy.ps1 | 11 +- .../exports/Update-AzVMwarePrivateCloud.ps1 | 10 +- .../VMware.Autorest/generated/Module.cs | 8 + .../generated/cmdlets/GetAzVMwareAddon_Get.cs | 25 ++ .../GetAzVMwareAddon_GetViaIdentity.cs | 25 ++ ...zVMwareAddon_GetViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/GetAzVMwareAddon_List.cs | 25 ++ .../cmdlets/GetAzVMwareAuthorization_Get.cs | 25 ++ ...GetAzVMwareAuthorization_GetViaIdentity.cs | 25 ++ ...uthorization_GetViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/GetAzVMwareAuthorization_List.cs | 25 ++ .../cmdlets/GetAzVMwareCloudLink_Get.cs | 25 ++ .../GetAzVMwareCloudLink_GetViaIdentity.cs | 25 ++ ...areCloudLink_GetViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/GetAzVMwareCloudLink_List.cs | 25 ++ .../cmdlets/GetAzVMwareClusterZone_List.cs | 25 ++ .../cmdlets/GetAzVMwareCluster_Get.cs | 25 ++ .../GetAzVMwareCluster_GetViaIdentity.cs | 25 ++ ...MwareCluster_GetViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/GetAzVMwareCluster_List.cs | 25 ++ .../cmdlets/GetAzVMwareDatastore_Get.cs | 25 ++ .../GetAzVMwareDatastore_GetViaIdentity.cs | 25 ++ ...AzVMwareDatastore_GetViaIdentityCluster.cs | 25 ++ ...areDatastore_GetViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/GetAzVMwareDatastore_List.cs | 25 ++ .../GetAzVMwareGlobalReachConnection_Get.cs | 25 ++ ...areGlobalReachConnection_GetViaIdentity.cs | 25 ++ ...chConnection_GetViaIdentityPrivateCloud.cs | 25 ++ .../GetAzVMwareGlobalReachConnection_List.cs | 25 ++ .../cmdlets/GetAzVMwareOperation_List.cs | 25 ++ .../cmdlets/GetAzVMwarePlacementPolicy_Get.cs | 25 ++ ...tAzVMwarePlacementPolicy_GetViaIdentity.cs | 25 ++ ...rePlacementPolicy_GetViaIdentityCluster.cs | 25 ++ ...cementPolicy_GetViaIdentityPrivateCloud.cs | 25 ++ .../GetAzVMwarePlacementPolicy_List.cs | 25 ++ ...zVMwarePrivateCloudAdminCredential_List.cs | 25 ++ .../cmdlets/GetAzVMwarePrivateCloud_Get.cs | 25 ++ .../GetAzVMwarePrivateCloud_GetViaIdentity.cs | 25 ++ .../cmdlets/GetAzVMwarePrivateCloud_List.cs | 25 ++ .../cmdlets/GetAzVMwarePrivateCloud_List1.cs | 25 ++ .../cmdlets/GetAzVMwareScriptCmdlet_Get.cs | 25 ++ .../GetAzVMwareScriptCmdlet_GetViaIdentity.cs | 25 ++ ...ScriptCmdlet_GetViaIdentityPrivateCloud.cs | 25 ++ ...criptCmdlet_GetViaIdentityScriptPackage.cs | 25 ++ .../cmdlets/GetAzVMwareScriptCmdlet_List.cs | 25 ++ .../GetAzVMwareScriptExecutionLog_Get.cs | 26 ++ ...VMwareScriptExecutionLog_GetViaIdentity.cs | 26 ++ ...ExecutionLog_GetViaIdentityPrivateCloud.cs | 26 ++ .../cmdlets/GetAzVMwareScriptExecution_Get.cs | 25 ++ ...tAzVMwareScriptExecution_GetViaIdentity.cs | 25 ++ ...iptExecution_GetViaIdentityPrivateCloud.cs | 25 ++ .../GetAzVMwareScriptExecution_List.cs | 25 ++ .../cmdlets/GetAzVMwareScriptPackage_Get.cs | 25 ++ ...GetAzVMwareScriptPackage_GetViaIdentity.cs | 25 ++ ...criptPackage_GetViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/GetAzVMwareScriptPackage_List.cs | 25 ++ .../cmdlets/GetAzVMwareVirtualMachine_Get.cs | 25 ++ ...etAzVMwareVirtualMachine_GetViaIdentity.cs | 25 ++ ...areVirtualMachine_GetViaIdentityCluster.cs | 25 ++ ...rtualMachine_GetViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/GetAzVMwareVirtualMachine_List.cs | 25 ++ .../GetAzVMwareWorkloadNetworkDhcp_Get.cs | 25 ++ ...MwareWorkloadNetworkDhcp_GetViaIdentity.cs | 25 ++ ...orkDhcp_GetViaIdentityDhcpConfiguration.cs | 25 ++ .../GetAzVMwareWorkloadNetworkDhcp_List.cs | 25 ++ ...etAzVMwareWorkloadNetworkDnsService_Get.cs | 25 ++ ...orkloadNetworkDnsService_GetViaIdentity.cs | 25 ++ ...rkDnsService_GetViaIdentityPrivateCloud.cs | 25 ++ ...tAzVMwareWorkloadNetworkDnsService_List.cs | 25 ++ .../GetAzVMwareWorkloadNetworkDnsZone_Get.cs | 25 ++ ...reWorkloadNetworkDnsZone_GetViaIdentity.cs | 25 ++ ...tworkDnsZone_GetViaIdentityPrivateCloud.cs | 25 ++ .../GetAzVMwareWorkloadNetworkDnsZone_List.cs | 25 ++ .../GetAzVMwareWorkloadNetworkGateway_Get.cs | 25 ++ ...reWorkloadNetworkGateway_GetViaIdentity.cs | 25 ++ ...tworkGateway_GetViaIdentityPrivateCloud.cs | 25 ++ .../GetAzVMwareWorkloadNetworkGateway_List.cs | 25 ++ ...zVMwareWorkloadNetworkPortMirroring_Get.cs | 25 ++ ...loadNetworkPortMirroring_GetViaIdentity.cs | 25 ++ ...ortMirroring_GetViaIdentityPrivateCloud.cs | 25 ++ ...VMwareWorkloadNetworkPortMirroring_List.cs | 25 ++ .../GetAzVMwareWorkloadNetworkPublicIP_Get.cs | 25 ++ ...eWorkloadNetworkPublicIP_GetViaIdentity.cs | 25 ++ ...workPublicIP_GetViaIdentityPrivateCloud.cs | 25 ++ ...GetAzVMwareWorkloadNetworkPublicIP_List.cs | 25 ++ .../GetAzVMwareWorkloadNetworkSegment_Get.cs | 25 ++ ...reWorkloadNetworkSegment_GetViaIdentity.cs | 25 ++ ...tworkSegment_GetViaIdentityPrivateCloud.cs | 25 ++ .../GetAzVMwareWorkloadNetworkSegment_List.cs | 25 ++ .../GetAzVMwareWorkloadNetworkVMGroup_Get.cs | 25 ++ ...reWorkloadNetworkVMGroup_GetViaIdentity.cs | 25 ++ ...tworkVMGroup_GetViaIdentityPrivateCloud.cs | 25 ++ .../GetAzVMwareWorkloadNetworkVMGroup_List.cs | 25 ++ .../GetAzVMwareWorkloadNetworkVM_Get.cs | 25 ++ ...zVMwareWorkloadNetworkVM_GetViaIdentity.cs | 25 ++ ...oadNetworkVM_GetViaIdentityPrivateCloud.cs | 25 ++ .../GetAzVMwareWorkloadNetworkVM_List.cs | 25 ++ .../cmdlets/GetAzVMwareWorkloadNetwork_Get.cs | 25 ++ ...tAzVMwareWorkloadNetwork_GetViaIdentity.cs | 25 ++ .../GetAzVMwareWorkloadNetwork_List.cs | 25 ++ ...VirtualMachineMovement_RestrictExpanded.cs | 25 ++ ...ment_RestrictViaIdentityClusterExpanded.cs | 25 ++ ...ineMovement_RestrictViaIdentityExpanded.cs | 25 ++ ...RestrictViaIdentityPrivateCloudExpanded.cs | 25 ++ .../NewAzVMwareAddon_CreateExpanded.cs | 25 ++ ...AzVMwareAddon_CreateViaIdentityExpanded.cs | 25 ++ ...n_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...NewAzVMwareAuthorization_CreateExpanded.cs | 25 ++ ...Authorization_CreateViaIdentityExpanded.cs | 25 ++ ...n_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ .../NewAzVMwareCloudLink_CreateExpanded.cs | 25 ++ ...wareCloudLink_CreateViaIdentityExpanded.cs | 25 ++ ...k_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ .../NewAzVMwareCluster_CreateExpanded.cs | 25 ++ ...VMwareCluster_CreateViaIdentityExpanded.cs | 25 ++ ...r_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ .../NewAzVMwareDatastore_CreateExpanded.cs | 25 ++ ...astore_CreateViaIdentityClusterExpanded.cs | 25 ++ ...wareDatastore_CreateViaIdentityExpanded.cs | 25 ++ ...e_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...areGlobalReachConnection_CreateExpanded.cs | 25 ++ ...achConnection_CreateViaIdentityExpanded.cs | 25 ++ ...n_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...wAzVMwarePlacementPolicy_CreateExpanded.cs | 25 ++ ...Policy_CreateViaIdentityClusterExpanded.cs | 25 ++ ...acementPolicy_CreateViaIdentityExpanded.cs | 25 ++ ...y_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...AzVMwarePrivateCloudNsxtPassword_Rotate.cs | 25 ++ ...vateCloudNsxtPassword_RotateViaIdentity.cs | 25 ++ ...MwarePrivateCloudVcenterPassword_Rotate.cs | 25 ++ ...eCloudVcenterPassword_RotateViaIdentity.cs | 25 ++ .../NewAzVMwarePrivateCloud_CreateExpanded.cs | 25 ++ ...wAzVMwareScriptExecution_CreateExpanded.cs | 25 ++ ...riptExecution_CreateViaIdentityExpanded.cs | 25 ++ ...n_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...MwareWorkloadNetworkDhcp_CreateExpanded.cs | 25 ++ ...adNetworkDhcp_CreateViaIdentityExpanded.cs | 25 ++ ...p_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...orkloadNetworkDnsService_CreateExpanded.cs | 25 ++ ...orkDnsService_CreateViaIdentityExpanded.cs | 25 ++ ...e_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...reWorkloadNetworkDnsZone_CreateExpanded.cs | 25 ++ ...etworkDnsZone_CreateViaIdentityExpanded.cs | 25 ++ ...e_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...loadNetworkPortMirroring_CreateExpanded.cs | 25 ++ ...PortMirroring_CreateViaIdentityExpanded.cs | 25 ++ ...g_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...eWorkloadNetworkPublicIP_CreateExpanded.cs | 25 ++ ...tworkPublicIP_CreateViaIdentityExpanded.cs | 25 ++ ...P_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...reWorkloadNetworkSegment_CreateExpanded.cs | 25 ++ ...etworkSegment_CreateViaIdentityExpanded.cs | 25 ++ ...t_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...reWorkloadNetworkVMGroup_CreateExpanded.cs | 25 ++ ...etworkVMGroup_CreateViaIdentityExpanded.cs | 25 ++ ...p_CreateViaIdentityPrivateCloudExpanded.cs | 25 ++ .../cmdlets/RemoveAzVMwareAddon_Delete.cs | 25 ++ .../RemoveAzVMwareAddon_DeleteViaIdentity.cs | 25 ++ ...wareAddon_DeleteViaIdentityPrivateCloud.cs | 25 ++ .../RemoveAzVMwareAuthorization_Delete.cs | 25 ++ ...AzVMwareAuthorization_DeleteViaIdentity.cs | 25 ++ ...orization_DeleteViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/RemoveAzVMwareCloudLink_Delete.cs | 25 ++ ...moveAzVMwareCloudLink_DeleteViaIdentity.cs | 25 ++ ...CloudLink_DeleteViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/RemoveAzVMwareCluster_Delete.cs | 25 ++ ...RemoveAzVMwareCluster_DeleteViaIdentity.cs | 25 ++ ...reCluster_DeleteViaIdentityPrivateCloud.cs | 25 ++ .../cmdlets/RemoveAzVMwareDatastore_Delete.cs | 25 ++ ...moveAzVMwareDatastore_DeleteViaIdentity.cs | 25 ++ ...MwareDatastore_DeleteViaIdentityCluster.cs | 25 ++ ...Datastore_DeleteViaIdentityPrivateCloud.cs | 25 ++ ...oveAzVMwareGlobalReachConnection_Delete.cs | 25 ++ ...GlobalReachConnection_DeleteViaIdentity.cs | 25 ++ ...onnection_DeleteViaIdentityPrivateCloud.cs | 25 ++ .../RemoveAzVMwarePlacementPolicy_Delete.cs | 25 ++ ...VMwarePlacementPolicy_DeleteViaIdentity.cs | 25 ++ ...lacementPolicy_DeleteViaIdentityCluster.cs | 25 ++ ...entPolicy_DeleteViaIdentityPrivateCloud.cs | 25 ++ .../RemoveAzVMwarePrivateCloud_Delete.cs | 25 ++ ...eAzVMwarePrivateCloud_DeleteViaIdentity.cs | 25 ++ .../RemoveAzVMwareScriptExecution_Delete.cs | 25 ++ ...VMwareScriptExecution_DeleteViaIdentity.cs | 25 ++ ...Execution_DeleteViaIdentityPrivateCloud.cs | 25 ++ ...emoveAzVMwareWorkloadNetworkDhcp_Delete.cs | 25 ++ ...reWorkloadNetworkDhcp_DeleteViaIdentity.cs | 25 ++ ...tworkDhcp_DeleteViaIdentityPrivateCloud.cs | 25 ++ ...zVMwareWorkloadNetworkDnsService_Delete.cs | 25 ++ ...loadNetworkDnsService_DeleteViaIdentity.cs | 25 ++ ...kDnsService_DeleteViaIdentityDnsService.cs | 25 ++ ...veAzVMwareWorkloadNetworkDnsZone_Delete.cs | 25 ++ ...orkloadNetworkDnsZone_DeleteViaIdentity.cs | 25 ++ ...NetworkDnsZone_DeleteViaIdentityDnsZone.cs | 25 ++ ...wareWorkloadNetworkPortMirroring_Delete.cs | 25 ++ ...dNetworkPortMirroring_DeleteViaIdentity.cs | 25 ++ ...g_DeleteViaIdentityPortMirroringProfile.cs | 25 ++ ...eAzVMwareWorkloadNetworkPublicIP_Delete.cs | 25 ++ ...rkloadNetworkPublicIP_DeleteViaIdentity.cs | 25 ++ ...tworkPublicIP_DeleteViaIdentityPublicIP.cs | 25 ++ ...veAzVMwareWorkloadNetworkSegment_Delete.cs | 25 ++ ...orkloadNetworkSegment_DeleteViaIdentity.cs | 25 ++ ...rkSegment_DeleteViaIdentityPrivateCloud.cs | 25 ++ ...veAzVMwareWorkloadNetworkVMGroup_Delete.cs | 25 ++ ...orkloadNetworkVMGroup_DeleteViaIdentity.cs | 25 ++ ...NetworkVMGroup_DeleteViaIdentityVMGroup.cs | 25 ++ ...AzVMwareLocationQuotaAvailability_Check.cs | 25 ++ ...LocationTrialAvailability_CheckExpanded.cs | 25 ++ ...ateAzVMwareAuthorization_UpdateExpanded.cs | 27 +- ...Authorization_UpdateViaIdentityExpanded.cs | 29 +- ...n_UpdateViaIdentityPrivateCloudExpanded.cs | 29 +- .../UpdateAzVMwareCloudLink_UpdateExpanded.cs | 27 +- ...wareCloudLink_UpdateViaIdentityExpanded.cs | 29 +- ...k_UpdateViaIdentityPrivateCloudExpanded.cs | 29 +- .../UpdateAzVMwareCluster_UpdateExpanded.cs | 25 ++ ...VMwareCluster_UpdateViaIdentityExpanded.cs | 25 ++ ...r_UpdateViaIdentityPrivateCloudExpanded.cs | 25 ++ .../UpdateAzVMwareDatastore_UpdateExpanded.cs | 27 +- ...astore_UpdateViaIdentityClusterExpanded.cs | 29 +- ...wareDatastore_UpdateViaIdentityExpanded.cs | 29 +- ...e_UpdateViaIdentityPrivateCloudExpanded.cs | 29 +- ...areGlobalReachConnection_UpdateExpanded.cs | 27 +- ...achConnection_UpdateViaIdentityExpanded.cs | 29 +- ...n_UpdateViaIdentityPrivateCloudExpanded.cs | 29 +- ...eAzVMwarePlacementPolicy_UpdateExpanded.cs | 25 ++ ...Policy_UpdateViaIdentityClusterExpanded.cs | 25 ++ ...acementPolicy_UpdateViaIdentityExpanded.cs | 25 ++ ...y_UpdateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...dateAzVMwarePrivateCloud_UpdateExpanded.cs | 25 ++ ...ePrivateCloud_UpdateViaIdentityExpanded.cs | 25 ++ ...MwareWorkloadNetworkDhcp_UpdateExpanded.cs | 25 ++ ...adNetworkDhcp_UpdateViaIdentityExpanded.cs | 25 ++ ...p_UpdateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...orkloadNetworkDnsService_UpdateExpanded.cs | 25 ++ ...orkDnsService_UpdateViaIdentityExpanded.cs | 25 ++ ...e_UpdateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...reWorkloadNetworkDnsZone_UpdateExpanded.cs | 25 ++ ...etworkDnsZone_UpdateViaIdentityExpanded.cs | 25 ++ ...e_UpdateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...loadNetworkPortMirroring_UpdateExpanded.cs | 25 ++ ...PortMirroring_UpdateViaIdentityExpanded.cs | 25 ++ ...g_UpdateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...reWorkloadNetworkSegment_UpdateExpanded.cs | 25 ++ ...etworkSegment_UpdateViaIdentityExpanded.cs | 25 ++ ...t_UpdateViaIdentityPrivateCloudExpanded.cs | 25 ++ ...reWorkloadNetworkVMGroup_UpdateExpanded.cs | 25 ++ ...etworkVMGroup_UpdateViaIdentityExpanded.cs | 25 ++ ...p_UpdateViaIdentityPrivateCloudExpanded.cs | 25 ++ .../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 4 +- .../BuildTime/Cmdlets/ExportTestStub.cs | 186 ++++---- .../runtime/BuildTime/MarkdownRenderer.cs | 2 +- .../BuildTime/Models/PsProxyOutputs.cs | 26 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 18 +- .../help/Get-AzVMwareAuthorization.md | 2 - .../help/Get-AzVMwareCloudLink.md | 2 - .../help/Get-AzVMwareCluster.md | 2 - .../help/Get-AzVMwareDatastore.md | 3 - .../help/Get-AzVMwareGlobalReachConnection.md | 2 - .../help/Get-AzVMwarePlacementPolicy.md | 3 - .../help/Get-AzVMwarePrivateCloud.md | 1 - .../help/Get-AzVMwareVirtualMachine.md | 3 - .../help/New-AzVMwareAuthorization.md | 2 - .../help/New-AzVMwareCloudLink.md | 2 - .../help/New-AzVMwareCluster.md | 2 - .../help/New-AzVMwareDatastore.md | 3 - .../help/New-AzVMwareGlobalReachConnection.md | 2 - .../help/New-AzVMwarePlacementPolicy.md | 4 - .../New-AzVMwarePrivateCloudNsxtPassword.md | 1 - ...New-AzVMwarePrivateCloudVcenterPassword.md | 1 - .../help/Remove-AzVMwareAuthorization.md | 2 - .../help/Remove-AzVMwareCloudLink.md | 2 - .../help/Remove-AzVMwareCluster.md | 2 - .../help/Remove-AzVMwareDatastore.md | 3 - .../Remove-AzVMwareGlobalReachConnection.md | 2 - .../help/Remove-AzVMwarePlacementPolicy.md | 3 - .../help/Update-AzVMwareAuthorization.md | 2 - .../help/Update-AzVMwareCloudLink.md | 2 - .../help/Update-AzVMwareCluster.md | 2 - .../help/Update-AzVMwareDatastore.md | 3 - .../Update-AzVMwareGlobalReachConnection.md | 2 - .../help/Update-AzVMwarePlacementPolicy.md | 3 - .../help/Update-AzVMwarePrivateCloud.md | 2 - .../internal/Az.VMware.internal.psm1 | 4 +- .../internal/Get-AzVMwareAddon.ps1 | 10 +- .../internal/Get-AzVMwareScriptCmdlet.ps1 | 11 +- .../internal/Get-AzVMwareScriptExecution.ps1 | 10 +- .../Get-AzVMwareScriptExecutionLog.ps1 | 13 +- .../internal/Get-AzVMwareScriptPackage.ps1 | 10 +- .../internal/Get-AzVMwareWorkloadNetwork.ps1 | 9 +- .../Get-AzVMwareWorkloadNetworkDhcp.ps1 | 10 +- .../Get-AzVMwareWorkloadNetworkDnsService.ps1 | 10 +- .../Get-AzVMwareWorkloadNetworkDnsZone.ps1 | 10 +- .../Get-AzVMwareWorkloadNetworkGateway.ps1 | 10 +- ...t-AzVMwareWorkloadNetworkPortMirroring.ps1 | 10 +- .../Get-AzVMwareWorkloadNetworkPublicIP.ps1 | 10 +- .../Get-AzVMwareWorkloadNetworkSegment.ps1 | 10 +- .../Get-AzVMwareWorkloadNetworkVM.ps1 | 10 +- .../Get-AzVMwareWorkloadNetworkVMGroup.ps1 | 10 +- .../Lock-AzVMwareVirtualMachineMovement.ps1 | 11 +- .../internal/New-AzVMwareAddon.ps1 | 11 +- .../internal/New-AzVMwarePrivateCloud.ps1 | 9 +- .../internal/New-AzVMwareScriptExecution.ps1 | 12 +- .../New-AzVMwareWorkloadNetworkDhcp.ps1 | 10 +- .../New-AzVMwareWorkloadNetworkDnsService.ps1 | 10 +- .../New-AzVMwareWorkloadNetworkDnsZone.ps1 | 10 +- ...w-AzVMwareWorkloadNetworkPortMirroring.ps1 | 10 +- .../New-AzVMwareWorkloadNetworkPublicIP.ps1 | 10 +- .../New-AzVMwareWorkloadNetworkSegment.ps1 | 10 +- .../New-AzVMwareWorkloadNetworkVMGroup.ps1 | 10 +- .../internal/ProxyCmdletDefinitions.ps1 | 425 ++++++++++++------ .../internal/Remove-AzVMwareAddon.ps1 | 10 +- .../internal/Remove-AzVMwarePrivateCloud.ps1 | 9 +- .../Remove-AzVMwareScriptExecution.ps1 | 10 +- .../Remove-AzVMwareWorkloadNetworkDhcp.ps1 | 10 +- ...move-AzVMwareWorkloadNetworkDnsService.ps1 | 10 +- .../Remove-AzVMwareWorkloadNetworkDnsZone.ps1 | 10 +- ...e-AzVMwareWorkloadNetworkPortMirroring.ps1 | 10 +- ...Remove-AzVMwareWorkloadNetworkPublicIP.ps1 | 10 +- .../Remove-AzVMwareWorkloadNetworkSegment.ps1 | 10 +- .../Remove-AzVMwareWorkloadNetworkVMGroup.ps1 | 10 +- .../Update-AzVMwareWorkloadNetworkDhcp.ps1 | 10 +- ...date-AzVMwareWorkloadNetworkDnsService.ps1 | 10 +- .../Update-AzVMwareWorkloadNetworkDnsZone.ps1 | 10 +- ...e-AzVMwareWorkloadNetworkPortMirroring.ps1 | 10 +- .../Update-AzVMwareWorkloadNetworkSegment.ps1 | 10 +- .../Update-AzVMwareWorkloadNetworkVMGroup.ps1 | 10 +- src/VMware/VMware.Autorest/test-module.ps1 | 8 +- src/VMware/VMware.Autorest/test/loadEnv.ps1 | 2 +- .../utils/Get-SubscriptionIdTestSafe.ps1 | 7 + src/VMware/VMware/Az.VMware.psd1 | 12 +- src/VMware/VMware/ChangeLog.md | 1 + src/VMware/VMware/help/Az.VMware.md | 2 +- src/VMware/VMware/help/Get-AzVMwareAddon.md | 21 +- .../VMware/help/Get-AzVMwareAuthorization.md | 23 +- .../VMware/help/Get-AzVMwareCloudLink.md | 23 +- src/VMware/VMware/help/Get-AzVMwareCluster.md | 23 +- .../VMware/help/Get-AzVMwareClusterZone.md | 17 +- .../VMware/help/Get-AzVMwareDatastore.md | 25 +- .../help/Get-AzVMwareGlobalReachConnection.md | 23 +- .../help/Get-AzVMwarePlacementPolicy.md | 25 +- .../VMware/help/Get-AzVMwarePrivateCloud.md | 23 +- ...Get-AzVMwarePrivateCloudAdminCredential.md | 17 +- .../VMware/help/Get-AzVMwareVirtualMachine.md | 25 +- src/VMware/VMware/help/New-AzVMwareAddon.md | 17 +- .../New-AzVMwareAddonSrmPropertiesObject.md | 17 +- .../New-AzVMwareAddonVrPropertiesObject.md | 17 +- .../VMware/help/New-AzVMwareAuthorization.md | 21 +- .../VMware/help/New-AzVMwareCloudLink.md | 21 +- src/VMware/VMware/help/New-AzVMwareCluster.md | 21 +- .../VMware/help/New-AzVMwareDatastore.md | 23 +- .../help/New-AzVMwareGlobalReachConnection.md | 21 +- .../help/New-AzVMwareIdentitySourceObject.md | 17 +- ...arePSCredentialExecutionParameterObject.md | 17 +- .../help/New-AzVMwarePlacementPolicy.md | 23 +- .../VMware/help/New-AzVMwarePrivateCloud.md | 17 +- .../New-AzVMwarePrivateCloudNsxtPassword.md | 19 +- ...New-AzVMwarePrivateCloudVcenterPassword.md | 19 +- ...iptSecureStringExecutionParameterObject.md | 17 +- ...areScriptStringExecutionParameterObject.md | 17 +- ...VMwareVMPlacementPolicyPropertiesObject.md | 17 +- ...reVmHostPlacementPolicyPropertiesObject.md | 17 +- .../VMware/help/Remove-AzVMwareAddon.md | 19 +- .../help/Remove-AzVMwareAuthorization.md | 21 +- .../VMware/help/Remove-AzVMwareCloudLink.md | 21 +- .../VMware/help/Remove-AzVMwareCluster.md | 21 +- .../VMware/help/Remove-AzVMwareDatastore.md | 23 +- .../Remove-AzVMwareGlobalReachConnection.md | 21 +- .../help/Remove-AzVMwarePlacementPolicy.md | 23 +- .../help/Remove-AzVMwarePrivateCloud.md | 19 +- .../Test-AzVMwareLocationQuotaAvailability.md | 17 +- .../Test-AzVMwareLocationTrialAvailability.md | 17 +- .../help/Update-AzVMwareAuthorization.md | 21 +- .../VMware/help/Update-AzVMwareCloudLink.md | 21 +- .../VMware/help/Update-AzVMwareCluster.md | 21 +- .../VMware/help/Update-AzVMwareDatastore.md | 23 +- .../Update-AzVMwareGlobalReachConnection.md | 21 +- .../help/Update-AzVMwarePlacementPolicy.md | 23 +- .../help/Update-AzVMwarePrivateCloud.md | 108 ++--- 416 files changed, 8277 insertions(+), 881 deletions(-) create mode 100644 src/VMware/VMware.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 diff --git a/src/VMware/VMware.Autorest/Az.VMware.psm1 b/src/VMware/VMware.Autorest/Az.VMware.psm1 index 05c66dd80e3a..67317143dfad 100644 --- a/src/VMware/VMware.Autorest/Az.VMware.psm1 +++ b/src/VMware/VMware.Autorest/Az.VMware.psm1 @@ -47,37 +47,41 @@ # Ask for the shared functionality table $VTable = Register-AzModule - + # Tweaks the pipeline on module load $instance.OnModuleLoad = $VTable.OnModuleLoad # Following two delegates are added for telemetry $instance.GetTelemetryId = $VTable.GetTelemetryId $instance.Telemetry = $VTable.Telemetry - + + # Delegate to sanitize the output object + $instance.SanitizeOutput = $VTable.SanitizerHandler + + # Delegate to get the telemetry info + $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo # Tweaks the pipeline per call $instance.OnNewRequest = $VTable.OnNewRequest - + # Gets shared parameter values $instance.GetParameterValue = $VTable.GetParameterValue - + # Allows shared module to listen to events from this module $instance.EventListener = $VTable.EventListener - + # Gets shared argument completers $instance.ArgumentCompleter = $VTable.ArgumentCompleter - + # The name of the currently selected Azure profile $instance.ProfileName = $VTable.ProfileName - # Load the custom module $customModulePath = Join-Path $PSScriptRoot './custom/Az.VMware.custom.psm1' if(Test-Path $customModulePath) { $null = Import-Module -Name $customModulePath } - + # Export nothing to clear implicit exports Export-ModuleMember @@ -97,12 +101,12 @@ # Load the last folder if no profile is selected $profileDirectory = $directories | Select-Object -Last 1 } - + if($profileDirectory) { Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" $exportsPath = $profileDirectory.FullName } - + if($exportsPath) { Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath diff --git a/src/VMware/VMware.Autorest/README.md b/src/VMware/VMware.Autorest/README.md index e4bc542040db..a8c94d7ddf60 100644 --- a/src/VMware/VMware.Autorest/README.md +++ b/src/VMware/VMware.Autorest/README.md @@ -3,7 +3,6 @@ This directory contains the PowerShell module for the VMware service. --- - ## Info - Modifiable: yes - Generated: all @@ -48,17 +47,19 @@ In this directory, run AutoRest: commit: 0baf811c3c76c87b3c127d098519bd97141222dd require: - $(this-folder)/../../readme.azure.noprofile.md -input-file: +input-file: - $(repo)/specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/vmware.json module-version: 0.4.0 title: VMware subject-prefix: $(service-name) +disable-transform-identity-type: true +flatten-userassignedidentity: false support-json-input: false directive: - - from: swagger-document + - from: swagger-document where: $.definitions.AdminCredentials.properties.nsxtPassword transform: >- return { @@ -68,7 +69,7 @@ directive: "x-ms-secret": true, "format": "password" } - - from: swagger-document + - from: swagger-document where: $.definitions.AdminCredentials.properties.vcenterPassword transform: >- return { @@ -136,7 +137,7 @@ directive: # verb: Test # subject: ^LocationTrialAvailability$ # hide: true - # Remove the list variant as the workloadNetwork only have one enum value + # Remove the list variant as the workloadNetwork only have one enum value - where: verb: Get subject: WorkloadNetwork diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 index b0085385f76c..40a5d106cc56 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 @@ -33,7 +33,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. [AddonName ]: Name of the addon for the private cloud [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud [CloudLinkName ]: Name of the cloud link resource @@ -183,7 +183,13 @@ begin { GetViaIdentity = 'Az.VMware.custom\Get-AzVMwareAddon'; } if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 index cdba5ce0dc4b..23867a07eb42 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -221,7 +219,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareAuthorization_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 index f1acb86900fd..478a0e6ec0e3 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -221,7 +219,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareCloudLink_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 index 7b61d4de9f77..11e3a1943312 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -221,7 +219,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareCluster_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 index 82cc7230792b..0bd273fae179 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 @@ -135,7 +135,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareClusterZone_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 index 5b133d9c8a32..dd3e69f1606a 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 @@ -167,21 +167,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -266,7 +263,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareDatastore_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 index dd7772f764ef..421cc401d8d9 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -221,7 +219,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareGlobalReachConnection_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 index 9611948b65e2..14b6bbaefaca 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 @@ -167,21 +167,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -266,7 +263,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwarePlacementPolicy_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 index 4544a5602aa7..f615215b38a5 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 @@ -97,7 +97,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -181,7 +180,13 @@ begin { List1 = 'Az.VMware.private\Get-AzVMwarePrivateCloud_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 index 90f04c9996b6..67437ffdce47 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 @@ -129,7 +129,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwarePrivateCloudAdminCredential_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 index 4922f0c5167e..ee651d09e279 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 @@ -167,21 +167,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -266,7 +263,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareVirtualMachine_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 index d10b5f697735..a986d7c2efdb 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 @@ -30,7 +30,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. -PROPERTY : The properties of an addon resource +PROPERTY : The properties of an addon resource To construct, see NOTES section for PROPERTY properties and create a hash table. AddonType : The type of private cloud addon .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareaddon @@ -155,7 +155,13 @@ begin { CreateExpanded = 'Az.VMware.custom\New-AzVMwareAddon'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 index f8297f3328d8..c64c627f0a90 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 @@ -125,14 +125,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -227,7 +225,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 index dc1cfca369e1..c942bdf835bc 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 @@ -125,14 +125,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -233,7 +231,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 index 1ffcce5f2333..c608231c42bf 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 @@ -125,14 +125,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter(Mandatory)] @@ -246,7 +244,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareCluster_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 index acd01e00bd69..3b986c1c4250 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 @@ -161,21 +161,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -296,7 +293,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 index 16b46b1433c1..f53648671bcb 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 @@ -125,14 +125,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -245,7 +243,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 index 65ca91bcd8b6..58cef1fae762 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 @@ -170,28 +170,24 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties] # placement policy properties - # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, [Parameter()] @@ -287,7 +283,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 index 669ae627aec8..ecb0d3132245 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.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. -IDENTITYSOURCE : vCenter Single Sign On Identity Sources +IDENTITYSOURCE : vCenter Single Sign On Identity Sources To construct, see NOTES section for IDENTITYSOURCE properties and create a hash table. [Alias ]: The domain's NetBIOS name [BaseGroupDn ]: The base distinguished name for groups [BaseUserDn ]: The base distinguished name for users @@ -294,7 +294,13 @@ begin { CreateExpanded = 'Az.VMware.custom\New-AzVMwarePrivateCloud'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 index b8a25b82c1c4..c5caf8c90572 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 @@ -89,7 +89,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -189,7 +188,13 @@ begin { RotateViaIdentity = 'Az.VMware.private\New-AzVMwarePrivateCloudNsxtPassword_RotateViaIdentity'; } if (('Rotate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 index 1262e6c4b909..726647cda76a 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 @@ -89,7 +89,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -189,7 +188,13 @@ begin { RotateViaIdentity = 'Az.VMware.private\New-AzVMwarePrivateCloudVcenterPassword_RotateViaIdentity'; } if (('Rotate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 index fd7be46f4a54..0b67586c926a 100644 --- a/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -221,7 +219,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareAuthorization_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -389,14 +393,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -480,7 +482,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareCloudLink_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -653,7 +661,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareClusterZone_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -821,14 +835,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -912,7 +924,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareCluster_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1117,21 +1135,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -1216,7 +1231,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareDatastore_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1384,14 +1405,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -1475,7 +1494,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareGlobalReachConnection_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1680,21 +1705,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -1779,7 +1801,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwarePlacementPolicy_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1946,7 +1974,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwarePrivateCloudAdminCredential_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2081,7 +2115,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -2165,7 +2198,13 @@ begin { List1 = 'Az.VMware.private\Get-AzVMwarePrivateCloud_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2370,21 +2409,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -2469,7 +2505,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareVirtualMachine_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2632,14 +2674,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -2734,7 +2774,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2897,14 +2943,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -3005,7 +3049,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3168,14 +3218,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter(Mandatory)] @@ -3289,7 +3337,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareCluster_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3488,21 +3542,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -3623,7 +3674,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3786,14 +3843,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -3906,7 +3961,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4114,28 +4175,24 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties] # placement policy properties - # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, [Parameter()] @@ -4231,7 +4288,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4358,7 +4421,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -4458,7 +4520,13 @@ begin { RotateViaIdentity = 'Az.VMware.private\New-AzVMwarePrivateCloudNsxtPassword_RotateViaIdentity'; } if (('Rotate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4585,7 +4653,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -4685,7 +4752,13 @@ begin { RotateViaIdentity = 'Az.VMware.private\New-AzVMwarePrivateCloudVcenterPassword_RotateViaIdentity'; } if (('Rotate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4852,14 +4925,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -4960,7 +5031,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareAuthorization_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5127,14 +5204,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -5235,7 +5310,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareCloudLink_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5402,14 +5483,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -5510,7 +5589,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareCluster_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5711,21 +5796,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -5827,7 +5909,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareDatastore_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5994,14 +6082,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -6102,7 +6188,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6305,21 +6397,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -6421,7 +6510,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6581,7 +6676,13 @@ begin { Check = 'Az.VMware.private\Test-AzVMwareLocationQuotaAvailability_Check'; } if (('Check') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6747,7 +6848,13 @@ begin { CheckExpanded = 'Az.VMware.private\Test-AzVMwareLocationTrialAvailability_CheckExpanded'; } if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6910,14 +7017,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -7012,7 +7117,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7175,14 +7286,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -7283,7 +7392,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7448,14 +7563,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -7563,7 +7676,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7762,21 +7881,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -7897,7 +8013,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8060,14 +8182,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -8180,7 +8300,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8381,21 +8507,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -8526,7 +8649,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8668,7 +8797,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -8692,7 +8820,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[]] # vCenter Single Sign On Identity Sources - # To construct, see NOTES section for IDENTITYSOURCE properties and create a hash table. ${IdentitySource}, [Parameter()] @@ -8840,7 +8967,13 @@ begin { UpdateViaIdentityExpanded = 'Az.VMware.private\Update-AzVMwarePrivateCloud_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8911,7 +9044,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. [AddonName ]: Name of the addon for the private cloud [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud [CloudLinkName ]: Name of the cloud link resource @@ -9061,7 +9194,13 @@ begin { GetViaIdentity = 'Az.VMware.custom\Get-AzVMwareAddon'; } if (('List', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9129,7 +9268,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. -PROPERTY : The properties of an addon resource +PROPERTY : The properties of an addon resource To construct, see NOTES section for PROPERTY properties and create a hash table. AddonType : The type of private cloud addon .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareaddon @@ -9254,7 +9393,13 @@ begin { CreateExpanded = 'Az.VMware.custom\New-AzVMwareAddon'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9684,7 +9829,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. -IDENTITYSOURCE : vCenter Single Sign On Identity Sources +IDENTITYSOURCE : vCenter Single Sign On Identity Sources To construct, see NOTES section for IDENTITYSOURCE properties and create a hash table. [Alias ]: The domain's NetBIOS name [BaseGroupDn ]: The base distinguished name for groups [BaseUserDn ]: The base distinguished name for users @@ -9947,7 +10092,13 @@ begin { CreateExpanded = 'Az.VMware.custom\New-AzVMwarePrivateCloud'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10614,7 +10765,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. [AddonName ]: Name of the addon for the private cloud [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud [CloudLinkName ]: Name of the cloud link resource @@ -10778,7 +10929,13 @@ begin { DeleteViaIdentity = 'Az.VMware.custom\Remove-AzVMwareAddon'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10851,7 +11008,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. [AddonName ]: Name of the addon for the private cloud [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud [CloudLinkName ]: Name of the cloud link resource @@ -11009,7 +11166,13 @@ begin { DeleteViaIdentity = 'Az.VMware.custom\Remove-AzVMwarePrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 index 62c9a8b0b3e6..56c13c32ac48 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 @@ -35,7 +35,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. [AddonName ]: Name of the addon for the private cloud [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud [CloudLinkName ]: Name of the cloud link resource @@ -199,7 +199,13 @@ begin { DeleteViaIdentity = 'Az.VMware.custom\Remove-AzVMwareAddon'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 index ec33bbcfcb93..2642287fcb32 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 @@ -129,14 +129,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -237,7 +235,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareAuthorization_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 index 5d842e97f0b6..9854db63418f 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 @@ -129,14 +129,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -237,7 +235,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareCloudLink_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 index d557cd5c14fb..b7d7ac352d68 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 @@ -129,14 +129,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -237,7 +235,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareCluster_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 index a17f9a35ba89..60cb29cf0875 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 @@ -163,21 +163,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -279,7 +276,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareDatastore_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 index 892069d091e0..79955566afd3 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 @@ -129,14 +129,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -237,7 +235,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 index 7f8afffa4dcb..19d7c2681a9c 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 @@ -165,21 +165,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityCluster', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -281,7 +278,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 index 85b247e24794..aa1648cb78f8 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 @@ -35,7 +35,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. [AddonName ]: Name of the addon for the private cloud [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud [CloudLinkName ]: Name of the cloud link resource @@ -193,7 +193,13 @@ begin { DeleteViaIdentity = 'Az.VMware.custom\Remove-AzVMwarePrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 b/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 index 6cd6338626d2..382fcccd34a0 100644 --- a/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 +++ b/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 @@ -122,7 +122,13 @@ begin { Check = 'Az.VMware.private\Test-AzVMwareLocationQuotaAvailability_Check'; } if (('Check') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 b/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 index 6c2d424178a9..15d1bc10da4f 100644 --- a/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 +++ b/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 @@ -128,7 +128,13 @@ begin { CheckExpanded = 'Az.VMware.private\Test-AzVMwareLocationTrialAvailability_CheckExpanded'; } if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 index e57d5816cf5d..7f78ea1d4711 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 @@ -125,14 +125,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -227,7 +225,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 index e32ea88b756f..9a7157f987db 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 @@ -125,14 +125,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -233,7 +231,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 index 7cad5117ce83..e95516597c13 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -242,7 +240,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 index 52d7ab7df751..fe7f50d4a007 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 @@ -161,21 +161,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -296,7 +293,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 index 6442195318b7..d0087bd5b659 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 @@ -125,14 +125,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -245,7 +243,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 index cbd8ab54a58d..ff59b65a9c69 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 @@ -163,21 +163,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -308,7 +305,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 index 97227fbdb68b..d9e52bd13599 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 @@ -104,7 +104,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -128,7 +127,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[]] # vCenter Single Sign On Identity Sources - # To construct, see NOTES section for IDENTITYSOURCE properties and create a hash table. ${IdentitySource}, [Parameter()] @@ -276,7 +274,13 @@ begin { UpdateViaIdentityExpanded = 'Az.VMware.private\Update-AzVMwarePrivateCloud_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/generated/Module.cs b/src/VMware/VMware.Autorest/generated/Module.cs index c11300822a85..d7d0a3ca8e5c 100644 --- a/src/VMware/VMware.Autorest/generated/Module.cs +++ b/src/VMware/VMware.Autorest/generated/Module.cs @@ -17,6 +17,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + using SanitizerDelegate = global::System.Action; + using GetTelemetryInfoDelegate = global::System.Func>; /// A class that contains the module-common code and data. public partial class Module @@ -59,6 +61,9 @@ public partial class Module /// The delegate to get the telemetry Id. public GetTelemetryIdDelegate GetTelemetryId { get; set; } + /// The delegate to get the telemetry info. + public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; } + /// the singleton of this module class public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } @@ -77,6 +82,9 @@ public partial class Module /// The ResourceID for this module (azure arm). public string ResourceId => @"Az.VMware"; + /// The delegate to call in WriteObject to sanitize the output object. + public SanitizerDelegate SanitizeOutput { get; set; } + /// The delegate for creating a telemetry. public TelemetryDelegate Telemetry { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs index 29bd7cb66895..6d2deec702a6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs @@ -230,6 +230,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -403,6 +413,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs index c3a67550fd11..8430da53f12a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs index e47d04448a24..72b980ec3be3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs @@ -191,6 +191,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -382,6 +392,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs index 8230e1607f96..78fc0c10c017 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs index 8a6589ad3bc4..4f04c89f55fb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs index 3efe26d10d4b..358a3b470197 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs @@ -175,6 +175,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -369,6 +379,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs index f8dad5b7a3b2..73ca5e54312c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -381,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs index 37f498eb8272..6e5857334abc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs @@ -220,6 +220,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -393,6 +403,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs index 25dfb20f2794..b2b85562b8cb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs index 7b0ab1895233..a1d0250c1cfc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs @@ -175,6 +175,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -369,6 +379,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs index 37616820f60f..ee4ed8ab1a34 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -381,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs index fb738f019085..34301cb8f5e2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs @@ -220,6 +220,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -393,6 +403,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs index eb981f10a0a2..79e0911c5cca 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs @@ -228,6 +228,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -404,6 +414,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs index cf47cfe74c2f..2249e4602349 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs index 1891ac155ac2..6cc6ff36bfba 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs @@ -175,6 +175,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -369,6 +379,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs index 7569ec68ece8..c60ee7cb8aae 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -381,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs index 9ae7c2f593ae..531434509e99 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs @@ -220,6 +220,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -393,6 +403,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs index 0eb5c3dc589c..5622899b15cd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs @@ -243,6 +243,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -416,6 +426,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs index 922c7d71a72e..91c3809fb7b2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs @@ -175,6 +175,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -373,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs index c27c77e5a47f..3f44e4b01db2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -385,6 +395,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs index e696b6202cc4..31733f07f543 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs @@ -204,6 +204,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -395,6 +405,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs index f6577d70a75d..0226c67c466e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs @@ -234,6 +234,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -407,6 +417,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs index da9ee4d6fba2..b623ee6b58a4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs index 71b26efbea32..09131a9a68a2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs @@ -175,6 +175,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -369,6 +379,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs index 8fe6598f0f34..6ae92c8654d8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -381,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs index 7c9dc9dbefd8..c8177d83e947 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs @@ -220,6 +220,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -393,6 +403,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs index d935e9887fb7..d0abeab4bde6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs @@ -174,6 +174,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -344,6 +354,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs index 641edf790673..2147a0079d34 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs @@ -245,6 +245,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -418,6 +428,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs index b3e5d80d31f7..0ce071021e28 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs @@ -175,6 +175,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -373,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs index 6da75f7a7795..877eb1a2877c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs @@ -192,6 +192,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -387,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs index 5bcd0af9d9c3..6d2ed8a18ee1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs @@ -206,6 +206,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -397,6 +407,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs index 43b010eb27f0..0f7c8ebdad7d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs @@ -234,6 +234,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -407,6 +417,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs index d9f0662f4524..4d03be732c1f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs @@ -214,6 +214,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -390,6 +400,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs index 1470af26aa35..361389e2de70 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs @@ -215,6 +215,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -388,6 +398,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs index f7875be0d44c..550ddc4eb8be 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs @@ -175,6 +175,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -365,6 +375,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs index 220aa73f37c0..b7b198156ea4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs @@ -206,6 +206,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -379,6 +389,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs index e9f16bec8625..b981e6c57f26 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs @@ -192,6 +192,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -365,6 +375,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs index c47d3294c50f..cb2d855b9c05 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs @@ -246,6 +246,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -419,6 +429,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs index fa36742ce761..2743d2fb7e6d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs @@ -178,6 +178,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -376,6 +386,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs index 7fb8661b8808..85bd71cf4611 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs @@ -207,6 +207,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -398,6 +408,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs index 7ad31234e858..a597446f2d75 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs @@ -193,6 +193,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -388,6 +398,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs index 488ed732a3db..1b232001d10d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs @@ -237,6 +237,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -410,6 +420,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs index 9b54a76f72d6..121a0bc4db45 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs @@ -173,6 +173,7 @@ public partial class GetAzVMwareScriptExecutionLog_Get : global::System.Manageme SerializedName = @"scriptOutputStreamType", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Information", "Warning", "Output", "Error")] public System.Collections.Generic.List ScriptOutputStreamType { get => this._scriptOutputStreamType; set => this._scriptOutputStreamType = value; } /// Backing field for property. @@ -244,6 +245,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -420,6 +431,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs index bbc9a8db7e52..03d47c1b6be7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs @@ -139,6 +139,7 @@ public partial class GetAzVMwareScriptExecutionLog_GetViaIdentity : global::Syst SerializedName = @"scriptOutputStreamType", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Information", "Warning", "Output", "Error")] public System.Collections.Generic.List ScriptOutputStreamType { get => this._scriptOutputStreamType; set => this._scriptOutputStreamType = value; } /// @@ -191,6 +192,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -388,6 +399,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs index 0ac4a2eee3cc..116566214a78 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs @@ -153,6 +153,7 @@ public partial class GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud : SerializedName = @"scriptOutputStreamType", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Information", "Warning", "Output", "Error")] public System.Collections.Generic.List ScriptOutputStreamType { get => this._scriptOutputStreamType; set => this._scriptOutputStreamType = value; } /// @@ -205,6 +206,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -399,6 +410,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs index 7594b30f9bcb..acccd9251ec7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs @@ -230,6 +230,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -403,6 +413,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs index ad1f1453affe..93b47b47e2d5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs index 0a95c834b733..00b38442c679 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs @@ -191,6 +191,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -382,6 +392,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs index 3e0d09f2d7c1..6de88e9f8d57 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs index 28b9a904cb8e..0205c9ca26de 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs @@ -230,6 +230,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -403,6 +413,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs index d14d6e6fa15f..06754b291d2f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs index dc886a4e74ee..fc8df64d5514 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs @@ -191,6 +191,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -382,6 +392,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs index aa0af28186a6..84e6daabcc06 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs index e931152f6529..c642d5297e91 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs @@ -243,6 +243,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -416,6 +426,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs index ea60977bb098..457655c3f52b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs @@ -175,6 +175,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -373,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs index fa66f203d39d..be9e156e1b41 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -385,6 +395,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs index 1a7e54f9db57..72cdd1b6d65a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs @@ -204,6 +204,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -395,6 +405,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs index ba2aaaaade70..bfee216b340b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs @@ -234,6 +234,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -407,6 +417,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs index e543f6b203b1..5b2e57cbd918 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs index 51dd1c50e880..ed9258dd3390 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs index 69e29e2bc0e1..c6da68efd46e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -382,6 +392,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs index 004fbcdd3202..ce731b35209c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs index d9501f6594d3..90f99be59c98 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs @@ -231,6 +231,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -404,6 +414,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs index 63298d7cf6c4..6d170a952463 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs index 1d282fa57e27..e96c92b451b2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs @@ -192,6 +192,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -384,6 +394,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs index 97639f4147b2..e9bc90246210 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs index ca68b372d1db..224f366d969b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs index d51c70abc452..2175b3f80074 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs index f7cdd248f49d..8f15f0e17df2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -381,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs index dc8013fee849..7fa3d53e83e7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs index bf5f7ec530ea..3b4c84d0d62b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs index c4af5e7bb15e..4a4bafeb0128 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs index 14a55badca10..efab47ea636e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -381,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs index d3b2457e4b99..3fc4740555f4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs index fe8cc730b9a5..ff287ab1db7c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs @@ -231,6 +231,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -404,6 +414,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs index 7c43a05a245c..6f8ba5c8cc34 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs index 4300cef6b734..89e860781aba 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs @@ -192,6 +192,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -384,6 +394,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs index 0e89849930be..ee64427b74a6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs index d14f0ea1ef32..53d20aa98eb0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs @@ -231,6 +231,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -404,6 +414,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs index 7e76d825ade3..0fa50a2886f8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs index 1db7a07c9e5e..4441d708902e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs @@ -192,6 +192,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -384,6 +394,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs index 2fdd94be9a63..0c6e5efaf868 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs index f7cc2722f1a7..903e5a3ff466 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs index 5539101676e0..f276d9dc43a2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs index f4f6a797e3e5..e569f505da16 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -381,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs index eaf243c843e6..8bee4c6a81b2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs index d4e826680981..a8a35f56e5d3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs index d588ce0faa83..43b6d97a91ca 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs index 4b91f5a35127..f0c3b857a030 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -381,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs index 63165e322f70..ee1426f6738a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs index 1ca514ca8463..d292c76a2736 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs @@ -229,6 +229,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -402,6 +412,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs index ab5ccc76918d..44c0ce96fd1d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -370,6 +380,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs index 415baf536971..2e15cfe023f6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs @@ -190,6 +190,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -381,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs index 6ac1184dd43f..1cf8ccf1bdb5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs index ea0880dca451..efddd39ca6c6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs @@ -215,6 +215,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -388,6 +398,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs index fffe24a9b640..9cf8ccdc7d16 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs @@ -176,6 +176,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -366,6 +376,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs index 572c06574bb5..ac72e582bc52 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs @@ -221,6 +221,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs index dc178f24be6f..3f94ba8b61ee 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs @@ -285,6 +285,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -504,6 +514,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs index 395958dff3d8..517e7abe0f81 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs @@ -230,6 +230,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -475,6 +485,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs index cf840676645b..e48f234355cd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs @@ -215,6 +215,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -463,6 +473,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs index 64a253a187d3..7b1cf35407a8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs @@ -245,6 +245,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -486,6 +496,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs index b17a27e634ba..b1a4837d4c6f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs @@ -282,6 +282,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -501,6 +511,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs index 5dd51bd2ae4b..fc3683b4deb6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs @@ -224,6 +224,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -467,6 +477,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs index b4e28e11baa7..0370654f2a20 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs @@ -240,6 +240,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -480,6 +490,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs index 994995db779d..47d4aa9e7e69 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs @@ -270,6 +270,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -489,6 +499,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs index 7809dd07030d..f332791b4435 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs @@ -212,6 +212,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -455,6 +465,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs index 16ee458d7204..09412b1c10ec 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs @@ -230,6 +230,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -471,6 +481,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs index 639f524ba72c..f6fe1846bf60 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs index ec017a5e9fe7..380f2243d6d0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -466,6 +476,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs index 2e4b34aae3f7..f7a1e5698f4d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -481,6 +491,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs index 8fb2ae288035..ea979f33c499 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs @@ -304,6 +304,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -523,6 +533,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs index 8e0fb6f15629..ff98800772d1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs @@ -246,6 +246,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -489,6 +499,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs index 39ae54148b2e..ad736ba7f50b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs @@ -264,6 +264,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -504,6 +514,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs index abde61dc6c73..edfd78964a55 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs @@ -332,6 +332,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -551,6 +561,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs index 2de7a72dfc4a..b52fc4b7004e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs @@ -275,6 +275,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -519,6 +529,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs index f529c5e1003f..cabd6e225414 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs @@ -259,6 +259,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -506,6 +516,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs index 57934c29dda5..2dcc2952212e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs @@ -292,6 +292,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -532,6 +542,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs index 29ded30e4b2a..e3f24cc52b1d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs @@ -309,6 +309,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -528,6 +538,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs index 521a956c1d95..bf04531f88b8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs @@ -253,6 +253,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -496,6 +506,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs index 04482871f45b..97f76756feb7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs @@ -269,6 +269,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -510,6 +520,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs index e02a16121cb4..40639bf856f9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs @@ -298,6 +298,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -517,6 +527,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs index 3019a6e64d31..2013c88feef5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs @@ -243,6 +243,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -487,6 +497,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs index 5e5adc7e967b..92e734ed412d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -470,6 +480,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs index f97a103c86db..6638fb64ea4e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs @@ -258,6 +258,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -499,6 +509,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs index 21aec2802a7a..1990ca9ff1b1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs @@ -255,6 +255,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -474,6 +484,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs index ab0f6d122e1a..c680c6e208ce 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs @@ -213,6 +213,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -452,6 +462,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs index 4ef1f0233909..de03d90f27aa 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs @@ -255,6 +255,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -474,6 +484,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs index b5cd5581c2ac..0bec26c7aefd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs @@ -215,6 +215,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -454,6 +464,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs index 8f55302b90eb..ec3498b32120 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs @@ -483,6 +483,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -702,6 +712,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs index cde2c4cfd80f..bf9bf9d1625f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs @@ -367,6 +367,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -586,6 +596,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs index 178dd0d86c57..43365349ed4c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs @@ -309,6 +309,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -552,6 +562,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs index 82da6cbe15e6..02fcef038b1a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs @@ -327,6 +327,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -568,6 +578,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs index 3efec62d2eee..155f6276d800 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs @@ -304,6 +304,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -523,6 +533,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs index 7292fd89fc33..5d740632e9c4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs @@ -249,6 +249,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -492,6 +502,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs index aa41bf1703ab..08473f8ec953 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs @@ -264,6 +264,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -505,6 +515,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs index ce4fa40fc01d..2bf5fe1d1cca 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs @@ -340,6 +340,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -559,6 +569,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs index ea68ca2df447..827fd8c29c25 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs @@ -283,6 +283,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -527,6 +537,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs index 1f4c4af5b35a..d163ba8f3d0b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs @@ -300,6 +300,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -541,6 +551,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs index 337e5db7e536..14e7460514bc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs @@ -338,6 +338,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -557,6 +567,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs index 64c9e235f156..6b8593fb9517 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs @@ -283,6 +283,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -526,6 +536,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs index 35791a6d7462..2e11275f54ad 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs @@ -298,6 +298,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -539,6 +549,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs index eca0a8f35f1d..ec3ab39b1585 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs @@ -328,6 +328,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -547,6 +557,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs index 49f7db86e4ff..16e28fda918a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs @@ -271,6 +271,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -515,6 +525,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs index d86294f9ecc0..ef5430d1fa8e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs @@ -288,6 +288,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -529,6 +539,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs index cc4a857d831a..8b40a82272b6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs @@ -294,6 +294,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -513,6 +523,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs index d3ef2ddc3810..c056fb7d2690 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs @@ -237,6 +237,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -480,6 +490,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs index a8f5a667f3df..131e148fb6fd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs @@ -254,6 +254,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -495,6 +505,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs index 5d34007ea0bc..66675adffd6b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs @@ -326,6 +326,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -545,6 +555,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs index f769d7fe868e..1c5260d98762 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs @@ -271,6 +271,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -514,6 +524,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs index fdf9788786da..b7f5f9c8c31b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs @@ -286,6 +286,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -527,6 +537,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs index 7781e648f5d6..50e0bfc0fbca 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs @@ -304,6 +304,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -523,6 +533,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs index 1a34d6dcdfb0..3fad88e0a05b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs @@ -249,6 +249,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -492,6 +502,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs index 5d1de0cfe1ad..4885a721c712 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs @@ -264,6 +264,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -505,6 +515,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs index 5f7889c92ffe..b846c375e655 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs @@ -282,6 +282,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -501,6 +511,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs index 2c9af1c028ab..3aa9ef4a7b49 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs @@ -224,6 +224,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -467,6 +477,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs index c25306504e66..eae33dbf0de0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs @@ -240,6 +240,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -480,6 +490,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs index 69dfdc0ed143..af4e85e22a4f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs index cc33bc467f0d..3f28a65a7633 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -466,6 +476,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs index 1b3929ee7bec..19a1276b8f28 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -481,6 +491,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs index 88c89724c969..1aac0d83dd2b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs index 5a01ffb24466..eb73751b264b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -466,6 +476,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs index adb9824ffd5c..1dd1a4321019 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs @@ -239,6 +239,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -479,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs index b023feac19f0..63e3ee55f85e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs index 868173d70b8f..a5fd48dfc1cc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -466,6 +476,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs index 81640fcc5854..d4faeecab03c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs @@ -239,6 +239,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -479,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs index d05ee7bebbf0..6cfaa18824f2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs @@ -296,6 +296,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -515,6 +525,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs index b04a91986f08..2b7992960255 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -470,6 +480,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs index 172a8ac258a6..5aab6dd3831e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs @@ -239,6 +239,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -483,6 +493,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs index 7ed468d6e127..baa59ed05cf9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs @@ -254,6 +254,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -494,6 +504,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs index cbe9e8684853..4efda6f218ef 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs index 79199aae6fd9..5570e56d5cdd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -466,6 +476,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs index df36e4006adb..a17d3fdd677e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -482,6 +492,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs index 59f348cddcdf..4ece1b94b41f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs @@ -298,6 +298,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -517,6 +527,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs index 3c1b67b83700..fb8eb763e0e0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -470,6 +480,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs index 414e80fa1aaf..f2f8da18edf8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -485,6 +495,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs index 9453e5e45ebc..678a635c3bee 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs @@ -258,6 +258,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -498,6 +508,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs index 14546a11925c..d5bec21072e2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs @@ -267,6 +267,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -486,6 +496,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs index bedda032818a..b29e4f9e9085 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs @@ -224,6 +224,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -463,6 +473,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs index 4a316b90fade..112a75136611 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs @@ -282,6 +282,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -501,6 +511,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs index fbbc7d0ec30e..71461adb9255 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs @@ -224,6 +224,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -467,6 +477,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs index aa2527877b69..a72c8213d15e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs @@ -242,6 +242,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -482,6 +492,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs index a7c87e26780e..8f300f2202eb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs index 0ee0449fca48..db577e09fa6e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs @@ -224,6 +224,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -467,6 +477,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs index e8e82e77a268..b0e7068f95c9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -482,6 +492,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs index 71fa5228d42b..2736f694ed49 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs @@ -283,6 +283,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -502,6 +512,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs index 7860f35283e1..9898465ac284 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs @@ -226,6 +226,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -469,6 +479,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs index 23700f69bd55..b3c01a2fdde9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -482,6 +492,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs index 102569f7d53d..0da56ba44791 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs index 20bf810dedb1..9b15d0ccbcb3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs @@ -224,6 +224,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -467,6 +477,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs index 52dd76276675..4b3387fca9a9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -482,6 +492,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs index bea2d9d0646d..882c975f10f0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs @@ -283,6 +283,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -502,6 +512,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs index 66d63ccc6db9..84a508749767 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs @@ -226,6 +226,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -469,6 +479,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs index 94e4d703d0eb..555bf1830414 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -482,6 +492,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs index abeebdf85b6c..6bc729110a74 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs @@ -283,6 +283,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -502,6 +512,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs index aebedc8cc615..5d826ca31ea9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs @@ -224,6 +224,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -467,6 +477,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs index 2240034bb021..832a33c223fb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -482,6 +492,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs index eaee00908352..582164dbd8d7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs index ace4dcc50ab0..6d02e87bcf56 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs @@ -224,6 +224,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -467,6 +477,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs index 88d075ffa7ba..35c0ec30444c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -482,6 +492,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs index ccbbaaf85080..6b04a1a28989 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs index 97eac622bb89..16f7bf079d35 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs @@ -224,6 +224,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -467,6 +477,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs index 4bfba194831d..3e27ce346711 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -482,6 +492,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs index cc0fd31b65db..f28316fce2d8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs @@ -200,6 +200,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -373,6 +383,21 @@ public TestAzVMwareLocationQuotaAvailability_Check() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs index 6ef43227cbaf..a43af7f0516a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs @@ -214,6 +214,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -387,6 +397,21 @@ public TestAzVMwareLocationTrialAvailability_CheckExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs index 95d39758decb..d68d92ad182b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs @@ -270,6 +270,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -459,7 +469,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _authorizationBody = await this.Client.AuthorizationsGetWithResult(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _authorizationBody, onOk, onDefault, this, Pipeline); + await this.Client.AuthorizationsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) @@ -496,6 +506,21 @@ private void Update_authorizationBody() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs index 2aa2c154a1fa..3ec1eee1bdb4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs @@ -212,6 +212,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -403,7 +413,7 @@ protected override void ProcessRecord() { _authorizationBody = await this.Client.AuthorizationsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdateViaIdentity(InputObject.Id, _authorizationBody, onOk, onDefault, this, Pipeline); + await this.Client.AuthorizationsCreateOrUpdateViaIdentity(InputObject.Id, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -426,7 +436,7 @@ protected override void ProcessRecord() } _authorizationBody = await this.Client.AuthorizationsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.AuthorizationName ?? null, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.AuthorizationName ?? null, _authorizationBody, onOk, onDefault, this, Pipeline); + await this.Client.AuthorizationsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.AuthorizationName ?? null, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -464,6 +474,21 @@ private void Update_authorizationBody() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs index cabdbab97929..ea187bb60aaa 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs @@ -230,6 +230,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -422,7 +432,7 @@ protected override void ProcessRecord() this.PrivateCloudInputObject.Id += $"/authorizations/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _authorizationBody = await this.Client.AuthorizationsGetViaIdentityWithResult(PrivateCloudInputObject.Id, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _authorizationBody, onOk, onDefault, this, Pipeline); + await this.Client.AuthorizationsCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -441,7 +451,7 @@ protected override void ProcessRecord() } _authorizationBody = await this.Client.AuthorizationsGetWithResult(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _authorizationBody, onOk, onDefault, this, Pipeline); + await this.Client.AuthorizationsCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -480,6 +490,21 @@ private void Update_authorizationBody() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs index c15ae4f84bb5..07a004fc743f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -470,7 +480,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _cloudLinkBody = await this.Client.CloudLinksGetWithResult(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _cloudLinkBody, onOk, onDefault, this, Pipeline); + await this.Client.CloudLinksCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) @@ -510,6 +520,21 @@ private void Update_cloudLinkBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs index fac6852dc9e9..34acae5d07c9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -414,7 +424,7 @@ protected override void ProcessRecord() { _cloudLinkBody = await this.Client.CloudLinksGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdateViaIdentity(InputObject.Id, _cloudLinkBody, onOk, onDefault, this, Pipeline); + await this.Client.CloudLinksCreateOrUpdateViaIdentity(InputObject.Id, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -437,7 +447,7 @@ protected override void ProcessRecord() } _cloudLinkBody = await this.Client.CloudLinksGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.CloudLinkName ?? null, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.CloudLinkName ?? null, _cloudLinkBody, onOk, onDefault, this, Pipeline); + await this.Client.CloudLinksCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.CloudLinkName ?? null, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -478,6 +488,21 @@ private void Update_cloudLinkBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs index 17bf8cfd710e..1b60cc88c420 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -433,7 +443,7 @@ protected override void ProcessRecord() this.PrivateCloudInputObject.Id += $"/cloudLinks/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _cloudLinkBody = await this.Client.CloudLinksGetViaIdentityWithResult(PrivateCloudInputObject.Id, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _cloudLinkBody, onOk, onDefault, this, Pipeline); + await this.Client.CloudLinksCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -452,7 +462,7 @@ protected override void ProcessRecord() } _cloudLinkBody = await this.Client.CloudLinksGetWithResult(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _cloudLinkBody, onOk, onDefault, this, Pipeline); + await this.Client.CloudLinksCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -494,6 +504,21 @@ private void Update_cloudLinkBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs index dc177d10d01b..1a4b7a8fe8d9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs @@ -293,6 +293,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -512,6 +522,21 @@ public UpdateAzVMwareCluster_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs index 74321b6ee14d..e1d78a8ee771 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs @@ -235,6 +235,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -478,6 +488,21 @@ public UpdateAzVMwareCluster_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs index b7544abfba84..12a0d7ee8584 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs @@ -253,6 +253,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -493,6 +503,21 @@ public UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs index 7ca30febdea4..1285aaf94cf4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs @@ -332,6 +332,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -521,7 +531,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _datastoreBody = await this.Client.DatastoresGetWithResult(SubscriptionId, ResourceGroupName, PrivateCloudName, ClusterName, Name, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, ClusterName, Name, _datastoreBody, onOk, onDefault, this, Pipeline); + await this.Client.DatastoresCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, ClusterName, Name, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) @@ -573,6 +583,21 @@ private void Update_datastoreBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs index 22728f310c16..83d3043ecea1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs @@ -277,6 +277,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -469,7 +479,7 @@ protected override void ProcessRecord() this.ClusterInputObject.Id += $"/datastores/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _datastoreBody = await this.Client.DatastoresGetViaIdentityWithResult(ClusterInputObject.Id, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdateViaIdentity(ClusterInputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline); + await this.Client.DatastoresCreateOrUpdateViaIdentity(ClusterInputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -492,7 +502,7 @@ protected override void ProcessRecord() } _datastoreBody = await this.Client.DatastoresGetWithResult(ClusterInputObject.SubscriptionId ?? null, ClusterInputObject.ResourceGroupName ?? null, ClusterInputObject.PrivateCloudName ?? null, ClusterInputObject.ClusterName ?? null, Name, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdate(ClusterInputObject.SubscriptionId ?? null, ClusterInputObject.ResourceGroupName ?? null, ClusterInputObject.PrivateCloudName ?? null, ClusterInputObject.ClusterName ?? null, Name, _datastoreBody, onOk, onDefault, this, Pipeline); + await this.Client.DatastoresCreateOrUpdate(ClusterInputObject.SubscriptionId ?? null, ClusterInputObject.ResourceGroupName ?? null, ClusterInputObject.PrivateCloudName ?? null, ClusterInputObject.ClusterName ?? null, Name, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -545,6 +555,21 @@ private void Update_datastoreBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs index c1039985e5aa..03fd8b4ab874 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs @@ -259,6 +259,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -450,7 +460,7 @@ protected override void ProcessRecord() { _datastoreBody = await this.Client.DatastoresGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdateViaIdentity(InputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline); + await this.Client.DatastoresCreateOrUpdateViaIdentity(InputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -477,7 +487,7 @@ protected override void ProcessRecord() } _datastoreBody = await this.Client.DatastoresGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.ClusterName ?? null, InputObject.DatastoreName ?? null, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.ClusterName ?? null, InputObject.DatastoreName ?? null, _datastoreBody, onOk, onDefault, this, Pipeline); + await this.Client.DatastoresCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.ClusterName ?? null, InputObject.DatastoreName ?? null, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -530,6 +540,21 @@ private void Update_datastoreBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs index 08022164981c..b692c67dbc37 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs @@ -292,6 +292,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -484,7 +494,7 @@ protected override void ProcessRecord() this.PrivateCloudInputObject.Id += $"/clusters/{(global::System.Uri.EscapeDataString(this.ClusterName.ToString()))}/datastores/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _datastoreBody = await this.Client.DatastoresGetViaIdentityWithResult(PrivateCloudInputObject.Id, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline); + await this.Client.DatastoresCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -503,7 +513,7 @@ protected override void ProcessRecord() } _datastoreBody = await this.Client.DatastoresGetWithResult(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, ClusterName, Name, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, ClusterName, Name, _datastoreBody, onOk, onDefault, this, Pipeline); + await this.Client.DatastoresCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, ClusterName, Name, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -557,6 +567,21 @@ private void Update_datastoreBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs index 4fa317129819..cd9ab525132d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs @@ -309,6 +309,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -498,7 +508,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetWithResult(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _globalReachConnectionBody, onOk, onDefault, this, Pipeline); + await this.Client.GlobalReachConnectionsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) @@ -546,6 +556,21 @@ private void Update_globalReachConnectionBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs index 1750d0a8950d..66ef9865b25f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs @@ -253,6 +253,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -444,7 +454,7 @@ protected override void ProcessRecord() { _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdateViaIdentity(InputObject.Id, _globalReachConnectionBody, onOk, onDefault, this, Pipeline); + await this.Client.GlobalReachConnectionsCreateOrUpdateViaIdentity(InputObject.Id, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -467,7 +477,7 @@ protected override void ProcessRecord() } _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.GlobalReachConnectionName ?? null, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.GlobalReachConnectionName ?? null, _globalReachConnectionBody, onOk, onDefault, this, Pipeline); + await this.Client.GlobalReachConnectionsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.GlobalReachConnectionName ?? null, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -517,6 +527,21 @@ private void Update_globalReachConnectionBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs index 4ab9dfe146dc..021578d8618a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs @@ -269,6 +269,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -461,7 +471,7 @@ protected override void ProcessRecord() this.PrivateCloudInputObject.Id += $"/globalReachConnections/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetViaIdentityWithResult(PrivateCloudInputObject.Id, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _globalReachConnectionBody, onOk, onDefault, this, Pipeline); + await this.Client.GlobalReachConnectionsCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -480,7 +490,7 @@ protected override void ProcessRecord() } _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetWithResult(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _globalReachConnectionBody, onOk, onDefault, this, Pipeline); + await this.Client.GlobalReachConnectionsCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -530,6 +540,21 @@ private void Update_globalReachConnectionBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs index 89eb07db77a5..c8b69a5a7fdd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs @@ -347,6 +347,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -566,6 +576,21 @@ public UpdateAzVMwarePlacementPolicy_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs index 5693ce514888..a54a11dc14c8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs @@ -292,6 +292,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -537,6 +547,21 @@ public UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs index 7f8084b4d09e..f94457114b28 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs @@ -272,6 +272,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -519,6 +529,21 @@ public UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs index 023b02572673..d944ca537795 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs @@ -307,6 +307,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -548,6 +558,21 @@ public UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs index 6ae48434b33a..45b8f0031c25 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs @@ -390,6 +390,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -609,6 +619,21 @@ public UpdateAzVMwarePrivateCloud_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs index 33842b70dbcc..dae11bef4370 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs @@ -347,6 +347,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -586,6 +596,21 @@ public UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs index fb198d6d2039..819623953fa2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs @@ -304,6 +304,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -523,6 +533,21 @@ public UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs index f6c866de9905..199c48ba15aa 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs @@ -249,6 +249,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -492,6 +502,21 @@ public UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs index 774dec4d47fd..6305394bbcd8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs @@ -264,6 +264,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -505,6 +515,21 @@ public UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs index ba716106115f..00b6f28e4f5c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs @@ -340,6 +340,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -559,6 +569,21 @@ public UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs index 6a719ec91be0..0df9ad3c445b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs @@ -283,6 +283,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -527,6 +537,21 @@ public UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs index 31e940bb1951..15167ed159d7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs @@ -300,6 +300,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -541,6 +551,21 @@ public UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpa } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs index d3e6ce52322f..9ce646c17c9f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs @@ -338,6 +338,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -557,6 +567,21 @@ public UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs index b75800a855ef..51cb1394cf63 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs @@ -283,6 +283,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -527,6 +537,21 @@ public UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs index 1fe7190c55c4..9fd11595251f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs @@ -298,6 +298,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -539,6 +549,21 @@ public UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpande } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs index 4a5b9cfce199..9563cb89dab2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs @@ -330,6 +330,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -549,6 +559,21 @@ public UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs index 0817b9772e08..cbb57e3b1efe 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs @@ -271,6 +271,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -515,6 +525,21 @@ public UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs index 0c18c8e9c71f..9c71bb92e02b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs @@ -288,6 +288,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -529,6 +539,21 @@ public UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudE } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs index 476f4eb8debd..4a1a3bc81393 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs @@ -326,6 +326,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -545,6 +555,21 @@ public UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs index 491a5d5f43d9..5e097b283940 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs @@ -271,6 +271,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -515,6 +525,21 @@ public UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs index 26db139a494d..c39e5a07f294 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs @@ -286,6 +286,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -527,6 +537,21 @@ public UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpande } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs index 713b7833f535..f0497a75800c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs @@ -304,6 +304,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -523,6 +533,21 @@ public UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs index 3edf22ffbf52..074925b1a43e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs @@ -249,6 +249,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -493,6 +503,21 @@ public UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs index cbc9d12a059d..7446223f3dfe 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs @@ -264,6 +264,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -505,6 +515,21 @@ public UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpande } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 6fc4de170d2d..9f00efc3bef6 100644 --- a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -70,9 +70,8 @@ protected override void ProcessRecord() var variantGroups = profileGroups.SelectMany(pg => pg.Variants .GroupBy(v => new { v.CmdletName, v.IsInternal }) .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), - Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) + Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) .ToArray(); - var license = new StringBuilder(); license.Append(@" # ---------------------------------------------------------------------------------- @@ -114,6 +113,7 @@ protected override void ProcessRecord() sb.Append("param("); sb.Append($"{(parameterGroups.Any() ? Environment.NewLine : String.Empty)}"); + foreach (var parameterGroup in parameterGroups) { var parameters = parameterGroup.HasAllVariants ? parameterGroup.Parameters.Take(1) : parameterGroup.Parameters; diff --git a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs index c11d00256db3..001ab680a42c 100644 --- a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs +++ b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs @@ -12,44 +12,65 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell { - [Cmdlet(VerbsData.Export, "TestStub")] - [DoNotExport] - public class ExportTestStub : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ModuleName { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExportsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string OutputFolder { get; set; } - - [Parameter] - public SwitchParameter IncludeGenerated { get; set; } - - protected override void ProcessRecord() + [Cmdlet(VerbsData.Export, "TestStub")] + [DoNotExport] + public class ExportTestStub : PSCmdlet { - try - { - if (!Directory.Exists(ExportsFolder)) - { - throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } - var exportDirectories = Directory.GetDirectories(ExportsFolder); - if (!exportDirectories.Any()) - { - exportDirectories = new[] { ExportsFolder }; - } - var utilFile = Path.Combine(OutputFolder, "utils.ps1"); - if (!File.Exists(utilFile)) + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeGenerated { get; set; } + + protected override void ProcessRecord() { - var sc = new StringBuilder(); - sc.AppendLine(@"function RandomString([bool]$allChars, [int32]$len) { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + /*var loadEnvFile = Path.Combine(OutputFolder, "loadEnv.ps1"); + if (!File.Exists(loadEnvFile)) + { + var sc = new StringBuilder(); + sc.AppendLine(@" +$envFile = 'env.json' +if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' +} + +if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { + $envFilePath = Join-Path $PSScriptRoot $envFile +} else { + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' +} +$env = @{} +if (Test-Path -Path $envFilePath) { + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json +}"); + File.WriteAllText(loadEnvFile, sc.ToString()); + }*/ + var utilFile = Path.Combine(OutputFolder, "utils.ps1"); + if (!File.Exists(utilFile)) + { + var sc = new StringBuilder(); + sc.AppendLine(@"function RandomString([bool]$allChars, [int32]$len) { if ($allChars) { return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) } else { @@ -105,37 +126,40 @@ function cleanupEnv() { # Clean resources you create for testing } "); - File.WriteAllText(utilFile, sc.ToString()); - } - foreach (var exportDirectory in exportDirectories) - { - var outputFolder = OutputFolder; - if (exportDirectory != ExportsFolder) - { - outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); - Directory.CreateDirectory(outputFolder); - } - - var variantGroups = GetScriptCmdlets(exportDirectory) - .SelectMany(fi => fi.ToVariants()) - .Where(v => !v.IsDoNotExport) - .GroupBy(v => v.CmdletName) - .Select(vg => new VariantGroup(ModuleName, vg.Key, vg.Select(v => v).ToArray(), outputFolder, isTest: true)) - .Where(vtg => !File.Exists(vtg.FilePath) && (IncludeGenerated || !vtg.IsGenerated)); - - foreach (var variantGroup in variantGroups) - { - var sb = new StringBuilder(); - sb.AppendLine($"if(($null -eq $TestName) -or ($TestName -contains '{variantGroup.CmdletName}'))"); - sb.AppendLine(@"{ + File.WriteAllText(utilFile, sc.ToString()); + } + + + + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var variantGroups = GetScriptCmdlets(exportDirectory) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .GroupBy(v => v.CmdletName) + .Select(vg => new VariantGroup(ModuleName, vg.Key, vg.Select(v => v).ToArray(), outputFolder, isTest: true)) + .Where(vtg => !File.Exists(vtg.FilePath) && (IncludeGenerated || !vtg.IsGenerated)); + + foreach (var variantGroup in variantGroups) + { + var sb = new StringBuilder(); + sb.AppendLine($"if(($null -eq $TestName) -or ($TestName -contains '{variantGroup.CmdletName}'))"); + sb.AppendLine(@"{ $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath)" -); - sb.AppendLine($@" $TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); - sb.AppendLine(@" $currentPath = $PSScriptRoot + ); + sb.AppendLine($@" $TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); + sb.AppendLine(@" $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File $currentPath = Split-Path -Path $currentPath -Parent @@ -145,29 +169,29 @@ function cleanupEnv() { "); - sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); - var variants = variantGroup.Variants - .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) - .ToList(); + sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); + var variants = variantGroup.Variants + .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) + .ToList(); + + foreach (var variant in variants) + { + sb.AppendLine($"{Indent}It '{variant.VariantName}' -skip {{"); + sb.AppendLine($"{Indent}{Indent}{{ throw [System.NotImplementedException] }} | Should -Not -Throw"); + var variantSeparator = variants.IndexOf(variant) == variants.Count - 1 ? String.Empty : Environment.NewLine; + sb.AppendLine($"{Indent}}}{variantSeparator}"); + } + sb.AppendLine("}"); - foreach (var variant in variants) + File.WriteAllText(variantGroup.FilePath, sb.ToString()); + } + } + } + catch (Exception ee) { - sb.AppendLine($"{Indent}It '{variant.VariantName}' -skip {{"); - sb.AppendLine($"{Indent}{Indent}{{ throw [System.NotImplementedException] }} | Should -Not -Throw"); - var variantSeparator = variants.IndexOf(variant) == variants.Count - 1 ? String.Empty : Environment.NewLine; - sb.AppendLine($"{Indent}}}{variantSeparator}"); + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; } - sb.AppendLine("}"); - - File.WriteAllText(variantGroup.FilePath, sb.ToString()); - } } - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } } - } } diff --git a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs index 402ded6a38b5..1cd5b12b50ca 100644 --- a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -94,7 +94,7 @@ public static void WriteMarkdowns(IEnumerable variantGroups, PsMod sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); foreach (var relatedLink in markdownInfo.RelatedLinks) { - sb.Append($"{relatedLink}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"[{relatedLink}]({relatedLink}){Environment.NewLine}{Environment.NewLine}"); } File.WriteAllText(Path.Combine(docsFolder, $"{markdownInfo.CmdletName}.md"), sb.ToString()); diff --git a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index f071118fa719..ed4043e92376 100644 --- a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -188,6 +188,7 @@ internal class BaseOutput public VariantGroup VariantGroup { get; } protected static readonly bool IsAzure = Convert.ToBoolean(@"true"); + public BaseOutput(VariantGroup variantGroup) { VariantGroup = variantGroup; @@ -289,12 +290,31 @@ private string GetDefaultValuesStatements() { setCondition = $" -and {defaultInfo.SetCondition}"; } - sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); - sb.Append($"{Indent}{Indent}}}"); + //Yabo: this is bad to hard code the subscription id, but autorest load input README.md reversely (entry readme -> required readme), there are no other way to + //override default value set in required readme + if ("SubscriptionId".Equals(parameterName)) + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }}"); + sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')"); + sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.AppendLine($"{Indent}{Indent}{Indent}}}"); + sb.Append($"{Indent}{Indent}}}"); + } + else + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.Append($"{Indent}{Indent}}}"); + } + } return sb.ToString(); } + } internal class ProcessOutput : BaseOutput diff --git a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 5393a2c1d375..1f4241a413de 100644 --- a/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/src/VMware/VMware.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -31,7 +31,7 @@ internal class VariantGroup { public string ModuleName { get; } - public string RootModuleName {get => @"";} + public string RootModuleName { get => @""; } public string CmdletName { get; } public string CmdletVerb { get; } public string CmdletNoun { get; } @@ -49,7 +49,6 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } - public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -84,7 +83,6 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; - OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -258,7 +256,6 @@ internal class Parameter public ParameterMetadata Metadata { get; } public PsParameterHelpInfo HelpInfo { get; } public Type ParameterType { get; } - public Attribute[] Attributes { get; } public ParameterCategory[] Categories { get; } public ParameterCategory OrderCategory { get; } @@ -311,10 +308,10 @@ public Parameter(string variantName, string parameterName, ParameterMetadata met IsMandatory = ParameterAttribute.Mandatory; var complexParameterName = ParameterName.ToUpperInvariant(); - var complexMessage = $"{Environment.NewLine}To construct, see NOTES section for {complexParameterName} properties and create a hash table."; + var complexMessage = $"{Environment.NewLine}"; var description = ParameterAttribute.HelpMessage.NullIfEmpty() ?? HelpInfo.Description.NullIfEmpty() ?? InfoAttribute?.Description.NullIfEmpty() ?? String.Empty; // Remove the complex type message as it will be reinserted if this is a complex type - description = description.NormalizeNewLines().Replace(complexMessage, String.Empty).Replace(complexMessage.ToPsSingleLine(), String.Empty); + description = description.NormalizeNewLines(); // Make an InfoAttribute for processing only if one isn't provided InfoAttribute = Attributes.OfType().FirstOrDefault() ?? new InfoAttribute { PossibleTypes = new[] { ParameterType.Unwrap() }, Required = IsMandatory }; // Set the description if the InfoAttribute does not have one since they are exported without a description @@ -334,7 +331,7 @@ internal class ComplexInterfaceInfo public bool Required { get; } public bool ReadOnly { get; } public string Description { get; } - + public ComplexInterfaceInfo[] NestedInfos { get; } public bool IsComplexInterface { get; } @@ -351,7 +348,7 @@ public ComplexInterfaceInfo(string name, Type type, InfoAttribute infoAttribute, var unwrappedType = Type.Unwrap(); var hasBeenSeen = seenTypes?.Contains(unwrappedType) ?? false; (seenTypes ?? (seenTypes = new List())).Add(unwrappedType); - NestedInfos = hasBeenSeen ? new ComplexInterfaceInfo[]{} : + NestedInfos = hasBeenSeen ? new ComplexInterfaceInfo[] { } : unwrappedType.GetInterfaces() .Concat(InfoAttribute.PossibleTypes) .SelectMany(pt => pt.GetProperties() @@ -440,7 +437,7 @@ public CompleterInfo(ArgumentCompleterAttribute completerAttribute) } } - internal class PSArgumentCompleterInfo: CompleterInfo + internal class PSArgumentCompleterInfo : CompleterInfo { public string[] ResourceTypes { get; } @@ -511,7 +508,8 @@ public static Parameter[] ToParameters(this Variant variant) parameterHelp = parameterHelp.Where(ph => (!ph.ParameterSetNames.Any() || ph.ParameterSetNames.Any(psn => psn == variant.VariantName || psn == AllParameterSets)) && ph.Name != "IncludeTotalCount"); } var result = parameters.Select(p => new Parameter(variant.VariantName, p.Key, p.Value, parameterHelp.FirstOrDefault(ph => ph.Name == p.Key))); - if (variant.SupportsPaging) { + if (variant.SupportsPaging) + { // If supportsPaging is set, we will need to add First and Skip parameters since they are treated as common parameters which as not contained on Metadata>parameters variant.Info.Parameters["First"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Gets only the first 'n' objects."; variant.Info.Parameters["Skip"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Ignores the first 'n' objects and then gets the remaining objects."; diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareAuthorization.md index 7989e26583d2..e4bf3cebbc30 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareAuthorization.md @@ -86,7 +86,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -117,7 +116,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareCloudLink.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareCloudLink.md index ae9fcbc49bcc..17a3ecbaad7c 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareCloudLink.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareCloudLink.md @@ -86,7 +86,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -117,7 +116,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareCluster.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareCluster.md index 98857bc9ebcf..18f83a62de8e 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareCluster.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareCluster.md @@ -86,7 +86,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -117,7 +116,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareDatastore.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareDatastore.md index 9bd9a091958a..b8fdf903d9db 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareDatastore.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareDatastore.md @@ -77,7 +77,6 @@ Get a datastore in a data store name. ### -ClusterInputObject Identity Parameter -To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -124,7 +123,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -155,7 +153,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareGlobalReachConnection.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareGlobalReachConnection.md index 667a0fb33a8b..609655d71cc4 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareGlobalReachConnection.md @@ -87,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -118,7 +117,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwarePlacementPolicy.md b/src/VMware/VMware.Autorest/help/Get-AzVMwarePlacementPolicy.md index 75facf457710..f575f83cd132 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwarePlacementPolicy.md @@ -77,7 +77,6 @@ Get a placement policy by name in a private cloud cluster ### -ClusterInputObject Identity Parameter -To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -124,7 +123,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -155,7 +153,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloud.md b/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloud.md index 5726f1f60c53..c38c2f7592a6 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloud.md @@ -98,7 +98,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareVirtualMachine.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareVirtualMachine.md index e96a93ab4898..e3e3f10ad9e5 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareVirtualMachine.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareVirtualMachine.md @@ -77,7 +77,6 @@ Get a virtual machine by id in a private cloud cluster ### -ClusterInputObject Identity Parameter -To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -139,7 +138,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -155,7 +153,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/help/New-AzVMwareAuthorization.md index df7bacad89f7..907ab122a206 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareAuthorization.md @@ -84,7 +84,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -130,7 +129,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareCloudLink.md b/src/VMware/VMware.Autorest/help/New-AzVMwareCloudLink.md index 2d7894b3351c..4104fd01252e 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareCloudLink.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareCloudLink.md @@ -84,7 +84,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -145,7 +144,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareCluster.md b/src/VMware/VMware.Autorest/help/New-AzVMwareCluster.md index 27fbb329bf40..da5d8fe20a50 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareCluster.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareCluster.md @@ -101,7 +101,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -147,7 +146,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareDatastore.md b/src/VMware/VMware.Autorest/help/New-AzVMwareDatastore.md index 9633165e9fcb..55fd83acfa65 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareDatastore.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareDatastore.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -ClusterInputObject Identity Parameter -To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -171,7 +170,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -232,7 +230,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareGlobalReachConnection.md b/src/VMware/VMware.Autorest/help/New-AzVMwareGlobalReachConnection.md index 9ec7d0920458..853f471ec098 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareGlobalReachConnection.md @@ -117,7 +117,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -178,7 +177,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwarePlacementPolicy.md b/src/VMware/VMware.Autorest/help/New-AzVMwarePlacementPolicy.md index 8aebc309fd35..a6ccf512948c 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwarePlacementPolicy.md @@ -91,7 +91,6 @@ Accept wildcard characters: False ### -ClusterInputObject Identity Parameter -To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -138,7 +137,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -184,7 +182,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -215,7 +212,6 @@ Accept wildcard characters: False ### -Property placement policy properties -To construct, see NOTES section for PROPERTY properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudNsxtPassword.md b/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudNsxtPassword.md index 4c399e6c6bc9..5022bc2361ae 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudNsxtPassword.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudNsxtPassword.md @@ -76,7 +76,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudVcenterPassword.md b/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudVcenterPassword.md index e1708c525114..966c4c446a5d 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudVcenterPassword.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudVcenterPassword.md @@ -76,7 +76,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwareAuthorization.md index 25b07ddc9bc1..3dff467fd951 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwareAuthorization.md @@ -87,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -148,7 +147,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwareCloudLink.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwareCloudLink.md index dee9abd6325e..6d3d2d4ed3df 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwareCloudLink.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwareCloudLink.md @@ -87,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -148,7 +147,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwareCluster.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwareCluster.md index 2a1df2823f35..70572b5d38dd 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwareCluster.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwareCluster.md @@ -87,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -148,7 +147,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwareDatastore.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwareDatastore.md index ed30dfcf22a5..13591ae8e700 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwareDatastore.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwareDatastore.md @@ -75,7 +75,6 @@ Accept wildcard characters: False ### -ClusterInputObject Identity Parameter -To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -122,7 +121,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -183,7 +181,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwareGlobalReachConnection.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwareGlobalReachConnection.md index 0f14e523f008..68fe7c49795a 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwareGlobalReachConnection.md @@ -87,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -148,7 +147,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwarePlacementPolicy.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwarePlacementPolicy.md index d55c0a54915d..83372ce1d69b 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwarePlacementPolicy.md @@ -77,7 +77,6 @@ Accept wildcard characters: False ### -ClusterInputObject Identity Parameter -To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -124,7 +123,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -185,7 +183,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md index 44a09072afec..ccda2fed9125 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md @@ -89,7 +89,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -135,7 +134,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareCloudLink.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareCloudLink.md index 3879aa530ea4..50b44b76b60e 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareCloudLink.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareCloudLink.md @@ -84,7 +84,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -145,7 +144,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareCluster.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareCluster.md index 96d1c01c7c6b..12b1fa1e1b1d 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareCluster.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareCluster.md @@ -113,7 +113,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -159,7 +158,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareDatastore.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareDatastore.md index 844abd856ed9..4c96f88409c8 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareDatastore.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareDatastore.md @@ -80,7 +80,6 @@ Accept wildcard characters: False ### -ClusterInputObject Identity Parameter -To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -172,7 +171,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -233,7 +231,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md index 8ee34825c10b..c8d1f3de9b63 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md @@ -117,7 +117,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -178,7 +177,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwarePlacementPolicy.md b/src/VMware/VMware.Autorest/help/Update-AzVMwarePlacementPolicy.md index 8a003056a3f5..dd7f7b3d4176 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwarePlacementPolicy.md @@ -123,7 +123,6 @@ Accept wildcard characters: False ### -ClusterInputObject Identity Parameter -To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -185,7 +184,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -231,7 +229,6 @@ Accept wildcard characters: False ### -PrivateCloudInputObject Identity Parameter -To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwarePrivateCloud.md b/src/VMware/VMware.Autorest/help/Update-AzVMwarePrivateCloud.md index 195f47b6ba19..9c375827c3c2 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwarePrivateCloud.md @@ -129,7 +129,6 @@ Accept wildcard characters: False ### -IdentitySource vCenter Single Sign On Identity Sources -To construct, see NOTES section for IDENTITYSOURCE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[] @@ -162,7 +161,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity diff --git a/src/VMware/VMware.Autorest/internal/Az.VMware.internal.psm1 b/src/VMware/VMware.Autorest/internal/Az.VMware.internal.psm1 index bdd1e3bff0e1..4ef03cb044d2 100644 --- a/src/VMware/VMware.Autorest/internal/Az.VMware.internal.psm1 +++ b/src/VMware/VMware.Autorest/internal/Az.VMware.internal.psm1 @@ -24,12 +24,12 @@ # Load the last folder if no profile is selected $profileDirectory = $directories | Select-Object -Last 1 } - + if($profileDirectory) { Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" $exportsPath = $profileDirectory.FullName } - + if($exportsPath) { Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareAddon.ps1 index e056d54d8624..117bc50b5ac4 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareAddon.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareAddon_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptCmdlet.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptCmdlet.ps1 index 6acc9eb18264..04b0543d0d07 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptCmdlet.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptCmdlet.ps1 @@ -167,21 +167,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter(ParameterSetName='GetViaIdentityScriptPackage', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for SCRIPTPACKAGEINPUTOBJECT properties and create a hash table. ${ScriptPackageInputObject}, [Parameter()] @@ -249,7 +246,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareScriptCmdlet_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecution.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecution.ps1 index 117448f32e03..171a39c65478 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecution.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecution.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareScriptExecution_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecutionLog.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecutionLog.ps1 index 1ef80e5758f1..5b55071420c7 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecutionLog.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecutionLog.ps1 @@ -27,7 +27,7 @@ Return the logs for a script execution resource .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity .Inputs -System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution .Notes @@ -128,18 +128,17 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter(Mandatory, ValueFromPipeline)] [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Information", "Warning", "Output", "Error")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(Required, PossibleTypes=([System.String]))] [System.Collections.Generic.List[System.String]] @@ -209,7 +208,13 @@ begin { GetViaIdentityPrivateCloud = 'Az.VMware.private\Get-AzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptPackage.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptPackage.ps1 index 52d5b3f37090..ec8f5e81bbfc 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptPackage.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptPackage.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareScriptPackage_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetwork.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetwork.ps1 index b12531838996..cc8ed11a3a31 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetwork.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetwork.ps1 @@ -94,7 +94,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -160,7 +159,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetwork_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDhcp.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDhcp.ps1 index d318c6492a02..a341c0126bf0 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDhcp.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDhcp.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityDhcpConfiguration', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for DHCPCONFIGURATIONINPUTOBJECT properties and create a hash table. ${DhcpConfigurationInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkDhcp_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsService.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsService.ps1 index 7ba6db6fb691..38e67ea0cf4a 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsService.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsService.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkDnsService_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsZone.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsZone.ps1 index 9c6853f399a5..65fc69582d8d 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsZone.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsZone.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkDnsZone_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkGateway.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkGateway.ps1 index a11a710d7a9a..bce645042553 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkGateway.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkGateway.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkGateway_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPortMirroring.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPortMirroring.ps1 index a92717a3115f..18eb71fc6077 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPortMirroring.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPortMirroring.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkPortMirroring_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPublicIP.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPublicIP.ps1 index 76ebbd843b2f..acdbfb2519f6 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPublicIP.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPublicIP.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkPublicIP_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkSegment.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkSegment.ps1 index bc7b2f20ccba..cd2ae3cca087 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkSegment.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkSegment.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkSegment_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVM.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVM.ps1 index 731f421afa34..a61d167a8091 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVM.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVM.ps1 @@ -129,14 +129,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -203,7 +201,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkVM_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVMGroup.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVMGroup.ps1 index 20af1e30e37b..42a9e67cf64d 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVMGroup.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVMGroup.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkVMGroup_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Lock-AzVMwareVirtualMachineMovement.ps1 b/src/VMware/VMware.Autorest/internal/Lock-AzVMwareVirtualMachineMovement.ps1 index 670663b10191..022421de3f77 100644 --- a/src/VMware/VMware.Autorest/internal/Lock-AzVMwareVirtualMachineMovement.ps1 +++ b/src/VMware/VMware.Autorest/internal/Lock-AzVMwareVirtualMachineMovement.ps1 @@ -162,21 +162,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='RestrictViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='RestrictViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -262,7 +259,13 @@ begin { RestrictViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Lock-AzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded'; } if (('RestrictExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareAddon.ps1 index 62dec1ee83cb..1ff50180ccbb 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareAddon.ps1 @@ -129,21 +129,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties] # The properties of an addon resource - # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, [Parameter()] @@ -221,7 +218,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareAddon_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 index 5bec2aabffb8..369afcda16a4 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 @@ -114,7 +114,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[]] # vCenter Single Sign On Identity Sources - # To construct, see NOTES section for IDENTITYSOURCE properties and create a hash table. ${IdentitySource}, [Parameter()] @@ -269,7 +268,13 @@ begin { CreateExpanded = 'Az.VMware.private\New-AzVMwarePrivateCloud_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareScriptExecution.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareScriptExecution.ps1 index 7c900812bee7..77544047c89e 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareScriptExecution.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareScriptExecution.ps1 @@ -135,14 +135,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -156,7 +154,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter[]] # Parameters that will be hidden/not visible to ARM, such as passwords and credentials - # To construct, see NOTES section for HIDDENPARAMETER properties and create a hash table. ${HiddenParameter}, [Parameter()] @@ -178,7 +175,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter[]] # Parameters the script will accept - # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, [Parameter()] @@ -275,7 +271,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDhcp.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDhcp.ps1 index 45488c0ec3cd..3f8a83e43990 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDhcp.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDhcp.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -231,7 +229,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsService.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsService.ps1 index ba6eadab49d1..afca3ef9b7f2 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsService.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsService.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -250,7 +248,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsZone.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsZone.ps1 index 05091f5deea3..63b0b418b34b 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsZone.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsZone.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -250,7 +248,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPortMirroring.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPortMirroring.ps1 index e5eae2b7e691..316a3a257a98 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPortMirroring.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPortMirroring.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -243,7 +241,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPublicIP.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPublicIP.ps1 index e73f618f9908..7c37565a1c2c 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPublicIP.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPublicIP.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -224,7 +222,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkSegment.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkSegment.ps1 index 827d059a8f59..ec3d765a3dcc 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkSegment.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkSegment.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -243,7 +241,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkVMGroup.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkVMGroup.ps1 index 292a3d762641..ac5b5d38a9da 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkVMGroup.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkVMGroup.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -231,7 +229,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 index c55024e67955..3db6f3316132 100644 --- a/src/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -130,14 +130,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -204,7 +202,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareAddon_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -500,21 +504,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter(ParameterSetName='GetViaIdentityScriptPackage', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for SCRIPTPACKAGEINPUTOBJECT properties and create a hash table. ${ScriptPackageInputObject}, [Parameter()] @@ -582,7 +583,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareScriptCmdlet_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -628,7 +635,7 @@ Return the logs for a script execution resource .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity .Inputs -System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution .Notes @@ -729,18 +736,17 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter(Mandatory, ValueFromPipeline)] [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Information", "Warning", "Output", "Error")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(Required, PossibleTypes=([System.String]))] [System.Collections.Generic.List[System.String]] @@ -810,7 +816,13 @@ begin { GetViaIdentityPrivateCloud = 'Az.VMware.private\Get-AzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -959,14 +971,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -1033,7 +1043,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareScriptExecution_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1182,14 +1198,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -1256,7 +1270,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareScriptPackage_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1405,14 +1425,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityDhcpConfiguration', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for DHCPCONFIGURATIONINPUTOBJECT properties and create a hash table. ${DhcpConfigurationInputObject}, [Parameter()] @@ -1479,7 +1497,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkDhcp_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1628,14 +1652,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -1702,7 +1724,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkDnsService_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1851,14 +1879,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -1925,7 +1951,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkDnsZone_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2074,14 +2106,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -2148,7 +2178,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkGateway_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2297,14 +2333,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -2371,7 +2405,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkPortMirroring_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2520,14 +2560,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -2594,7 +2632,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkPublicIP_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2743,14 +2787,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -2817,7 +2859,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkSegment_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2966,14 +3014,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -3040,7 +3086,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkVMGroup_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3188,14 +3240,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -3262,7 +3312,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetworkVM_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3375,7 +3431,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -3441,7 +3496,13 @@ begin { List = 'Az.VMware.private\Get-AzVMwareWorkloadNetwork_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3622,21 +3683,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table. ${ClusterInputObject}, [Parameter(ParameterSetName='RestrictViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='RestrictViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -3722,7 +3780,13 @@ begin { RestrictViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Lock-AzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded'; } if (('RestrictExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3870,21 +3934,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties] # The properties of an addon resource - # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, [Parameter()] @@ -3962,7 +4023,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareAddon_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -4095,7 +4162,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[]] # vCenter Single Sign On Identity Sources - # To construct, see NOTES section for IDENTITYSOURCE properties and create a hash table. ${IdentitySource}, [Parameter()] @@ -4250,7 +4316,13 @@ begin { CreateExpanded = 'Az.VMware.private\New-AzVMwarePrivateCloud_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -4404,14 +4476,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -4425,7 +4495,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter[]] # Parameters that will be hidden/not visible to ARM, such as passwords and credentials - # To construct, see NOTES section for HIDDENPARAMETER properties and create a hash table. ${HiddenParameter}, [Parameter()] @@ -4447,7 +4516,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter[]] # Parameters the script will accept - # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, [Parameter()] @@ -4544,7 +4612,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -4690,14 +4764,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -4794,7 +4866,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -4940,14 +5018,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -5063,7 +5139,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -5209,14 +5291,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -5332,7 +5412,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -5478,14 +5564,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -5594,7 +5678,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -5740,14 +5830,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -5837,7 +5925,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -5983,14 +6077,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -6099,7 +6191,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -6245,14 +6343,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -6349,7 +6445,13 @@ begin { CreateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\New-AzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -6497,14 +6599,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -6588,7 +6688,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareAddon_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -6701,7 +6807,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -6784,7 +6889,13 @@ begin { DeleteViaIdentity = 'Az.VMware.private\Remove-AzVMwarePrivateCloud_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -6930,14 +7041,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -7021,7 +7130,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareScriptExecution_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -7167,14 +7282,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -7258,7 +7371,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -7404,14 +7523,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityDnsService', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for DNSSERVICEINPUTOBJECT properties and create a hash table. ${DnsServiceInputObject}, [Parameter()] @@ -7495,7 +7612,13 @@ begin { DeleteViaIdentityDnsService = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -7641,14 +7764,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityDnsZone', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for DNSZONEINPUTOBJECT properties and create a hash table. ${DnsZoneInputObject}, [Parameter()] @@ -7732,7 +7853,13 @@ begin { DeleteViaIdentityDnsZone = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -7878,14 +8005,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPortMirroringProfile', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PORTMIRRORINGPROFILEINPUTOBJECT properties and create a hash table. ${PortMirroringProfileInputObject}, [Parameter()] @@ -7969,7 +8094,13 @@ begin { DeleteViaIdentityPortMirroringProfile = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -8115,14 +8246,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPublicIP', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PUBLICIPINPUTOBJECT properties and create a hash table. ${PublicIPInputObject}, [Parameter()] @@ -8206,7 +8335,13 @@ begin { DeleteViaIdentityPublicIP = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -8352,14 +8487,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -8443,7 +8576,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -8589,14 +8728,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityVMGroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for VMGROUPINPUTOBJECT properties and create a hash table. ${VMGroupInputObject}, [Parameter()] @@ -8680,7 +8817,13 @@ begin { DeleteViaIdentityVMGroup = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -8826,14 +8969,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -8930,7 +9071,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -9076,14 +9223,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -9199,7 +9344,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -9345,14 +9496,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -9468,7 +9617,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -9614,14 +9769,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -9730,7 +9883,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -9876,14 +10035,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -9992,7 +10149,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -10138,14 +10301,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -10242,7 +10403,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareAddon.ps1 index 0d8f5c4c7be8..cc331438e1f7 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareAddon.ps1 @@ -129,14 +129,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -220,7 +218,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareAddon_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwarePrivateCloud.ps1 index 7697740ce4e6..62b08941a20c 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwarePrivateCloud.ps1 @@ -94,7 +94,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -177,7 +176,13 @@ begin { DeleteViaIdentity = 'Az.VMware.private\Remove-AzVMwarePrivateCloud_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareScriptExecution.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareScriptExecution.ps1 index ebd24323a84d..590149587596 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareScriptExecution.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareScriptExecution.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -218,7 +216,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareScriptExecution_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDhcp.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDhcp.ps1 index 74f8051e7b9c..c2764a8378ed 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDhcp.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDhcp.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -218,7 +216,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsService.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsService.ps1 index 43dd12bbef05..e2cfed050dff 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsService.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsService.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityDnsService', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for DNSSERVICEINPUTOBJECT properties and create a hash table. ${DnsServiceInputObject}, [Parameter()] @@ -218,7 +216,13 @@ begin { DeleteViaIdentityDnsService = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsZone.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsZone.ps1 index cb9fbea2d363..e8a4ab151b76 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsZone.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsZone.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityDnsZone', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for DNSZONEINPUTOBJECT properties and create a hash table. ${DnsZoneInputObject}, [Parameter()] @@ -218,7 +216,13 @@ begin { DeleteViaIdentityDnsZone = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPortMirroring.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPortMirroring.ps1 index 0d6b12c7435d..b18dbb4e54fe 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPortMirroring.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPortMirroring.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPortMirroringProfile', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PORTMIRRORINGPROFILEINPUTOBJECT properties and create a hash table. ${PortMirroringProfileInputObject}, [Parameter()] @@ -218,7 +216,13 @@ begin { DeleteViaIdentityPortMirroringProfile = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPublicIP.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPublicIP.ps1 index 6e368c271cb0..11e055ef7f1a 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPublicIP.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPublicIP.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPublicIP', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PUBLICIPINPUTOBJECT properties and create a hash table. ${PublicIPInputObject}, [Parameter()] @@ -218,7 +216,13 @@ begin { DeleteViaIdentityPublicIP = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkSegment.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkSegment.ps1 index aeb9091e7dee..1aa053255e5e 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkSegment.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkSegment.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -218,7 +216,13 @@ begin { DeleteViaIdentityPrivateCloud = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkVMGroup.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkVMGroup.ps1 index 05becd3b6393..5d2b08d55a62 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkVMGroup.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkVMGroup.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityVMGroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for VMGROUPINPUTOBJECT properties and create a hash table. ${VMGroupInputObject}, [Parameter()] @@ -218,7 +216,13 @@ begin { DeleteViaIdentityVMGroup = 'Az.VMware.private\Remove-AzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDhcp.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDhcp.ps1 index fae5f0d32b03..28d8be8a6f91 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDhcp.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDhcp.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -231,7 +229,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsService.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsService.ps1 index 73b654a414f0..d2733f1e2668 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsService.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsService.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -250,7 +248,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsZone.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsZone.ps1 index 3b31db9bdc31..69c4f260756e 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsZone.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsZone.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -250,7 +248,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkPortMirroring.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkPortMirroring.ps1 index 9180d7a6488b..03157f4a4037 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkPortMirroring.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkPortMirroring.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -243,7 +241,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkSegment.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkSegment.ps1 index 6767c9e482e7..d20265a2673b 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkSegment.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkSegment.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -243,7 +241,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkVMGroup.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkVMGroup.ps1 index 427be40f9a13..926b296e2380 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkVMGroup.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkVMGroup.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] # Identity Parameter - # To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table. ${PrivateCloudInputObject}, [Parameter()] @@ -231,7 +229,13 @@ begin { UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/VMware/VMware.Autorest/test-module.ps1 b/src/VMware/VMware.Autorest/test-module.ps1 index 694eaf2eb678..9f8d78c0ce19 100644 --- a/src/VMware/VMware.Autorest/test-module.ps1 +++ b/src/VMware/VMware.Autorest/test-module.ps1 @@ -74,13 +74,14 @@ try if ($TestMode -ne 'playback') { setupEnv + } else { + $env:AzPSAutorestTestPlaybackMode = $true } $testFolder = Join-Path $PSScriptRoot 'test' if ($null -ne $TestName) { Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") - } else - { + } else { Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") } } Finally @@ -89,6 +90,9 @@ try { cleanupEnv } + else { + $env:AzPSAutorestTestPlaybackMode = '' + } } Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/VMware/VMware.Autorest/test/loadEnv.ps1 b/src/VMware/VMware.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/VMware/VMware.Autorest/test/loadEnv.ps1 +++ b/src/VMware/VMware.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/VMware/VMware.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/VMware/VMware.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/VMware/VMware/Az.VMware.psd1 b/src/VMware/VMware/Az.VMware.psd1 index 36cf5c65ffa6..db81af983f49 100644 --- a/src/VMware/VMware/Az.VMware.psd1 +++ b/src/VMware/VMware/Az.VMware.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/30/2024 +# Generated on: 3/25/2024 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.15.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.16.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'VMware.Autorest/bin/Az.VMware.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'VMware.Autorest/Az.VMware.format.ps1xml' @@ -123,7 +123,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','VMware' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'VMware' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -148,7 +148,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/VMware/VMware/ChangeLog.md b/src/VMware/VMware/ChangeLog.md index cc79a3ca87a2..4374e5247a1a 100644 --- a/src/VMware/VMware/ChangeLog.md +++ b/src/VMware/VMware/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Introduced secrets detection feature to safeguard sensitive data. ## Version 0.6.0 * Updated api version to `2023-03-01` diff --git a/src/VMware/VMware/help/Az.VMware.md b/src/VMware/VMware/help/Az.VMware.md index 8f5657052793..3064d0a091bd 100644 --- a/src/VMware/VMware/help/Az.VMware.md +++ b/src/VMware/VMware/help/Az.VMware.md @@ -147,5 +147,5 @@ Create a global reach connection in a private cloud Update a placement policy in a private cloud cluster ### [Update-AzVMwarePrivateCloud](Update-AzVMwarePrivateCloud.md) -Create a private cloud +Update a private cloud diff --git a/src/VMware/VMware/help/Get-AzVMwareAddon.md b/src/VMware/VMware/help/Get-AzVMwareAddon.md index e60678e2befe..dd7d30c5ad7d 100644 --- a/src/VMware/VMware/help/Get-AzVMwareAddon.md +++ b/src/VMware/VMware/help/Get-AzVMwareAddon.md @@ -15,19 +15,19 @@ Get an addon by name in a private cloud ### List (Default) ``` Get-AzVMwareAddon -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareAddon -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - -AddonType [-DefaultProfile ] [] + -AddonType [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareAddon -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -125,6 +125,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareAuthorization.md b/src/VMware/VMware/help/Get-AzVMwareAuthorization.md index 7740f0d8f9fc..edca9b5bbca9 100644 --- a/src/VMware/VMware/help/Get-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/Get-AzVMwareAuthorization.md @@ -15,26 +15,26 @@ Get an ExpressRoute Circuit Authorization by name in a private cloud ### List (Default) ``` Get-AzVMwareAuthorization -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareAuthorization -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareCloudLink.md b/src/VMware/VMware/help/Get-AzVMwareCloudLink.md index ec1fdff8928b..b5ffe1ebb2c6 100644 --- a/src/VMware/VMware/help/Get-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/Get-AzVMwareCloudLink.md @@ -15,26 +15,26 @@ Get an cloud link by name in a private cloud ### List (Default) ``` Get-AzVMwareCloudLink -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareCloudLink -Name -PrivateCloudInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareCloudLink -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareCluster.md b/src/VMware/VMware/help/Get-AzVMwareCluster.md index 83085a0a2f08..bd59d7aaf50d 100644 --- a/src/VMware/VMware/help/Get-AzVMwareCluster.md +++ b/src/VMware/VMware/help/Get-AzVMwareCluster.md @@ -15,26 +15,26 @@ Get a cluster by name in a private cloud ### List (Default) ``` Get-AzVMwareCluster -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareCluster -Name -PrivateCloudInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareCluster -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareClusterZone.md b/src/VMware/VMware/help/Get-AzVMwareClusterZone.md index 3d4627b39453..a474861f3ce5 100644 --- a/src/VMware/VMware/help/Get-AzVMwareClusterZone.md +++ b/src/VMware/VMware/help/Get-AzVMwareClusterZone.md @@ -14,7 +14,7 @@ List hosts by zone in a cluster ``` Get-AzVMwareClusterZone -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -84,6 +84,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareDatastore.md b/src/VMware/VMware/help/Get-AzVMwareDatastore.md index 1d8b8d1fc0c5..ff620769c9e1 100644 --- a/src/VMware/VMware/help/Get-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/Get-AzVMwareDatastore.md @@ -15,33 +15,33 @@ Get a datastore in a private cloud cluster ### List (Default) ``` Get-AzVMwareDatastore -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityCluster ``` Get-AzVMwareDatastore -Name -ClusterInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareDatastore -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md index dd5ffff3e29e..421ce6060193 100644 --- a/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md @@ -15,27 +15,27 @@ Get a global reach connection by name in a private cloud ### List (Default) ``` Get-AzVMwareGlobalReachConnection -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareGlobalReachConnection -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -147,6 +147,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md index 1987191bd68a..210a7294221b 100644 --- a/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md @@ -15,33 +15,33 @@ Get a placement policy by name in a private cloud cluster ### List (Default) ``` Get-AzVMwarePlacementPolicy -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityCluster ``` Get-AzVMwarePlacementPolicy -Name -ClusterInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwarePlacementPolicy -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md index 2fdc0c938de9..e2dee200a7d8 100644 --- a/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md @@ -15,25 +15,25 @@ Get a private cloud ### List1 (Default) ``` Get-AzVMwarePrivateCloud [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwarePrivateCloud -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List ``` Get-AzVMwarePrivateCloud -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwarePrivateCloud -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -128,6 +128,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md b/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md index 5317d931d4f8..81ff72a4cd97 100644 --- a/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md +++ b/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md @@ -14,7 +14,7 @@ List the admin credentials for the private cloud ``` Get-AzVMwarePrivateCloudAdminCredential -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -69,6 +69,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md b/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md index 5941876a2077..cd75f4f80c97 100644 --- a/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md +++ b/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md @@ -15,33 +15,33 @@ Get a virtual machine by id in a private cloud cluster ### List (Default) ``` Get-AzVMwareVirtualMachine -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareVirtualMachine -ClusterName -Id -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareVirtualMachine -ClusterName -Id -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityCluster ``` Get-AzVMwareVirtualMachine -Id -ClusterInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareVirtualMachine -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareAddon.md b/src/VMware/VMware/help/New-AzVMwareAddon.md index fad4b150274b..01e39cab3a85 100644 --- a/src/VMware/VMware/help/New-AzVMwareAddon.md +++ b/src/VMware/VMware/help/New-AzVMwareAddon.md @@ -15,7 +15,7 @@ Create or update a addon in a private cloud ``` New-AzVMwareAddon -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-Property ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -99,6 +99,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Property The properties of an addon resource To construct, see NOTES section for PROPERTY properties and create a hash table. diff --git a/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md index 8d3204f91e41..c3eb7e865583 100644 --- a/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md @@ -13,7 +13,7 @@ Create a in-memory object for AddonSrmProperties ## SYNTAX ``` -New-AzVMwareAddonSrmPropertiesObject -LicenseKey +New-AzVMwareAddonSrmPropertiesObject -LicenseKey [-ProgressAction ] [] ``` @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md index 0b182014a4ec..d94621c71b12 100644 --- a/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md @@ -13,7 +13,7 @@ Create a in-memory object for AddonVrProperties ## SYNTAX ``` -New-AzVMwareAddonVrPropertiesObject -VrsCount [] +New-AzVMwareAddonVrPropertiesObject -VrsCount [-ProgressAction ] [] ``` ## DESCRIPTION @@ -36,6 +36,21 @@ Create a local VR object for the Addon Property parameter ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VrsCount The vSphere Replication Server (VRS) count. diff --git a/src/VMware/VMware/help/New-AzVMwareAuthorization.md b/src/VMware/VMware/help/New-AzVMwareAuthorization.md index b7eabb98590c..c51a84737050 100644 --- a/src/VMware/VMware/help/New-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/New-AzVMwareAuthorization.md @@ -16,20 +16,20 @@ Create an ExpressRoute Circuit Authorization in a private cloud ``` New-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -158,6 +158,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareCloudLink.md b/src/VMware/VMware/help/New-AzVMwareCloudLink.md index 5249808283e2..54041b5e668c 100644 --- a/src/VMware/VMware/help/New-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/New-AzVMwareCloudLink.md @@ -16,20 +16,20 @@ Create a cloud link in a private cloud ``` New-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-LinkedCloud ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareCloudLink -Name -PrivateCloudInputObject [-LinkedCloud ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareCloudLink -InputObject [-LinkedCloud ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareCluster.md b/src/VMware/VMware/help/New-AzVMwareCluster.md index d9331420f326..a95aa17f33ed 100644 --- a/src/VMware/VMware/help/New-AzVMwareCluster.md +++ b/src/VMware/VMware/help/New-AzVMwareCluster.md @@ -16,7 +16,7 @@ Create a cluster in a private cloud ``` New-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] -SkuName [-ClusterSize ] [-PropertiesHost ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,14 +24,14 @@ New-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName ``` New-AzVMwareCluster -Name -PrivateCloudInputObject -SkuName [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareCluster -InputObject -SkuName [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -175,6 +175,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PropertiesHost The hosts diff --git a/src/VMware/VMware/help/New-AzVMwareDatastore.md b/src/VMware/VMware/help/New-AzVMwareDatastore.md index e89e1aee188d..a226c199445a 100644 --- a/src/VMware/VMware/help/New-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/New-AzVMwareDatastore.md @@ -17,7 +17,7 @@ Create a datastore in a private cloud cluster New-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,14 +26,14 @@ New-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -Name -PrivateCloudInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityClusterExpanded ``` New-AzVMwareDatastore -Name -ClusterInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -41,7 +41,7 @@ New-AzVMwareDatastore -Name -ClusterInputObject [-Dis ``` New-AzVMwareDatastore -InputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -261,6 +261,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md index 4e2a1d28c965..a2d6eb9e0cc9 100644 --- a/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md @@ -17,14 +17,14 @@ Create a global reach connection in a private cloud New-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteResourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteResourceId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ New-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteResourceId ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-WhatIf] [-Confirm] [] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -206,6 +206,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md b/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md index 9186a30c8ab4..4d7dc22ef347 100644 --- a/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md +++ b/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md @@ -15,7 +15,7 @@ Create an in-memory object for IdentitySource. ``` New-AzVMwareIdentitySourceObject [-Alias ] [-BaseGroupDn ] [-BaseUserDn ] [-Domain ] [-Name ] [-Password ] [-PrimaryServer ] [-SecondaryServer ] - [-Ssl ] [-Username ] [] + [-Ssl ] [-Username ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -150,6 +150,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SecondaryServer Secondary server URL. diff --git a/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md b/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md index 22271877d765..37ae171be055 100644 --- a/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md +++ b/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md @@ -14,7 +14,7 @@ Create a in-memory object for PSCredentialExecutionParameter ``` New-AzVMwarePSCredentialExecutionParameterObject -Name [-Password ] [-Username ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -67,6 +67,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Username username for login. diff --git a/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md index 98fd1c0afb0e..1efaac267eee 100644 --- a/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md @@ -16,7 +16,7 @@ Create a placement policy in a private cloud cluster ``` New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-Property ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,20 +24,20 @@ New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudNa ``` New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject [-Property ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityClusterExpanded ``` New-AzVMwarePlacementPolicy -Name -ClusterInputObject [-Property ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwarePlacementPolicy -InputObject [-Property ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -212,6 +212,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Property placement policy properties diff --git a/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md index bf0b2a87d556..df94152fcc6c 100644 --- a/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md @@ -20,7 +20,7 @@ New-AzVMwarePrivateCloud -Name -ResourceGroupName [-Subscripti [-IdentityType ] [-Internet ] [-KeyVaultPropertyKeyName ] [-KeyVaultPropertyKeyVaultUrl ] [-KeyVaultPropertyKeyVersion ] [-ManagementClusterHost ] [-NsxtPassword ] [-Tag ] [-VcenterPassword ] - [-AcceptEULA] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] + [-AcceptEULA] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -366,6 +366,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md b/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md index ef261d77a005..c4f5a2aceab7 100644 --- a/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md +++ b/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md @@ -16,13 +16,13 @@ Rotate the NSX-T Manager password ``` New-AzVMwarePrivateCloudNsxtPassword -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RotateViaIdentity ``` New-AzVMwarePrivateCloudNsxtPassword -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -134,6 +134,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md b/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md index b56fa16e47e2..7b94f5eb1e54 100644 --- a/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md +++ b/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md @@ -16,13 +16,13 @@ Rotate the vCenter password ``` New-AzVMwarePrivateCloudVcenterPassword -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RotateViaIdentity ``` New-AzVMwarePrivateCloudVcenterPassword -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -134,6 +134,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md b/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md index f23581d9d10c..38ed6ad3a859 100644 --- a/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md +++ b/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md @@ -14,7 +14,7 @@ Create a in-memory object for ScriptSecureStringExecutionParameter ``` New-AzVMwareScriptSecureStringExecutionParameterObject -Name [-SecureValue ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SecureValue A secure value for the passed parameter, not to be stored in logs. diff --git a/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md b/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md index 3e8f23bc5169..f5ab8058ea38 100644 --- a/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md +++ b/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md @@ -14,7 +14,7 @@ Create a in-memory object for ScriptStringExecutionParameter ``` New-AzVMwareScriptStringExecutionParameterObject -Name [-Value ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Value The value for the passed parameter. diff --git a/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md index cab2b6e2ef1b..23900915d143 100644 --- a/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md @@ -14,7 +14,7 @@ Create an in-memory object for VMPlacementPolicyProperties. ``` New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType -VMMember -Type - [-DisplayName ] [-State ] [] + [-DisplayName ] [-State ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -70,6 +70,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -State Whether the placement policy is enabled or disabled. diff --git a/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md index fad9adb56cf8..6263303fd680 100644 --- a/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md @@ -15,7 +15,7 @@ Create an in-memory object for VmHostPlacementPolicyProperties. ``` New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType -HostMember -VMMember -Type [-DisplayName ] [-State ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -89,6 +89,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -State Whether the placement policy is enabled or disabled. diff --git a/src/VMware/VMware/help/Remove-AzVMwareAddon.md b/src/VMware/VMware/help/Remove-AzVMwareAddon.md index 3f1c5e89831e..deed95a8b7b4 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareAddon.md +++ b/src/VMware/VMware/help/Remove-AzVMwareAddon.md @@ -16,13 +16,13 @@ Delete a addon in a private cloud ``` Remove-AzVMwareAddon -AddonType -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareAddon -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -152,6 +152,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md b/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md index 2ad74f1f5a4c..32bb6f92bec5 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md @@ -16,20 +16,20 @@ Delete an ExpressRoute Circuit Authorization in a private cloud ``` Remove-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -174,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md b/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md index 19e05e1af50e..0feedf34c633 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md @@ -16,19 +16,19 @@ Delete a cloud link in a private cloud ``` Remove-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareCloudLink -Name -PrivateCloudInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareCloudLink -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareCluster.md b/src/VMware/VMware/help/Remove-AzVMwareCluster.md index 710aa86bc845..839da50eb116 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareCluster.md +++ b/src/VMware/VMware/help/Remove-AzVMwareCluster.md @@ -16,19 +16,19 @@ Delete a cluster in a private cloud ``` Remove-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareCluster -Name -PrivateCloudInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareCluster -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareDatastore.md b/src/VMware/VMware/help/Remove-AzVMwareDatastore.md index cdb093597e93..47fd39ec58c8 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/Remove-AzVMwareDatastore.md @@ -16,26 +16,26 @@ Delete a datastore in a private cloud cluster ``` Remove-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityCluster ``` Remove-AzVMwareDatastore -Name -ClusterInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareDatastore -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -210,6 +210,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md index 6c4f55c081c1..74bc17e32ad4 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md @@ -16,20 +16,20 @@ Delete a global reach connection in a private cloud ``` Remove-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareGlobalReachConnection -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -174,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md index 94e07d18ce4b..91b4e7b85f33 100644 --- a/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md @@ -16,27 +16,27 @@ Delete a placement policy in a private cloud cluster ``` Remove-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityCluster ``` Remove-AzVMwarePlacementPolicy -Name -ClusterInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwarePlacementPolicy -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -211,6 +211,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md index cbb9242f5f5a..3d011401915a 100644 --- a/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md @@ -15,14 +15,14 @@ Delete a private cloud ### Delete (Default) ``` Remove-AzVMwarePrivateCloud -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwarePrivateCloud -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -137,6 +137,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md b/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md index 62bd0245ef31..2d272703cdd4 100644 --- a/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md +++ b/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md @@ -14,7 +14,7 @@ Return quota for subscription by region ``` Test-AzVMwareLocationQuotaAvailability -Location [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -68,6 +68,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. diff --git a/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md b/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md index d6c583725d6c..5e9b795fee15 100644 --- a/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md +++ b/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md @@ -14,7 +14,7 @@ Return trial status for subscription by region ``` Test-AzVMwareLocationTrialAvailability -Location [-SubscriptionId ] [-Name ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -83,6 +83,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. diff --git a/src/VMware/VMware/help/Update-AzVMwareAuthorization.md b/src/VMware/VMware/help/Update-AzVMwareAuthorization.md index e9009132311b..b248e3055a7b 100644 --- a/src/VMware/VMware/help/Update-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/Update-AzVMwareAuthorization.md @@ -16,20 +16,20 @@ Create an ExpressRoute Circuit Authorization in a private cloud ``` Update-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -163,6 +163,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwareCloudLink.md b/src/VMware/VMware/help/Update-AzVMwareCloudLink.md index b9851ffc7b28..91bf1070ca29 100644 --- a/src/VMware/VMware/help/Update-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/Update-AzVMwareCloudLink.md @@ -16,20 +16,20 @@ Create a cloud link in a private cloud ``` Update-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-LinkedCloud ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareCloudLink -Name -PrivateCloudInputObject [-LinkedCloud ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzVMwareCloudLink -InputObject [-LinkedCloud ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwareCluster.md b/src/VMware/VMware/help/Update-AzVMwareCluster.md index e9c78a47b6db..34eb74b04e1a 100644 --- a/src/VMware/VMware/help/Update-AzVMwareCluster.md +++ b/src/VMware/VMware/help/Update-AzVMwareCluster.md @@ -16,20 +16,20 @@ Update a cluster in a private cloud ``` Update-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareCluster -Name -PrivateCloudInputObject [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzVMwareCluster -InputObject [-ClusterSize ] [-PropertiesHost ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -187,6 +187,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PropertiesHost The hosts diff --git a/src/VMware/VMware/help/Update-AzVMwareDatastore.md b/src/VMware/VMware/help/Update-AzVMwareDatastore.md index c1d5ee046bbb..f13e5f380323 100644 --- a/src/VMware/VMware/help/Update-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/Update-AzVMwareDatastore.md @@ -17,7 +17,7 @@ Create a datastore in a private cloud cluster Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,14 +26,14 @@ Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudName Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityClusterExpanded ``` Update-AzVMwareDatastore -Name -ClusterInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -41,7 +41,7 @@ Update-AzVMwareDatastore -Name -ClusterInputObject [- ``` Update-AzVMwareDatastore -InputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -261,6 +261,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md index 520d7eb4e75f..8217a8ef23c7 100644 --- a/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md @@ -17,14 +17,14 @@ Create a global reach connection in a private cloud Update-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteCircuit ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteCircuit ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Update-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteCircuit ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -206,6 +206,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md index 3b55965834d4..22b96df6c76e 100644 --- a/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md @@ -17,7 +17,7 @@ Update a placement policy in a private cloud cluster Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] [-VMMember ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -25,7 +25,7 @@ Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateClou ``` Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] - [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -33,7 +33,7 @@ Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateClou ``` Update-AzVMwarePlacementPolicy -Name -ClusterInputObject [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] - [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -41,7 +41,7 @@ Update-AzVMwarePlacementPolicy -Name -ClusterInputObject [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] [-VMMember ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -259,6 +259,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md index 99f77169901f..e8b608e3cec4 100644 --- a/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md @@ -8,34 +8,33 @@ schema: 2.0.0 # Update-AzVMwarePrivateCloud ## SYNOPSIS -Create a private cloud +Update a private cloud ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwarePrivateCloud -Name -ResourceGroupName [-SubscriptionId ] - [-EnableSystemAssignedIdentity ] [-EncryptionStatus ] [-ExtendedNetworkBlock ] - [-IdentitySource ] [-Internet ] [-KeyVaultPropertyKeyName ] - [-KeyVaultPropertyKeyVaultUrl ] [-KeyVaultPropertyKeyVersion ] [-Location ] - [-ManagementClusterHost ] [-ManagementClusterSize ] [-NsxtPassword ] - [-SkuName ] [-Tag ] [-VcenterPassword ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-WhatIf] [-Confirm] [] + [-EncryptionStatus ] [-ExtendedNetworkBlock ] [-IdentitySource ] + [-IdentityType ] [-Internet ] [-KeyVaultPropertyKeyName ] + [-KeyVaultPropertyKeyVaultUrl ] [-KeyVaultPropertyKeyVersion ] + [-ManagementClusterHost ] [-ManagementClusterSize ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzVMwarePrivateCloud -InputObject [-EnableSystemAssignedIdentity ] - [-EncryptionStatus ] [-ExtendedNetworkBlock ] [-IdentitySource ] +Update-AzVMwarePrivateCloud -InputObject [-EncryptionStatus ] + [-ExtendedNetworkBlock ] [-IdentitySource ] [-IdentityType ] [-Internet ] [-KeyVaultPropertyKeyName ] [-KeyVaultPropertyKeyVaultUrl ] - [-KeyVaultPropertyKeyVersion ] [-Location ] [-ManagementClusterHost ] - [-ManagementClusterSize ] [-NsxtPassword ] [-SkuName ] [-Tag ] - [-VcenterPassword ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-KeyVaultPropertyKeyVersion ] [-ManagementClusterHost ] [-ManagementClusterSize ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a private cloud +Update a private cloud ## EXAMPLES @@ -98,11 +97,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -EnableSystemAssignedIdentity -Decides if enable a system assigned identity for the resource. +### -EncryptionStatus +Status of customer managed encryption key ```yaml -Type: System.Nullable`1[System.Boolean] +Type: System.String Parameter Sets: (All) Aliases: @@ -113,11 +112,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -EncryptionStatus -Status of customer managed encryption key +### -ExtendedNetworkBlock +Array of additional networks noncontiguous with networkBlock. +Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. +Make sure the CIDR format conforms to (A.B.C.D/X). ```yaml -Type: System.String +Type: System.String[] Parameter Sets: (All) Aliases: @@ -128,13 +129,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ExtendedNetworkBlock -Array of additional networks noncontiguous with networkBlock. -Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. -Make sure the CIDR format conforms to (A.B.C.D/X). +### -IdentitySource +vCenter Single Sign On Identity Sources ```yaml -Type: System.String[] +Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[] Parameter Sets: (All) Aliases: @@ -145,11 +144,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -IdentitySource -vCenter Single Sign On Identity Sources +### -IdentityType +The type of identity used for the private cloud. +The type 'SystemAssigned' refers to an implicitly created identity. +The type 'None' will remove any identities from the Private Cloud. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[] +Type: System.String Parameter Sets: (All) Aliases: @@ -235,21 +236,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Location -Resource location - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -ManagementClusterHost The hosts @@ -310,13 +296,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -NsxtPassword -Optionally, set the NSX-T Manager password when the private cloud is created +### -ProgressAction +{{ Fill ProgressAction Description }} ```yaml -Type: System.String +Type: System.Management.Automation.ActionPreference Parameter Sets: (All) -Aliases: +Aliases: proga Required: False Position: Named @@ -341,21 +327,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -SkuName -The name of the SKU. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -SubscriptionId The ID of the target subscription. @@ -386,21 +357,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -VcenterPassword -Optionally, set the vCenter admin password when the private cloud is created - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Confirm Prompts you for confirmation before running the cmdlet.