diff --git a/src/App/App.Autorest/Az.App.psm1 b/src/App/App.Autorest/Az.App.psm1 index 69425cd14172..86a082d10c77 100644 --- a/src/App/App.Autorest/Az.App.psm1 +++ b/src/App/App.Autorest/Az.App.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.App.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/App/App.Autorest/README.md b/src/App/App.Autorest/README.md index 554e737e5ca0..6e93ea479603 100644 --- a/src/App/App.Autorest/README.md +++ b/src/App/App.Autorest/README.md @@ -3,7 +3,6 @@ This directory contains the PowerShell module for the App service. --- - ## Info - Modifiable: yes - Generated: all @@ -63,6 +62,8 @@ identity-correction-for-post: true resourcegroup-append: true nested-object-to-string: true auto-switch-view: false +disable-transform-identity-type: true +flatten-userassignedidentity: false use-extension: "@autorest/powershell": "4.x" @@ -671,4 +672,24 @@ directive: verb: Remove subject: ContainerAppSourceControl remove: true + +##### announce upcoming MI-related breaking changes + - where: + parameter-name: IdentityType + set: + breaking-change: + change-description: IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities. + deprecated-by-version: 2.0.0 + deprecated-by-azversion: 13.0.0 + change-effective-date: 2024/11/19 + - where: + parameter-name: IdentityUserAssignedIdentity + set: + breaking-change: + old-parameter-type: Hashtable + new-parameter-type: string[] + change-description: IdentityUserAssignedIdentity will be renamed to UserAssignedIdentity. And its type will be simplified as string array. + deprecated-by-version: 2.0.0 + deprecated-by-azversion: 13.0.0 + change-effective-date: 2024/11/19 ``` diff --git a/src/App/App.Autorest/build-module.ps1 b/src/App/App.Autorest/build-module.ps1 index 8dadf57de808..616093e37066 100644 --- a/src/App/App.Autorest/build-module.ps1 +++ b/src/App/App.Autorest/build-module.ps1 @@ -12,7 +12,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX) +param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX, [Switch]$DisableAfterBuildTasks) $ErrorActionPreference = 'Stop' if($PSEdition -ne 'Core') { @@ -177,4 +177,20 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') } +$assemblyInfoPath = Join-Path $PSScriptRoot 'Properties' 'AssemblyInfo.cs' +if (-not (Test-Path $assemblyInfoPath) -And [System.Convert]::ToBoolean('true')) { + Write-Host -ForegroundColor Green 'Creating assembly info...' + New-AssemblyInfo +} + +if (-not $DisableAfterBuildTasks){ + $afterBuildTasksPath = Join-Path $PSScriptRoot '' + $afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable + if(Test-Path -Path $afterBuildTasksPath -PathType leaf){ + Write-Host -ForegroundColor Green 'Executing after build tasks...' + . $afterBuildTasksPath @afterBuildTasksArgs + } +} + + Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/App/App.Autorest/examples/New-AzContainerApp.md b/src/App/App.Autorest/examples/New-AzContainerApp.md index 19475d3788b4..6c91a978e197 100644 --- a/src/App/App.Autorest/examples/New-AzContainerApp.md +++ b/src/App/App.Autorest/examples/New-AzContainerApp.md @@ -10,7 +10,7 @@ $EnvId = (Get-AzContainerAppManagedEnv -ResourceGroupName azps_test_group_app -N New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppManagedEnvCert -EnvName azps-env -Name azps-env-cert -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -47,7 +47,7 @@ $EnvId = (Get-AzContainerAppConnectedEnv -ResourceGroupName azps_test_group_app New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppConnectedEnvCert -Name azps-connectedenvcert -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd diff --git a/src/App/App.Autorest/examples/New-AzContainerAppConnectedEnvCert.md b/src/App/App.Autorest/examples/New-AzContainerAppConnectedEnvCert.md index 41d78b1bf137..be75074858fe 100644 --- a/src/App/App.Autorest/examples/New-AzContainerAppConnectedEnvCert.md +++ b/src/App/App.Autorest/examples/New-AzContainerAppConnectedEnvCert.md @@ -2,7 +2,7 @@ ```powershell New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppConnectedEnvCert -Name azps-connectedenvcert -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd diff --git a/src/App/App.Autorest/examples/New-AzContainerAppManagedEnvCert.md b/src/App/App.Autorest/examples/New-AzContainerAppManagedEnvCert.md index a1b73c0bf8e0..9ffc395c5a33 100644 --- a/src/App/App.Autorest/examples/New-AzContainerAppManagedEnvCert.md +++ b/src/App/App.Autorest/examples/New-AzContainerAppManagedEnvCert.md @@ -2,7 +2,7 @@ ```powershell New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppManagedEnvCert -EnvName azps-env -Name azps-env-cert -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd diff --git a/src/App/App.Autorest/examples/New-AzContainerAppSourceControl.md b/src/App/App.Autorest/examples/New-AzContainerAppSourceControl.md index f6aab932822d..7c1e4710cd66 100644 --- a/src/App/App.Autorest/examples/New-AzContainerAppSourceControl.md +++ b/src/App/App.Autorest/examples/New-AzContainerAppSourceControl.md @@ -1,8 +1,8 @@ ### Example 1: Create the SourceControl for a Container App. ```powershell -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force New-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" ``` diff --git a/src/App/App.Autorest/examples/Update-AzContainerAppSourceControl.md b/src/App/App.Autorest/examples/Update-AzContainerAppSourceControl.md index d97a4caade47..50761a1761b8 100644 --- a/src/App/App.Autorest/examples/Update-AzContainerAppSourceControl.md +++ b/src/App/App.Autorest/examples/Update-AzContainerAppSourceControl.md @@ -1,8 +1,8 @@ ### Example 1: Update source control for a Container App. ```powershell -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force Update-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" ``` @@ -17,9 +17,9 @@ Update source control for a Container App. ### Example 2: Update source control for a Container App. ```powershell -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force $sourcecontrol = Get-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current Update-AzContainerAppSourceControl -InputObject $sourcecontrol -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" @@ -35,9 +35,9 @@ Update source control for a Container App. ### Example 3: Update source control for a Container App. ```powershell -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force $containerapp = Get-AzContainerApp -ResourceGroupName azps_test_group_app -Name azps-containerapp-1 Update-AzContainerAppSourceControl -ContainerAppInputObject $containerapp -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" diff --git a/src/App/App.Autorest/exports/Disable-AzContainerAppRevision.ps1 b/src/App/App.Autorest/exports/Disable-AzContainerAppRevision.ps1 index 0d80080b2bb0..0b9a973b913e 100644 --- a/src/App/App.Autorest/exports/Disable-AzContainerAppRevision.ps1 +++ b/src/App/App.Autorest/exports/Disable-AzContainerAppRevision.ps1 @@ -112,14 +112,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeactivateViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { DeactivateViaIdentityContainerApp = 'Az.App.private\Disable-AzContainerAppRevision_DeactivateViaIdentityContainerApp'; } if (('Deactivate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Enable-AzContainerAppRevision.ps1 b/src/App/App.Autorest/exports/Enable-AzContainerAppRevision.ps1 index 8bdd722ff2b6..4dd18128eaeb 100644 --- a/src/App/App.Autorest/exports/Enable-AzContainerAppRevision.ps1 +++ b/src/App/App.Autorest/exports/Enable-AzContainerAppRevision.ps1 @@ -112,14 +112,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='ActivateViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { ActivateViaIdentityContainerApp = 'Az.App.private\Enable-AzContainerAppRevision_ActivateViaIdentityContainerApp'; } if (('Activate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerApp.ps1 b/src/App/App.Autorest/exports/Get-AzContainerApp.ps1 index 7ae02fb9cbc8..19356bcbeffb 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerApp.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerApp.ps1 @@ -89,7 +89,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -121,13 +120,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='GetViaIdentity')] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] [System.Uri] @@ -180,7 +172,13 @@ begin { List1 = 'Az.App.private\Get-AzContainerApp_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppAuthConfig.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppAuthConfig.ps1 index 3b1b6c5ee0b0..cd6486db9f20 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppAuthConfig.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppAuthConfig.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppAuthConfig_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppAuthToken.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppAuthToken.ps1 index ce89b970f560..efe211cf16ef 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppAuthToken.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppAuthToken.ps1 @@ -84,7 +84,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -116,12 +115,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] [System.Uri] @@ -172,7 +165,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppAuthToken_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppAvailableWorkloadProfile.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppAvailableWorkloadProfile.ps1 index 24f2b1628d5c..94a84d1ab362 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppAvailableWorkloadProfile.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppAvailableWorkloadProfile.ps1 @@ -74,7 +74,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -156,7 +155,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppAvailableWorkloadProfile_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppBillingMeter.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppBillingMeter.ps1 index 2ffd39a3a1d2..ec3e8e9d3d8f 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppBillingMeter.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppBillingMeter.ps1 @@ -74,7 +74,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -156,7 +155,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppBillingMeter_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnv.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnv.ps1 index 38c7f7936973..41a13ee76f2c 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnv.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnv.ps1 @@ -89,7 +89,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -173,7 +172,13 @@ begin { List1 = 'Az.App.private\Get-AzContainerAppConnectedEnv_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvCert.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvCert.ps1 index d8ba219be0d1..6347b8889841 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvCert.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvCert.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppConnectedEnvCert_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvDapr.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvDapr.ps1 index 944d3084ac71..1d8e39b42d43 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvDapr.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvDapr.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppConnectedEnvDapr_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvDaprSecret.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvDaprSecret.ps1 index 5ba3687b3a4d..0a2141afefbf 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvDaprSecret.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvDaprSecret.ps1 @@ -135,7 +135,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppConnectedEnvDaprSecret_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvStorage.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvStorage.ps1 index 536150a66b3c..436c3ed966b5 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvStorage.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppConnectedEnvStorage.ps1 @@ -119,14 +119,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -210,7 +208,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppConnectedEnvStorage_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppCustomHostName.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppCustomHostName.ps1 index dc78280390cc..f10dd41c094f 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppCustomHostName.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppCustomHostName.ps1 @@ -135,7 +135,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppCustomHostName_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticDetector.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticDetector.ps1 index 614272394d3d..bb2cf24cc479 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticDetector.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticDetector.ps1 @@ -111,14 +111,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -202,7 +200,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppDiagnosticDetector_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticRevision.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticRevision.ps1 index 303d92c6fe49..2a5b73f10d52 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticRevision.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticRevision.ps1 @@ -113,14 +113,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='List')] @@ -210,7 +208,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppDiagnosticRevision_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticRoot.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticRoot.ps1 index f30f2e15c814..ca45c9dd620d 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticRoot.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppDiagnosticRoot.ps1 @@ -81,7 +81,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -113,12 +112,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] [System.Uri] @@ -169,7 +162,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppDiagnosticRoot_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppJob.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppJob.ps1 index 5be21896c2f8..3f100ffe97bd 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppJob.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppJob.ps1 @@ -89,7 +89,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -173,7 +172,13 @@ begin { List1 = 'Az.App.private\Get-AzContainerAppJob_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppJobExecution.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppJobExecution.ps1 index 8c2acd34fc1c..93bd905f227f 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppJobExecution.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppJobExecution.ps1 @@ -109,14 +109,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='JobViaIdentityJob', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for JOBINPUTOBJECT properties and create a hash table. ${JobInputObject}, [Parameter()] @@ -199,7 +197,13 @@ begin { JobViaIdentityJob = 'Az.App.private\Get-AzContainerAppJobExecution_JobViaIdentityJob'; } if (('Job') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppJobSecret.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppJobSecret.ps1 index 295aec13b537..6a3d11d19869 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppJobSecret.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppJobSecret.ps1 @@ -129,7 +129,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppJobSecret_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedCert.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedCert.ps1 index a56f18b06f8c..7f18a61becc4 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedCert.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedCert.ps1 @@ -114,14 +114,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -205,7 +203,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedCert_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnv.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnv.ps1 index b68e3a68a7b0..224203df7e85 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnv.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnv.ps1 @@ -89,7 +89,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -173,7 +172,13 @@ begin { List1 = 'Az.App.private\Get-AzContainerAppManagedEnv_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvAuthToken.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvAuthToken.ps1 index 434535ed907c..354d0f8ebee1 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvAuthToken.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvAuthToken.ps1 @@ -81,7 +81,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -163,7 +162,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppManagedEnvAuthToken_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvCert.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvCert.ps1 index f83075624bc8..e782d02f62c3 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvCert.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvCert.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvCert_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDapr.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDapr.ps1 index 5f86aaf48800..eacabec3bdab 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDapr.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDapr.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvDapr_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDaprSecret.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDaprSecret.ps1 index 3e789bbf9080..cccf0cccf698 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDaprSecret.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDaprSecret.ps1 @@ -135,7 +135,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvDaprSecret_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDiagnosticDetector.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDiagnosticDetector.ps1 index c21b54c1745d..47b71ad4c5d3 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDiagnosticDetector.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDiagnosticDetector.ps1 @@ -114,14 +114,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -205,7 +203,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvDiagnosticDetector_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDiagnosticRoot.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDiagnosticRoot.ps1 index 5bc92883e9ec..03034c348896 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDiagnosticRoot.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvDiagnosticRoot.ps1 @@ -81,7 +81,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -163,7 +162,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppManagedEnvDiagnosticRoot_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvStorage.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvStorage.ps1 index 0ac244dfdac8..f71d08d7f19d 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvStorage.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvStorage.ps1 @@ -119,14 +119,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -210,7 +208,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvStorage_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvWorkloadProfileState.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvWorkloadProfileState.ps1 index a091eea33cff..e9941b2bc079 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvWorkloadProfileState.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppManagedEnvWorkloadProfileState.ps1 @@ -129,7 +129,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvWorkloadProfileState_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppRevision.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppRevision.ps1 index 85c876d4e82d..8936d8d4efca 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppRevision.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppRevision.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='List')] @@ -214,7 +212,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppRevision_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppRevisionReplica.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppRevisionReplica.ps1 index 05fbd9e60210..1cc32f105205 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppRevisionReplica.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppRevisionReplica.ps1 @@ -153,21 +153,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='GetViaIdentityRevision', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for REVISIONINPUTOBJECT properties and create a hash table. ${RevisionInputObject}, [Parameter()] @@ -252,7 +249,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppRevisionReplica_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppSecret.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppSecret.ps1 index 0565dbeb1ee6..e1af227ead41 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppSecret.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppSecret.ps1 @@ -129,7 +129,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppSecret_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Get-AzContainerAppSourceControl.ps1 b/src/App/App.Autorest/exports/Get-AzContainerAppSourceControl.ps1 index faa040d468a7..4a202334be5f 100644 --- a/src/App/App.Autorest/exports/Get-AzContainerAppSourceControl.ps1 +++ b/src/App/App.Autorest/exports/Get-AzContainerAppSourceControl.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppSourceControl_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerApp.ps1 b/src/App/App.Autorest/exports/New-AzContainerApp.ps1 index 5f03515114f6..ba68ad5980a8 100644 --- a/src/App/App.Autorest/exports/New-AzContainerApp.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerApp.ps1 @@ -30,7 +30,7 @@ $EnvId = (Get-AzContainerAppManagedEnv -ResourceGroupName azps_test_group_app -N New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppManagedEnvCert -EnvName azps-env -Name azps-env-cert -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -56,7 +56,7 @@ $EnvId = (Get-AzContainerAppConnectedEnv -ResourceGroupName azps_test_group_app New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppConnectedEnvCert -Name azps-connectedenvcert -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -265,7 +265,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -280,7 +279,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration] # Non versioned Container App configuration properties. - # To construct, see NOTES section for CONFIGURATION properties and create a hash table. ${Configuration}, [Parameter(ParameterSetName='CreateExpanded')] @@ -363,7 +361,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRule[]] # Scaling rules. - # To construct, see NOTES section for SCALERULE properties and create a hash table. ${ScaleRule}, [Parameter(ParameterSetName='CreateExpanded')] @@ -380,7 +377,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[]] # List of container definitions for the Container App. - # To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ${TemplateContainer}, [Parameter(ParameterSetName='CreateExpanded')] @@ -389,7 +385,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[]] # List of specialized containers that run before app containers. - # To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ${TemplateInitContainer}, [Parameter(ParameterSetName='CreateExpanded')] @@ -405,7 +400,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IServiceBind[]] # List of container app services bound to the app - # To construct, see NOTES section for TEMPLATESERVICEBIND properties and create a hash table. ${TemplateServiceBind}, [Parameter(ParameterSetName='CreateExpanded')] @@ -426,7 +420,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[]] # List of volume definitions for the Container App. - # To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ${TemplateVolume}, [Parameter(ParameterSetName='CreateExpanded')] @@ -541,7 +534,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerApp_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppAuthConfig.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppAuthConfig.ps1 index 9567b4c0b7b2..2d013f42ff59 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppAuthConfig.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppAuthConfig.ps1 @@ -162,14 +162,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -254,7 +252,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProviders] # The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. - # To construct, see NOTES section for IDENTITYPROVIDER properties and create a hash table. ${IdentityProvider}, [Parameter(ParameterSetName='CreateExpanded')] @@ -417,7 +414,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppAuthConfig_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppConfigurationObject.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppConfigurationObject.ps1 index 5eec234f45e2..17061653871f 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppConfigurationObject.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppConfigurationObject.ps1 @@ -191,7 +191,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICustomDomain[]] # custom domain bindings for Container Apps' hostnames. - # To construct, see NOTES section for INGRESSCUSTOMDOMAIN properties and create a hash table. ${IngressCustomDomain}, [Parameter()] @@ -210,7 +209,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIPSecurityRestrictionRule[]] # Rules to restrict incoming IP address. - # To construct, see NOTES section for INGRESSIPSECURITYRESTRICTION properties and create a hash table. ${IngressIPSecurityRestriction}, [Parameter()] @@ -223,7 +221,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrafficWeight[]] # Traffic weights for app's revisions. - # To construct, see NOTES section for INGRESSTRAFFIC properties and create a hash table. ${IngressTraffic}, [Parameter()] @@ -244,14 +241,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[]] # Collection of private container registry credentials for containers used by the Container app. - # To construct, see NOTES section for REGISTRY properties and create a hash table. ${Registry}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Container app. - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter()] diff --git a/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnv.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnv.ps1 index f72f2412f00d..a8b178cbfd84 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnv.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnv.ps1 @@ -89,7 +89,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -262,7 +261,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppConnectedEnv_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvCert.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvCert.ps1 index ed7fcfa6e5fc..721e1395cd34 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvCert.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvCert.ps1 @@ -22,7 +22,7 @@ Create a Certificate. .Example New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppConnectedEnvCert -Name azps-connectedenvcert -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -122,31 +122,29 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityConnectedEnvironmentExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityConnectedEnvironmentExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [System.String] - # The geo-location where the resource lives - ${Location}, + # Input File for Value (PFX or PEM blob) + ${InputFile}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityConnectedEnvironmentExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [System.String] - # Input File for Value (PFX or PEM blob) - ${InputFile}, + # The geo-location where the resource lives + ${Location}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityConnectedEnvironmentExpanded')] @@ -259,7 +257,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppConnectedEnvCert_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvDapr.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvDapr.ps1 index b7b076cc9e4b..2120f53d86d2 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvDapr.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvDapr.ps1 @@ -132,14 +132,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -173,7 +171,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[]] # Component metadata - # To construct, see NOTES section for METADATA properties and create a hash table. ${Metadata}, [Parameter(ParameterSetName='CreateExpanded')] @@ -192,7 +189,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Dapr component - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter(ParameterSetName='CreateExpanded')] @@ -305,7 +301,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppConnectedEnvDapr_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvStorage.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvStorage.ps1 index 110818247ebd..20091aaa5572 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvStorage.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppConnectedEnvStorage.ps1 @@ -120,14 +120,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -257,7 +255,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppConnectedEnvStorage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppIdentityProviderObject.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppIdentityProviderObject.ps1 index d2b0c394fc15..468c6b589682 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppIdentityProviderObject.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppIdentityProviderObject.ps1 @@ -127,7 +127,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProvidersCustomOpenIdConnectProviders] # The map of the name of the alias of each custom Open ID Connect provider to the # configuration settings of the custom Open ID Connect provider. - # To construct, see NOTES section for CUSTOMOPENIDCONNECTPROVIDER properties and create a hash table. ${CustomOpenIdConnectProvider}, [Parameter()] diff --git a/src/App/App.Autorest/exports/New-AzContainerAppInitContainerTemplateObject.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppInitContainerTemplateObject.ps1 index e6651f018d96..6eec1c788b41 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppInitContainerTemplateObject.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppInitContainerTemplateObject.ps1 @@ -61,7 +61,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[]] # Container environment variables. - # To construct, see NOTES section for ENV properties and create a hash table. ${Env}, [Parameter()] @@ -94,7 +93,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolumeMount[]] # Container volume mounts. - # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} ) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppJob.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppJob.ps1 index 246d13853820..8c3edcf17bf9 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppJob.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppJob.ps1 @@ -171,7 +171,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -187,7 +186,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[]] # Collection of private container registry credentials used by a Container apps job - # To construct, see NOTES section for CONFIGURATIONREGISTRY properties and create a hash table. ${ConfigurationRegistry}, [Parameter(ParameterSetName='CreateExpanded')] @@ -210,7 +208,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Container Apps Job - # To construct, see NOTES section for CONFIGURATIONSECRET properties and create a hash table. ${ConfigurationSecret}, [Parameter(ParameterSetName='CreateExpanded')] @@ -302,7 +299,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobScaleRule[]] # Scaling rules. - # To construct, see NOTES section for SCALERULE properties and create a hash table. ${ScaleRule}, [Parameter(ParameterSetName='CreateExpanded')] @@ -340,7 +336,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[]] # List of container definitions for the Container App. - # To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ${TemplateContainer}, [Parameter(ParameterSetName='CreateExpanded')] @@ -349,7 +344,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[]] # List of specialized containers that run before app containers. - # To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ${TemplateInitContainer}, [Parameter(ParameterSetName='CreateExpanded')] @@ -358,7 +352,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[]] # List of volume definitions for the Container App. - # To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ${TemplateVolume}, [Parameter(ParameterSetName='CreateExpanded')] @@ -473,7 +466,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppJob_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppJobExecutionContainerObject.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppJobExecutionContainerObject.ps1 index 4368e246ef9e..8dd1f0344af8 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppJobExecutionContainerObject.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppJobExecutionContainerObject.ps1 @@ -56,7 +56,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[]] # Container environment variables. - # To construct, see NOTES section for ENV properties and create a hash table. ${Env}, [Parameter()] diff --git a/src/App/App.Autorest/exports/New-AzContainerAppJobScaleRuleObject.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppJobScaleRuleObject.ps1 index 77cb845c4622..495144494779 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppJobScaleRuleObject.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppJobScaleRuleObject.ps1 @@ -44,7 +44,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the scale rule. - # To construct, see NOTES section for AUTH properties and create a hash table. ${Auth}, [Parameter()] diff --git a/src/App/App.Autorest/exports/New-AzContainerAppManagedCert.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppManagedCert.ps1 index e7a3b3824e22..55405fdb318b 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppManagedCert.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppManagedCert.ps1 @@ -117,24 +117,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] @@ -144,6 +134,14 @@ param( # Selected type of domain control validation for managed certificates. ${DomainControlValidation}, + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] @@ -214,12 +212,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] [System.Uri] @@ -273,7 +265,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedCert_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppManagedEnv.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppManagedEnv.ps1 index 68446fba2b3b..519d54dc2f42 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppManagedEnv.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppManagedEnv.ps1 @@ -100,7 +100,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -242,7 +241,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IWorkloadProfile[]] # Workload profiles configured for the Managed Environment. - # To construct, see NOTES section for WORKLOADPROFILE properties and create a hash table. ${WorkloadProfile}, [Parameter(ParameterSetName='CreateExpanded')] @@ -357,7 +355,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedEnv_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvCert.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvCert.ps1 index c715cd75ce2b..4cf82972f627 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvCert.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvCert.ps1 @@ -22,7 +22,7 @@ Create a Certificate. .Example New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppManagedEnvCert -EnvName azps-env -Name azps-env-cert -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -122,31 +122,29 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [System.String] - # The geo-location where the resource lives - ${Location}, + # Input File for Value (PFX or PEM blob) + ${InputFile}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [System.String] - # Input File for Value (PFX or PEM blob) - ${InputFile}, + # The geo-location where the resource lives + ${Location}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] @@ -259,7 +257,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedEnvCert_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvDapr.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvDapr.ps1 index 2e8fff5982a6..0973f982269b 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvDapr.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvDapr.ps1 @@ -132,14 +132,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -173,7 +171,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[]] # Component metadata - # To construct, see NOTES section for METADATA properties and create a hash table. ${Metadata}, [Parameter(ParameterSetName='CreateExpanded')] @@ -192,7 +189,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Dapr component - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter(ParameterSetName='CreateExpanded')] @@ -305,7 +301,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedEnvDapr_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvStorage.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvStorage.ps1 index 3edad31f6398..15fbfb65e7ae 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvStorage.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppManagedEnvStorage.ps1 @@ -120,14 +120,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -257,7 +255,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedEnvStorage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppProbeObject.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppProbeObject.ps1 index 1756d3f6baf3..cc5a75a2926d 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppProbeObject.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppProbeObject.ps1 @@ -62,7 +62,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppProbeHttpGetHttpHeadersItem[]] # Custom headers to set in the request. # HTTP allows repeated headers. - # To construct, see NOTES section for HTTPGETHTTPHEADER properties and create a hash table. ${HttpGetHttpHeader}, [Parameter()] diff --git a/src/App/App.Autorest/exports/New-AzContainerAppScaleRuleObject.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppScaleRuleObject.ps1 index 69cf15164fe6..9b33012ba54b 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppScaleRuleObject.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppScaleRuleObject.ps1 @@ -64,7 +64,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the queue scale rule. - # To construct, see NOTES section for AZUREQUEUEAUTH properties and create a hash table. ${AzureQueueAuth}, [Parameter()] @@ -83,14 +82,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the custom scale rule. - # To construct, see NOTES section for CUSTOMAUTH properties and create a hash table. ${CustomAuth}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICustomScaleRuleMetadata] # Metadata properties to describe custom scale rule. - # To construct, see NOTES section for CUSTOMMETADATA properties and create a hash table. ${CustomMetadata}, [Parameter()] @@ -104,14 +101,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the custom scale rule. - # To construct, see NOTES section for HTTPAUTH properties and create a hash table. ${HttpAuth}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IHttpScaleRuleMetadata] # Metadata properties to describe http scale rule. - # To construct, see NOTES section for HTTPMETADATA properties and create a hash table. ${HttpMetadata}, [Parameter()] @@ -124,14 +119,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the tcp scale rule. - # To construct, see NOTES section for TCPAUTH properties and create a hash table. ${TcpAuth}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITcpScaleRuleMetadata] # Metadata properties to describe tcp scale rule. - # To construct, see NOTES section for TCPMETADATA properties and create a hash table. ${TcpMetadata} ) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppSourceControl.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppSourceControl.ps1 index cce6b96d7696..4cf07faf7fe0 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppSourceControl.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppSourceControl.ps1 @@ -20,9 +20,9 @@ Create the SourceControl for a Container App. .Description Create the SourceControl for a Container App. .Example -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force New-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" @@ -121,14 +121,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -373,7 +371,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppSourceControl_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppTemplateObject.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppTemplateObject.ps1 index 4c8ab3ef6f37..212e52ee5474 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppTemplateObject.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppTemplateObject.ps1 @@ -70,7 +70,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppProbe[]] # List of probes for the container. - # To construct, see NOTES section for PROBE properties and create a hash table. ${Probe}, [Parameter()] @@ -89,7 +88,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[]] # Container environment variables. - # To construct, see NOTES section for ENV properties and create a hash table. ${Env}, [Parameter()] @@ -122,7 +120,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolumeMount[]] # Container volume mounts. - # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} ) diff --git a/src/App/App.Autorest/exports/New-AzContainerAppVolumeObject.ps1 b/src/App/App.Autorest/exports/New-AzContainerAppVolumeObject.ps1 index adef1515a19a..02dbfe0c540c 100644 --- a/src/App/App.Autorest/exports/New-AzContainerAppVolumeObject.ps1 +++ b/src/App/App.Autorest/exports/New-AzContainerAppVolumeObject.ps1 @@ -57,7 +57,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecretVolumeItem[]] # List of secrets to be added in volume. # If no secrets are provided, all secrets in collection will be added to volume. - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter()] diff --git a/src/App/App.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/App/App.Autorest/exports/ProxyCmdletDefinitions.ps1 index b2e69bd56791..818c476f103a 100644 --- a/src/App/App.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/App/App.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -112,14 +112,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeactivateViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { DeactivateViaIdentityContainerApp = 'Az.App.private\Disable-AzContainerAppRevision_DeactivateViaIdentityContainerApp'; } if (('Deactivate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -358,14 +362,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='ActivateViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -454,7 +456,13 @@ begin { ActivateViaIdentityContainerApp = 'Az.App.private\Enable-AzContainerAppRevision_ActivateViaIdentityContainerApp'; } if (('Activate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -609,14 +617,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -700,7 +706,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppAuthConfig_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -822,7 +834,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -854,12 +865,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] [System.Uri] @@ -910,7 +915,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppAuthToken_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1022,7 +1033,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -1104,7 +1114,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppAvailableWorkloadProfile_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1216,7 +1232,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -1298,7 +1313,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppBillingMeter_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1453,14 +1474,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -1544,7 +1563,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppConnectedEnvCert_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1717,7 +1742,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppConnectedEnvDaprSecret_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1872,14 +1903,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -1963,7 +1992,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppConnectedEnvDapr_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2120,14 +2155,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -2211,7 +2244,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppConnectedEnvStorage_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2338,7 +2377,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -2422,7 +2460,13 @@ begin { List1 = 'Az.App.private\Get-AzContainerAppConnectedEnv_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2595,7 +2639,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppCustomHostName_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2744,14 +2794,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -2835,7 +2883,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppDiagnosticDetector_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2986,14 +3040,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='List')] @@ -3083,7 +3135,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppDiagnosticRevision_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3202,7 +3260,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -3234,12 +3291,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] [System.Uri] @@ -3290,7 +3341,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppDiagnosticRoot_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3437,14 +3494,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='JobViaIdentityJob', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for JOBINPUTOBJECT properties and create a hash table. ${JobInputObject}, [Parameter()] @@ -3527,7 +3582,13 @@ begin { JobViaIdentityJob = 'Az.App.private\Get-AzContainerAppJobExecution_JobViaIdentityJob'; } if (('Job') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3694,7 +3755,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppJobSecret_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3821,7 +3888,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -3905,7 +3971,13 @@ begin { List1 = 'Az.App.private\Get-AzContainerAppJob_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4057,14 +4129,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -4148,7 +4218,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedCert_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4267,7 +4343,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -4349,7 +4424,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppManagedEnvAuthToken_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4504,14 +4585,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -4595,7 +4674,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvCert_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4768,7 +4853,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvDaprSecret_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4923,14 +5014,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -5014,7 +5103,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvDapr_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5166,14 +5261,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -5257,7 +5350,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvDiagnosticDetector_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5376,7 +5475,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -5458,7 +5556,13 @@ begin { GetViaIdentity = 'Az.App.private\Get-AzContainerAppManagedEnvDiagnosticRoot_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5615,14 +5719,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -5706,7 +5808,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvStorage_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5873,7 +5981,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppManagedEnvWorkloadProfileState_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6000,7 +6114,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -6084,7 +6197,13 @@ begin { List1 = 'Az.App.private\Get-AzContainerAppManagedEnv_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6275,21 +6394,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='GetViaIdentityRevision', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for REVISIONINPUTOBJECT properties and create a hash table. ${RevisionInputObject}, [Parameter()] @@ -6374,7 +6490,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppRevisionReplica_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6529,14 +6651,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='List')] @@ -6626,7 +6746,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppRevision_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6793,7 +6919,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppSecret_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6948,14 +7080,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -7039,7 +7169,13 @@ begin { List = 'Az.App.private\Get-AzContainerAppSourceControl_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7166,7 +7302,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -7198,13 +7333,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='GetViaIdentity')] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] [System.Uri] @@ -7257,7 +7385,13 @@ begin { List1 = 'Az.App.private\Get-AzContainerApp_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7457,14 +7591,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -7549,7 +7681,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProviders] # The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. - # To construct, see NOTES section for IDENTITYPROVIDER properties and create a hash table. ${IdentityProvider}, [Parameter(ParameterSetName='CreateExpanded')] @@ -7712,7 +7843,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppAuthConfig_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7772,7 +7909,7 @@ Create a Certificate. .Example New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppConnectedEnvCert -Name azps-connectedenvcert -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -7872,31 +8009,29 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityConnectedEnvironmentExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityConnectedEnvironmentExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [System.String] - # The geo-location where the resource lives - ${Location}, + # Input File for Value (PFX or PEM blob) + ${InputFile}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityConnectedEnvironmentExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [System.String] - # Input File for Value (PFX or PEM blob) - ${InputFile}, + # The geo-location where the resource lives + ${Location}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityConnectedEnvironmentExpanded')] @@ -8009,7 +8144,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppConnectedEnvCert_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8179,14 +8320,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -8220,7 +8359,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[]] # Component metadata - # To construct, see NOTES section for METADATA properties and create a hash table. ${Metadata}, [Parameter(ParameterSetName='CreateExpanded')] @@ -8239,7 +8377,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Dapr component - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter(ParameterSetName='CreateExpanded')] @@ -8352,7 +8489,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppConnectedEnvDapr_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8510,14 +8653,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -8647,7 +8788,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppConnectedEnvStorage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8774,7 +8921,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -8947,7 +9093,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppConnectedEnv_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9156,7 +9308,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -9172,7 +9323,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[]] # Collection of private container registry credentials used by a Container apps job - # To construct, see NOTES section for CONFIGURATIONREGISTRY properties and create a hash table. ${ConfigurationRegistry}, [Parameter(ParameterSetName='CreateExpanded')] @@ -9195,7 +9345,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Container Apps Job - # To construct, see NOTES section for CONFIGURATIONSECRET properties and create a hash table. ${ConfigurationSecret}, [Parameter(ParameterSetName='CreateExpanded')] @@ -9287,7 +9436,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobScaleRule[]] # Scaling rules. - # To construct, see NOTES section for SCALERULE properties and create a hash table. ${ScaleRule}, [Parameter(ParameterSetName='CreateExpanded')] @@ -9325,7 +9473,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[]] # List of container definitions for the Container App. - # To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ${TemplateContainer}, [Parameter(ParameterSetName='CreateExpanded')] @@ -9334,7 +9481,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[]] # List of specialized containers that run before app containers. - # To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ${TemplateInitContainer}, [Parameter(ParameterSetName='CreateExpanded')] @@ -9343,7 +9489,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[]] # List of volume definitions for the Container App. - # To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ${TemplateVolume}, [Parameter(ParameterSetName='CreateExpanded')] @@ -9458,7 +9603,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppJob_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9613,24 +9764,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] @@ -9640,6 +9781,14 @@ param( # Selected type of domain control validation for managed certificates. ${DomainControlValidation}, + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] @@ -9710,12 +9859,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Runtime')] [System.Uri] @@ -9769,7 +9912,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedCert_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9829,7 +9978,7 @@ Create a Certificate. .Example New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppManagedEnvCert -EnvName azps-env -Name azps-env-cert -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -9929,31 +10078,29 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [System.String] - # The geo-location where the resource lives - ${Location}, + # Input File for Value (PFX or PEM blob) + ${InputFile}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [System.String] - # Input File for Value (PFX or PEM blob) - ${InputFile}, + # The geo-location where the resource lives + ${Location}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] @@ -10066,7 +10213,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedEnvCert_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10236,14 +10389,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10277,7 +10428,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[]] # Component metadata - # To construct, see NOTES section for METADATA properties and create a hash table. ${Metadata}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10296,7 +10446,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Dapr component - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10409,7 +10558,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedEnvDapr_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10567,14 +10722,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -10704,7 +10857,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedEnvStorage_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10842,7 +11001,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -10984,7 +11142,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IWorkloadProfile[]] # Workload profiles configured for the Managed Environment. - # To construct, see NOTES section for WORKLOADPROFILE properties and create a hash table. ${WorkloadProfile}, [Parameter(ParameterSetName='CreateExpanded')] @@ -11099,7 +11256,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppManagedEnv_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -11157,9 +11320,9 @@ Create the SourceControl for a Container App. .Description Create the SourceControl for a Container App. .Example -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force New-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" @@ -11258,14 +11421,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] @@ -11510,7 +11671,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerAppSourceControl_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -11578,7 +11745,7 @@ $EnvId = (Get-AzContainerAppManagedEnv -ResourceGroupName azps_test_group_app -N New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppManagedEnvCert -EnvName azps-env -Name azps-env-cert -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -11604,7 +11771,7 @@ $EnvId = (Get-AzContainerAppConnectedEnv -ResourceGroupName azps_test_group_app New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppConnectedEnvCert -Name azps-connectedenvcert -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -11813,7 +11980,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -11828,7 +11994,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration] # Non versioned Container App configuration properties. - # To construct, see NOTES section for CONFIGURATION properties and create a hash table. ${Configuration}, [Parameter(ParameterSetName='CreateExpanded')] @@ -11911,7 +12076,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRule[]] # Scaling rules. - # To construct, see NOTES section for SCALERULE properties and create a hash table. ${ScaleRule}, [Parameter(ParameterSetName='CreateExpanded')] @@ -11928,7 +12092,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[]] # List of container definitions for the Container App. - # To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ${TemplateContainer}, [Parameter(ParameterSetName='CreateExpanded')] @@ -11937,7 +12100,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[]] # List of specialized containers that run before app containers. - # To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ${TemplateInitContainer}, [Parameter(ParameterSetName='CreateExpanded')] @@ -11953,7 +12115,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IServiceBind[]] # List of container app services bound to the app - # To construct, see NOTES section for TEMPLATESERVICEBIND properties and create a hash table. ${TemplateServiceBind}, [Parameter(ParameterSetName='CreateExpanded')] @@ -11974,7 +12135,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[]] # List of volume definitions for the Container App. - # To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ${TemplateVolume}, [Parameter(ParameterSetName='CreateExpanded')] @@ -12089,7 +12249,13 @@ begin { CreateViaJsonString = 'Az.App.private\New-AzContainerApp_CreateViaJsonString'; } if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12244,14 +12410,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -12340,7 +12504,13 @@ begin { DeleteViaIdentityContainerApp = 'Az.App.private\Remove-AzContainerAppAuthConfig_DeleteViaIdentityContainerApp'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12495,14 +12665,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -12591,7 +12759,13 @@ begin { DeleteViaIdentityConnectedEnvironment = 'Az.App.private\Remove-AzContainerAppConnectedEnvCert_DeleteViaIdentityConnectedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12746,14 +12920,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -12842,7 +13014,13 @@ begin { DeleteViaIdentityConnectedEnvironment = 'Az.App.private\Remove-AzContainerAppConnectedEnvDapr_DeleteViaIdentityConnectedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12997,14 +13175,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -13093,7 +13269,13 @@ begin { DeleteViaIdentityConnectedEnvironment = 'Az.App.private\Remove-AzContainerAppConnectedEnvStorage_DeleteViaIdentityConnectedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -13216,7 +13398,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -13316,7 +13497,13 @@ begin { DeleteViaIdentity = 'Az.App.private\Remove-AzContainerAppConnectedEnv_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -13439,7 +13626,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -13539,7 +13725,13 @@ begin { DeleteViaIdentity = 'Az.App.private\Remove-AzContainerAppJob_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -13690,14 +13882,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -13786,7 +13976,13 @@ begin { DeleteViaIdentityManagedEnvironment = 'Az.App.private\Remove-AzContainerAppManagedCert_DeleteViaIdentityManagedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -13941,14 +14137,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -14037,7 +14231,13 @@ begin { DeleteViaIdentityManagedEnvironment = 'Az.App.private\Remove-AzContainerAppManagedEnvCert_DeleteViaIdentityManagedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -14192,14 +14392,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -14288,7 +14486,13 @@ begin { DeleteViaIdentityManagedEnvironment = 'Az.App.private\Remove-AzContainerAppManagedEnvDapr_DeleteViaIdentityManagedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -14443,14 +14647,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -14539,7 +14741,13 @@ begin { DeleteViaIdentityManagedEnvironment = 'Az.App.private\Remove-AzContainerAppManagedEnvStorage_DeleteViaIdentityManagedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -14663,7 +14871,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -14763,7 +14970,13 @@ begin { DeleteViaIdentity = 'Az.App.private\Remove-AzContainerAppManagedEnv_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -14886,7 +15099,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -14986,7 +15198,13 @@ begin { DeleteViaIdentity = 'Az.App.private\Remove-AzContainerApp_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -15136,14 +15354,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='RestartViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -15232,7 +15448,13 @@ begin { RestartViaIdentityContainerApp = 'Az.App.private\Restart-AzContainerAppRevision_RestartViaIdentityContainerApp'; } if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -15403,7 +15625,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] @@ -15411,7 +15632,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionTemplate] # Job's execution template, containing container configuration for a job's execution - # To construct, see NOTES section for TEMPLATE properties and create a hash table. ${Template}, [Parameter(ParameterSetName='StartExpanded')] @@ -15420,7 +15640,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionContainer[]] # List of container definitions for the Container Apps Job. - # To construct, see NOTES section for CONTAINER properties and create a hash table. ${Container}, [Parameter(ParameterSetName='StartExpanded')] @@ -15429,7 +15648,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionContainer[]] # List of specialized containers that run before job containers. - # To construct, see NOTES section for INITCONTAINER properties and create a hash table. ${InitContainer}, [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] @@ -15539,7 +15757,13 @@ begin { StartViaJsonString = 'Az.App.private\Start-AzContainerAppJob_StartViaJsonString'; } if (('Start', 'StartExpanded', 'StartViaJsonFilePath', 'StartViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -15659,7 +15883,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -15753,7 +15976,13 @@ begin { StartViaIdentity = 'Az.App.private\Start-AzContainerApp_StartViaIdentity'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -15900,14 +16129,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='StopViaIdentityJob', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for JOBINPUTOBJECT properties and create a hash table. ${JobInputObject}, [Parameter()] @@ -16008,7 +16235,13 @@ begin { StopViaIdentityJob = 'Az.App.private\Stop-AzContainerAppJobExecution_StopViaIdentityJob'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -16128,7 +16361,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -16222,7 +16454,13 @@ begin { StopViaIdentity = 'Az.App.private\Stop-AzContainerApp_StopViaIdentity'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -16325,7 +16563,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICheckNameAvailabilityRequest] # The check availability request body. - # To construct, see NOTES section for CHECKNAMEAVAILABILITYREQUEST properties and create a hash table. ${CheckNameAvailabilityRequest}, [Parameter(ParameterSetName='CheckExpanded')] @@ -16433,7 +16670,13 @@ begin { CheckViaJsonString = 'Az.App.private\Test-AzContainerAppConnectedEnvNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -16536,7 +16779,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICheckNameAvailabilityRequest] # The check availability request body. - # To construct, see NOTES section for CHECKNAMEAVAILABILITYREQUEST properties and create a hash table. ${CheckNameAvailabilityRequest}, [Parameter(ParameterSetName='CheckExpanded')] @@ -16644,7 +16886,13 @@ begin { CheckViaJsonString = 'Az.App.private\Test-AzContainerAppNamespaceAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -16698,9 +16946,9 @@ end { <# .Synopsis -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. .Description -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. .Example Update-AzContainerAppAuthConfig -Name current -ContainerAppName azps-containerapp-2 -ResourceGroupName azps_test_group_app -PlatformEnabled -GlobalValidationUnauthenticatedClientAction RedirectToLoginPage -IdentityProvider $identity .Example @@ -16842,14 +17090,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -16914,7 +17160,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProviders] # The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. - # To construct, see NOTES section for IDENTITYPROVIDER properties and create a hash table. ${IdentityProvider}, [Parameter()] @@ -17047,7 +17292,13 @@ begin { UpdateViaIdentityExpanded = 'Az.App.private\Update-AzContainerAppAuthConfig_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -17207,14 +17458,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -17320,7 +17569,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppConnectedEnvCert_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -17374,9 +17629,9 @@ end { <# .Synopsis -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. .Description -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. .Example $secretObject = New-AzContainerAppSecretObject -Name "masterkey" -Value "keyvalue" $daprMetaData = New-AzContainerAppDaprMetadataObject -Name "masterkey" -Value "masterkey" @@ -17493,14 +17748,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -17526,7 +17779,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[]] # Component metadata - # To construct, see NOTES section for METADATA properties and create a hash table. ${Metadata}, [Parameter()] @@ -17541,7 +17793,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Dapr component - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter()] @@ -17636,7 +17887,13 @@ begin { UpdateViaIdentityExpanded = 'Az.App.private\Update-AzContainerAppConnectedEnvDapr_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -17690,9 +17947,9 @@ end { <# .Synopsis -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. .Description -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. .Example $storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName azps_test_group_app -AccountName azpstestsa).Value[0] @@ -17795,14 +18052,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -17910,7 +18165,13 @@ begin { UpdateViaIdentityExpanded = 'Az.App.private\Update-AzContainerAppConnectedEnvStorage_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -18119,7 +18380,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18128,7 +18388,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[]] # Collection of private container registry credentials used by a Container apps job - # To construct, see NOTES section for CONFIGURATIONREGISTRY properties and create a hash table. ${ConfigurationRegistry}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18151,7 +18410,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Container Apps Job - # To construct, see NOTES section for CONFIGURATIONSECRET properties and create a hash table. ${ConfigurationSecret}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18258,7 +18516,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobScaleRule[]] # Scaling rules. - # To construct, see NOTES section for SCALERULE properties and create a hash table. ${ScaleRule}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18296,7 +18553,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[]] # List of container definitions for the Container App. - # To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ${TemplateContainer}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18305,7 +18561,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[]] # List of specialized containers that run before app containers. - # To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ${TemplateInitContainer}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18314,7 +18569,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[]] # List of volume definitions for the Container App. - # To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ${TemplateVolume}, [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] @@ -18422,7 +18676,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppJob_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -18579,14 +18839,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18692,7 +18950,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppManagedCert_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -18857,14 +19121,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -18970,7 +19232,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppManagedEnvCert_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -19024,9 +19292,9 @@ end { <# .Synopsis -Create a Dapr Component in a Managed Environment. +Update a Dapr Component in a Managed Environment. .Description -Create a Dapr Component in a Managed Environment. +Update a Dapr Component in a Managed Environment. .Example $scope = @("container-app-1","container-app-2") $secretObject = New-AzContainerAppSecretObject -Name "masterkey" -Value "keyvalue" @@ -19146,14 +19414,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -19179,7 +19445,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[]] # Component metadata - # To construct, see NOTES section for METADATA properties and create a hash table. ${Metadata}, [Parameter()] @@ -19194,7 +19459,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Dapr component - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter()] @@ -19289,7 +19553,13 @@ begin { UpdateViaIdentityManagedEnvironmentExpanded = 'Az.App.private\Update-AzContainerAppManagedEnvDapr_UpdateViaIdentityManagedEnvironmentExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -19343,9 +19613,9 @@ end { <# .Synopsis -Create storage for a managedEnvironment. +Update storage for a managedEnvironment. .Description -Create storage for a managedEnvironment. +Update storage for a managedEnvironment. .Example $storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName azps_test_group_app -AccountName azpstestsa).Value[0] @@ -19448,14 +19718,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -19563,7 +19831,13 @@ begin { UpdateViaIdentityManagedEnvironmentExpanded = 'Az.App.private\Update-AzContainerAppManagedEnvStorage_UpdateViaIdentityManagedEnvironmentExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -19699,7 +19973,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -19772,7 +20045,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IWorkloadProfile[]] # Workload profiles configured for the Managed Environment. - # To construct, see NOTES section for WORKLOADPROFILE properties and create a hash table. ${WorkloadProfile}, [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] @@ -19880,7 +20152,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppManagedEnv_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -19934,26 +20212,26 @@ end { <# .Synopsis -Create the SourceControl for a Container App. +Update the SourceControl for a Container App. .Description -Create the SourceControl for a Container App. +Update the SourceControl for a Container App. .Example -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force Update-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" .Example -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force $sourcecontrol = Get-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current Update-AzContainerAppSourceControl -InputObject $sourcecontrol -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" .Example -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force $containerapp = Get-AzContainerApp -ResourceGroupName azps_test_group_app -Name azps-containerapp-1 Update-AzContainerAppSourceControl -ContainerAppInputObject $containerapp -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" @@ -20045,14 +20323,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -20249,7 +20525,13 @@ begin { UpdateViaIdentityExpanded = 'Az.App.private\Update-AzContainerAppSourceControl_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -20515,7 +20797,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -20523,7 +20804,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration] # Non versioned Container App configuration properties. - # To construct, see NOTES section for CONFIGURATION properties and create a hash table. ${Configuration}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -20591,7 +20871,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRule[]] # Scaling rules. - # To construct, see NOTES section for SCALERULE properties and create a hash table. ${ScaleRule}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -20608,7 +20887,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[]] # List of container definitions for the Container App. - # To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ${TemplateContainer}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -20617,7 +20895,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[]] # List of specialized containers that run before app containers. - # To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ${TemplateInitContainer}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -20633,7 +20910,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IServiceBind[]] # List of container app services bound to the app - # To construct, see NOTES section for TEMPLATESERVICEBIND properties and create a hash table. ${TemplateServiceBind}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -20654,7 +20930,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[]] # List of volume definitions for the Container App. - # To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ${TemplateVolume}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -20769,7 +21044,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerApp_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -20998,7 +21279,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICustomDomain[]] # custom domain bindings for Container Apps' hostnames. - # To construct, see NOTES section for INGRESSCUSTOMDOMAIN properties and create a hash table. ${IngressCustomDomain}, [Parameter()] @@ -21017,7 +21297,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIPSecurityRestrictionRule[]] # Rules to restrict incoming IP address. - # To construct, see NOTES section for INGRESSIPSECURITYRESTRICTION properties and create a hash table. ${IngressIPSecurityRestriction}, [Parameter()] @@ -21030,7 +21309,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrafficWeight[]] # Traffic weights for app's revisions. - # To construct, see NOTES section for INGRESSTRAFFIC properties and create a hash table. ${IngressTraffic}, [Parameter()] @@ -21051,14 +21329,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[]] # Collection of private container registry credentials for containers used by the Container app. - # To construct, see NOTES section for REGISTRY properties and create a hash table. ${Registry}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Container app. - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter()] @@ -21612,7 +21888,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProvidersCustomOpenIdConnectProviders] # The map of the name of the alias of each custom Open ID Connect provider to the # configuration settings of the custom Open ID Connect provider. - # To construct, see NOTES section for CUSTOMOPENIDCONNECTPROVIDER properties and create a hash table. ${CustomOpenIdConnectProvider}, [Parameter()] @@ -21915,7 +22190,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[]] # Container environment variables. - # To construct, see NOTES section for ENV properties and create a hash table. ${Env}, [Parameter()] @@ -21948,7 +22222,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolumeMount[]] # Container volume mounts. - # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} ) @@ -22195,7 +22468,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[]] # Container environment variables. - # To construct, see NOTES section for ENV properties and create a hash table. ${Env}, [Parameter()] @@ -22333,7 +22605,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the scale rule. - # To construct, see NOTES section for AUTH properties and create a hash table. ${Auth}, [Parameter()] @@ -22590,7 +22861,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppProbeHttpGetHttpHeadersItem[]] # Custom headers to set in the request. # HTTP allows repeated headers. - # To construct, see NOTES section for HTTPGETHTTPHEADER properties and create a hash table. ${HttpGetHttpHeader}, [Parameter()] @@ -23045,7 +23315,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the queue scale rule. - # To construct, see NOTES section for AZUREQUEUEAUTH properties and create a hash table. ${AzureQueueAuth}, [Parameter()] @@ -23064,14 +23333,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the custom scale rule. - # To construct, see NOTES section for CUSTOMAUTH properties and create a hash table. ${CustomAuth}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICustomScaleRuleMetadata] # Metadata properties to describe custom scale rule. - # To construct, see NOTES section for CUSTOMMETADATA properties and create a hash table. ${CustomMetadata}, [Parameter()] @@ -23085,14 +23352,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the custom scale rule. - # To construct, see NOTES section for HTTPAUTH properties and create a hash table. ${HttpAuth}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IHttpScaleRuleMetadata] # Metadata properties to describe http scale rule. - # To construct, see NOTES section for HTTPMETADATA properties and create a hash table. ${HttpMetadata}, [Parameter()] @@ -23105,14 +23370,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[]] # Authentication secrets for the tcp scale rule. - # To construct, see NOTES section for TCPAUTH properties and create a hash table. ${TcpAuth}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITcpScaleRuleMetadata] # Metadata properties to describe tcp scale rule. - # To construct, see NOTES section for TCPMETADATA properties and create a hash table. ${TcpMetadata} ) @@ -23587,7 +23850,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppProbe[]] # List of probes for the container. - # To construct, see NOTES section for PROBE properties and create a hash table. ${Probe}, [Parameter()] @@ -23606,7 +23868,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[]] # Container environment variables. - # To construct, see NOTES section for ENV properties and create a hash table. ${Env}, [Parameter()] @@ -23639,7 +23900,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolumeMount[]] # Container volume mounts. - # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} ) @@ -23999,7 +24259,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecretVolumeItem[]] # List of secrets to be added in volume. # If no secrets are provided, all secrets in collection will be added to volume. - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter()] diff --git a/src/App/App.Autorest/exports/Remove-AzContainerApp.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerApp.ps1 index dd1be48b9052..f5239c002745 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerApp.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerApp.ps1 @@ -85,7 +85,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -185,7 +184,13 @@ begin { DeleteViaIdentity = 'Az.App.private\Remove-AzContainerApp_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppAuthConfig.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppAuthConfig.ps1 index 3b41deb78a4a..085f359622f0 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppAuthConfig.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppAuthConfig.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -213,7 +211,13 @@ begin { DeleteViaIdentityContainerApp = 'Az.App.private\Remove-AzContainerAppAuthConfig_DeleteViaIdentityContainerApp'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnv.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnv.ps1 index ee883286407e..5c13ac7ba4bf 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnv.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnv.ps1 @@ -85,7 +85,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -185,7 +184,13 @@ begin { DeleteViaIdentity = 'Az.App.private\Remove-AzContainerAppConnectedEnv_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvCert.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvCert.ps1 index 0b3b49d9ec05..f50b61a73084 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvCert.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvCert.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -213,7 +211,13 @@ begin { DeleteViaIdentityConnectedEnvironment = 'Az.App.private\Remove-AzContainerAppConnectedEnvCert_DeleteViaIdentityConnectedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvDapr.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvDapr.ps1 index 3fa23b401a7c..cfc278d5b006 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvDapr.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvDapr.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -213,7 +211,13 @@ begin { DeleteViaIdentityConnectedEnvironment = 'Az.App.private\Remove-AzContainerAppConnectedEnvDapr_DeleteViaIdentityConnectedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvStorage.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvStorage.ps1 index d1c5507b3ebf..0afc5af6dde2 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvStorage.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppConnectedEnvStorage.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityConnectedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter()] @@ -213,7 +211,13 @@ begin { DeleteViaIdentityConnectedEnvironment = 'Az.App.private\Remove-AzContainerAppConnectedEnvStorage_DeleteViaIdentityConnectedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppJob.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppJob.ps1 index c821f56a28a5..8bf8b150c09c 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppJob.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppJob.ps1 @@ -85,7 +85,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -185,7 +184,13 @@ begin { DeleteViaIdentity = 'Az.App.private\Remove-AzContainerAppJob_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedCert.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedCert.ps1 index 8505fef72d47..660f7441fa84 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedCert.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedCert.ps1 @@ -113,14 +113,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -209,7 +207,13 @@ begin { DeleteViaIdentityManagedEnvironment = 'Az.App.private\Remove-AzContainerAppManagedCert_DeleteViaIdentityManagedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnv.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnv.ps1 index 79c33659e79b..34a999719dd5 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnv.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnv.ps1 @@ -86,7 +86,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -186,7 +185,13 @@ begin { DeleteViaIdentity = 'Az.App.private\Remove-AzContainerAppManagedEnv_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvCert.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvCert.ps1 index cb7de7c25b20..ec12d6e468c9 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvCert.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvCert.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -213,7 +211,13 @@ begin { DeleteViaIdentityManagedEnvironment = 'Az.App.private\Remove-AzContainerAppManagedEnvCert_DeleteViaIdentityManagedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvDapr.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvDapr.ps1 index 617d93542fef..96b131b1a4b9 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvDapr.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvDapr.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -213,7 +211,13 @@ begin { DeleteViaIdentityManagedEnvironment = 'Az.App.private\Remove-AzContainerAppManagedEnvDapr_DeleteViaIdentityManagedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvStorage.ps1 b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvStorage.ps1 index 8ba65083a6e6..a4302f2598e7 100644 --- a/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvStorage.ps1 +++ b/src/App/App.Autorest/exports/Remove-AzContainerAppManagedEnvStorage.ps1 @@ -117,14 +117,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityManagedEnvironment', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -213,7 +211,13 @@ begin { DeleteViaIdentityManagedEnvironment = 'Az.App.private\Remove-AzContainerAppManagedEnvStorage_DeleteViaIdentityManagedEnvironment'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Restart-AzContainerAppRevision.ps1 b/src/App/App.Autorest/exports/Restart-AzContainerAppRevision.ps1 index 9e366639c589..973328b85649 100644 --- a/src/App/App.Autorest/exports/Restart-AzContainerAppRevision.ps1 +++ b/src/App/App.Autorest/exports/Restart-AzContainerAppRevision.ps1 @@ -112,14 +112,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='RestartViaIdentityContainerApp', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter()] @@ -208,7 +206,13 @@ begin { RestartViaIdentityContainerApp = 'Az.App.private\Restart-AzContainerAppRevision_RestartViaIdentityContainerApp'; } if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Start-AzContainerApp.ps1 b/src/App/App.Autorest/exports/Start-AzContainerApp.ps1 index 4e4acb14f089..cdb6dcced7ed 100644 --- a/src/App/App.Autorest/exports/Start-AzContainerApp.ps1 +++ b/src/App/App.Autorest/exports/Start-AzContainerApp.ps1 @@ -82,7 +82,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -176,7 +175,13 @@ begin { StartViaIdentity = 'Az.App.private\Start-AzContainerApp_StartViaIdentity'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Start-AzContainerAppJob.ps1 b/src/App/App.Autorest/exports/Start-AzContainerAppJob.ps1 index d58f0ccafe39..b110a1f9ad24 100644 --- a/src/App/App.Autorest/exports/Start-AzContainerAppJob.ps1 +++ b/src/App/App.Autorest/exports/Start-AzContainerAppJob.ps1 @@ -133,7 +133,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] @@ -141,7 +140,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionTemplate] # Job's execution template, containing container configuration for a job's execution - # To construct, see NOTES section for TEMPLATE properties and create a hash table. ${Template}, [Parameter(ParameterSetName='StartExpanded')] @@ -150,7 +148,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionContainer[]] # List of container definitions for the Container Apps Job. - # To construct, see NOTES section for CONTAINER properties and create a hash table. ${Container}, [Parameter(ParameterSetName='StartExpanded')] @@ -159,7 +156,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionContainer[]] # List of specialized containers that run before job containers. - # To construct, see NOTES section for INITCONTAINER properties and create a hash table. ${InitContainer}, [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] @@ -269,7 +265,13 @@ begin { StartViaJsonString = 'Az.App.private\Start-AzContainerAppJob_StartViaJsonString'; } if (('Start', 'StartExpanded', 'StartViaJsonFilePath', 'StartViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Stop-AzContainerApp.ps1 b/src/App/App.Autorest/exports/Stop-AzContainerApp.ps1 index f003c317e450..dd3d49e9a744 100644 --- a/src/App/App.Autorest/exports/Stop-AzContainerApp.ps1 +++ b/src/App/App.Autorest/exports/Stop-AzContainerApp.ps1 @@ -82,7 +82,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -176,7 +175,13 @@ begin { StopViaIdentity = 'Az.App.private\Stop-AzContainerApp_StopViaIdentity'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Stop-AzContainerAppJobExecution.ps1 b/src/App/App.Autorest/exports/Stop-AzContainerAppJobExecution.ps1 index 8b8aff45e6c6..f27a4b3e3913 100644 --- a/src/App/App.Autorest/exports/Stop-AzContainerAppJobExecution.ps1 +++ b/src/App/App.Autorest/exports/Stop-AzContainerAppJobExecution.ps1 @@ -109,14 +109,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='StopViaIdentityJob', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for JOBINPUTOBJECT properties and create a hash table. ${JobInputObject}, [Parameter()] @@ -217,7 +215,13 @@ begin { StopViaIdentityJob = 'Az.App.private\Stop-AzContainerAppJobExecution_StopViaIdentityJob'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Test-AzContainerAppConnectedEnvNameAvailability.ps1 b/src/App/App.Autorest/exports/Test-AzContainerAppConnectedEnvNameAvailability.ps1 index c5e1cb8860ed..977fa2a30689 100644 --- a/src/App/App.Autorest/exports/Test-AzContainerAppConnectedEnvNameAvailability.ps1 +++ b/src/App/App.Autorest/exports/Test-AzContainerAppConnectedEnvNameAvailability.ps1 @@ -65,7 +65,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICheckNameAvailabilityRequest] # The check availability request body. - # To construct, see NOTES section for CHECKNAMEAVAILABILITYREQUEST properties and create a hash table. ${CheckNameAvailabilityRequest}, [Parameter(ParameterSetName='CheckExpanded')] @@ -173,7 +172,13 @@ begin { CheckViaJsonString = 'Az.App.private\Test-AzContainerAppConnectedEnvNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Test-AzContainerAppNamespaceAvailability.ps1 b/src/App/App.Autorest/exports/Test-AzContainerAppNamespaceAvailability.ps1 index 8cd885af08e7..a8ed54aacd26 100644 --- a/src/App/App.Autorest/exports/Test-AzContainerAppNamespaceAvailability.ps1 +++ b/src/App/App.Autorest/exports/Test-AzContainerAppNamespaceAvailability.ps1 @@ -65,7 +65,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICheckNameAvailabilityRequest] # The check availability request body. - # To construct, see NOTES section for CHECKNAMEAVAILABILITYREQUEST properties and create a hash table. ${CheckNameAvailabilityRequest}, [Parameter(ParameterSetName='CheckExpanded')] @@ -173,7 +172,13 @@ begin { CheckViaJsonString = 'Az.App.private\Test-AzContainerAppNamespaceAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerApp.ps1 b/src/App/App.Autorest/exports/Update-AzContainerApp.ps1 index db14437328ed..fa3094902a75 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerApp.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerApp.ps1 @@ -228,7 +228,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -236,7 +235,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration] # Non versioned Container App configuration properties. - # To construct, see NOTES section for CONFIGURATION properties and create a hash table. ${Configuration}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -304,7 +302,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRule[]] # Scaling rules. - # To construct, see NOTES section for SCALERULE properties and create a hash table. ${ScaleRule}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -321,7 +318,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[]] # List of container definitions for the Container App. - # To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ${TemplateContainer}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -330,7 +326,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[]] # List of specialized containers that run before app containers. - # To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ${TemplateInitContainer}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -346,7 +341,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IServiceBind[]] # List of container app services bound to the app - # To construct, see NOTES section for TEMPLATESERVICEBIND properties and create a hash table. ${TemplateServiceBind}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -367,7 +361,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[]] # List of volume definitions for the Container App. - # To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ${TemplateVolume}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -482,7 +475,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerApp_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppAuthConfig.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppAuthConfig.ps1 index f77aa8d66e28..f0266e921c02 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppAuthConfig.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppAuthConfig.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. .Description -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. .Example Update-AzContainerAppAuthConfig -Name current -ContainerAppName azps-containerapp-2 -ResourceGroupName azps_test_group_app -PlatformEnabled -GlobalValidationUnauthenticatedClientAction RedirectToLoginPage -IdentityProvider $identity .Example @@ -160,14 +160,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -232,7 +230,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProviders] # The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. - # To construct, see NOTES section for IDENTITYPROVIDER properties and create a hash table. ${IdentityProvider}, [Parameter()] @@ -365,7 +362,13 @@ begin { UpdateViaIdentityExpanded = 'Az.App.private\Update-AzContainerAppAuthConfig_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvCert.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvCert.ps1 index 327ccf15678d..bc0317d5ae51 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvCert.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvCert.ps1 @@ -122,14 +122,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -235,7 +233,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppConnectedEnvCert_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvDapr.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvDapr.ps1 index 1a083c17602f..7dd49a156c3a 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvDapr.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvDapr.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. .Description -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. .Example $secretObject = New-AzContainerAppSecretObject -Name "masterkey" -Value "keyvalue" $daprMetaData = New-AzContainerAppDaprMetadataObject -Name "masterkey" -Value "masterkey" @@ -135,14 +135,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -168,7 +166,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[]] # Component metadata - # To construct, see NOTES section for METADATA properties and create a hash table. ${Metadata}, [Parameter()] @@ -183,7 +180,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Dapr component - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter()] @@ -278,7 +274,13 @@ begin { UpdateViaIdentityExpanded = 'Az.App.private\Update-AzContainerAppConnectedEnvDapr_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvStorage.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvStorage.ps1 index 9841700c1e7c..89c7f4d524ee 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvStorage.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppConnectedEnvStorage.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. .Description -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. .Example $storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName azps_test_group_app -AccountName azpstestsa).Value[0] @@ -121,14 +121,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ConnectedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -236,7 +234,13 @@ begin { UpdateViaIdentityExpanded = 'Az.App.private\Update-AzContainerAppConnectedEnvStorage_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppJob.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppJob.ps1 index 2b90941a68a2..2ecc9d661091 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppJob.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppJob.ps1 @@ -171,7 +171,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -180,7 +179,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[]] # Collection of private container registry credentials used by a Container apps job - # To construct, see NOTES section for CONFIGURATIONREGISTRY properties and create a hash table. ${ConfigurationRegistry}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -203,7 +201,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Container Apps Job - # To construct, see NOTES section for CONFIGURATIONSECRET properties and create a hash table. ${ConfigurationSecret}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -310,7 +307,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobScaleRule[]] # Scaling rules. - # To construct, see NOTES section for SCALERULE properties and create a hash table. ${ScaleRule}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -348,7 +344,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[]] # List of container definitions for the Container App. - # To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ${TemplateContainer}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -357,7 +352,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[]] # List of specialized containers that run before app containers. - # To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ${TemplateInitContainer}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -366,7 +360,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[]] # List of volume definitions for the Container App. - # To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ${TemplateVolume}, [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] @@ -474,7 +467,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppJob_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppManagedCert.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppManagedCert.ps1 index c868d511c03d..ba36ba90536a 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppManagedCert.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppManagedCert.ps1 @@ -119,14 +119,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -232,7 +230,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppManagedCert_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnv.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnv.ps1 index 9556edcc8c01..b143e0d4302c 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnv.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnv.ps1 @@ -98,7 +98,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -171,7 +170,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IWorkloadProfile[]] # Workload profiles configured for the Managed Environment. - # To construct, see NOTES section for WORKLOADPROFILE properties and create a hash table. ${WorkloadProfile}, [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] @@ -279,7 +277,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppManagedEnv_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvCert.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvCert.ps1 index 0c7126d2717a..06a1c60c5574 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvCert.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvCert.ps1 @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -240,7 +238,13 @@ begin { UpdateViaJsonString = 'Az.App.private\Update-AzContainerAppManagedEnvCert_UpdateViaJsonString'; } if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvDapr.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvDapr.ps1 index e217856490d0..de3ff2d2b373 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvDapr.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvDapr.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a Dapr Component in a Managed Environment. +Update a Dapr Component in a Managed Environment. .Description -Create a Dapr Component in a Managed Environment. +Update a Dapr Component in a Managed Environment. .Example $scope = @("container-app-1","container-app-2") $secretObject = New-AzContainerAppSecretObject -Name "masterkey" -Value "keyvalue" @@ -138,14 +138,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -171,7 +169,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[]] # Component metadata - # To construct, see NOTES section for METADATA properties and create a hash table. ${Metadata}, [Parameter()] @@ -186,7 +183,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[]] # Collection of secrets used by a Dapr component - # To construct, see NOTES section for SECRET properties and create a hash table. ${Secret}, [Parameter()] @@ -281,7 +277,13 @@ begin { UpdateViaIdentityManagedEnvironmentExpanded = 'Az.App.private\Update-AzContainerAppManagedEnvDapr_UpdateViaIdentityManagedEnvironmentExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvStorage.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvStorage.ps1 index 88889079a86f..a7d6421474fe 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvStorage.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppManagedEnvStorage.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create storage for a managedEnvironment. +Update storage for a managedEnvironment. .Description -Create storage for a managedEnvironment. +Update storage for a managedEnvironment. .Example $storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName azps_test_group_app -AccountName azpstestsa).Value[0] @@ -121,14 +121,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityManagedEnvironmentExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ${ManagedEnvironmentInputObject}, [Parameter()] @@ -236,7 +234,13 @@ begin { UpdateViaIdentityManagedEnvironmentExpanded = 'Az.App.private\Update-AzContainerAppManagedEnvStorage_UpdateViaIdentityManagedEnvironmentExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/exports/Update-AzContainerAppSourceControl.ps1 b/src/App/App.Autorest/exports/Update-AzContainerAppSourceControl.ps1 index d82b3db0a264..99cb2111e394 100644 --- a/src/App/App.Autorest/exports/Update-AzContainerAppSourceControl.ps1 +++ b/src/App/App.Autorest/exports/Update-AzContainerAppSourceControl.ps1 @@ -16,26 +16,26 @@ <# .Synopsis -Create the SourceControl for a Container App. +Update the SourceControl for a Container App. .Description -Create the SourceControl for a Container App. +Update the SourceControl for a Container App. .Example -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force Update-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" .Example -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force $sourcecontrol = Get-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current Update-AzContainerAppSourceControl -InputObject $sourcecontrol -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" .Example -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force $containerapp = Get-AzContainerApp -ResourceGroupName azps_test_group_app -Name azps-containerapp-1 Update-AzContainerAppSourceControl -ContainerAppInputObject $containerapp -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" @@ -127,14 +127,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ${ContainerAppInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.App.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -331,7 +329,13 @@ begin { UpdateViaIdentityExpanded = 'Az.App.private\Update-AzContainerAppSourceControl_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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.App.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/App/App.Autorest/generated/Module.cs b/src/App/App.Autorest/generated/Module.cs index d25a99a1f31c..28a140419eaf 100644 --- a/src/App/App.Autorest/generated/Module.cs +++ b/src/App/App.Autorest/generated/Module.cs @@ -17,6 +17,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App 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 @@ -26,12 +28,20 @@ public partial class Module public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler(); + private static bool _init = false; + + private static readonly global::System.Object _initLock = new global::System.Object(); + + private static Microsoft.Azure.PowerShell.Cmdlets.App.Module _instance; + /// the ISendAsync pipeline instance private Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.HttpPipeline _pipeline; /// the ISendAsync pipeline instance (when proxy is enabled) private Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.HttpPipeline _pipelineWithProxy; + private static readonly global::System.Object _singletonLock = new global::System.Object(); + public bool _useProxy = false; public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); @@ -51,11 +61,11 @@ public partial class Module /// The delegate to get the telemetry Id. public GetTelemetryIdDelegate GetTelemetryId { get; set; } - /// Backing field for property. - private static Microsoft.Azure.PowerShell.Cmdlets.App.Module _instance; + /// The delegate to get the telemetry info. + public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; } /// the singleton of this module class - public static Microsoft.Azure.PowerShell.Cmdlets.App.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.App.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.App.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.App.Module()); + public static Microsoft.Azure.PowerShell.Cmdlets.App.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } /// The Name of this module public string Name => @"Az.App"; @@ -72,6 +82,9 @@ public partial class Module /// The ResourceID for this module (azure arm). public string ResourceId => @"Az.App"; + /// 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; } @@ -117,9 +130,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.HttpPipeline CreatePipelin /// Initialization steps performed after the module is loaded. public void Init() { - OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } ); - OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } ); - CustomInit(); + if (_init == false) + { + lock (_initLock) { + if (_init == false) { + OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } ); + OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } ); + CustomInit(); + _init = true; + } + } + } } /// Creates the module instance. diff --git a/src/App/App.Autorest/generated/api/App.cs b/src/App/App.Autorest/generated/api/App.cs index 69db5b8d9db7..7d17d647a322 100644 --- a/src/App/App.Autorest/generated/api/App.cs +++ b/src/App/App.Autorest/generated/api/App.cs @@ -637,7 +637,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -689,7 +689,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// /// Certificate to be created or updated /// a delegate that is called when the remote service returns 200 (OK). @@ -751,7 +751,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// /// Certificate to be created or updated /// an instance that will receive events. @@ -811,7 +811,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -862,7 +862,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -911,7 +911,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -2414,7 +2414,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Connected Environment. @@ -2466,7 +2466,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// /// Certificate to be created or updated /// a delegate that is called when the remote service returns 200 (OK). @@ -2528,7 +2528,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// /// Certificate to be created or updated /// an instance that will receive events. @@ -2588,7 +2588,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Connected Environment. @@ -2639,7 +2639,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Connected Environment. @@ -2688,7 +2688,7 @@ public partial class App } } - /// Create a Certificate. + /// Update a Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Connected Environment. @@ -4660,7 +4660,7 @@ public partial class App } } - /// Create an connectedEnvironment. + /// Update an connectedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the connectedEnvironment. @@ -4709,7 +4709,7 @@ public partial class App } } - /// Create an connectedEnvironment. + /// Update an connectedEnvironment. /// /// Configuration details of the connectedEnvironment. /// a delegate that is called when the remote service returns 200 (OK). @@ -4768,7 +4768,7 @@ public partial class App } } - /// Create an connectedEnvironment. + /// Update an connectedEnvironment. /// /// Configuration details of the connectedEnvironment. /// an instance that will receive events. @@ -4825,7 +4825,7 @@ public partial class App } } - /// Create an connectedEnvironment. + /// Update an connectedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the connectedEnvironment. @@ -4873,7 +4873,7 @@ public partial class App } } - /// Create an connectedEnvironment. + /// Update an connectedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the connectedEnvironment. @@ -4919,7 +4919,7 @@ public partial class App } } - /// Create an connectedEnvironment. + /// Update an connectedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the connectedEnvironment. @@ -4993,6 +4993,7 @@ public partial class App // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -5005,7 +5006,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -5145,6 +5149,7 @@ public partial class App // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -5157,7 +5162,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -5283,7 +5291,7 @@ public partial class App } } - /// Create a Dapr Component in a connected environment. + /// Update a Dapr Component in a connected environment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the connected environment. @@ -5335,7 +5343,7 @@ public partial class App } } - /// Create a Dapr Component in a connected environment. + /// Update a Dapr Component in a connected environment. /// /// Configuration details of the Dapr Component. /// a delegate that is called when the remote service returns 200 (OK). @@ -5397,7 +5405,7 @@ public partial class App } } - /// Create a Dapr Component in a connected environment. + /// Update a Dapr Component in a connected environment. /// /// Configuration details of the Dapr Component. /// an instance that will receive events. @@ -5457,7 +5465,7 @@ public partial class App } } - /// Create a Dapr Component in a connected environment. + /// Update a Dapr Component in a connected environment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the connected environment. @@ -5508,7 +5516,7 @@ public partial class App } } - /// Create a Dapr Component in a connected environment. + /// Update a Dapr Component in a connected environment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the connected environment. @@ -5557,7 +5565,7 @@ public partial class App } } - /// Create a Dapr Component in a connected environment. + /// Update a Dapr Component in a connected environment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the connected environment. @@ -7080,6 +7088,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -7092,7 +7101,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -8159,7 +8171,7 @@ public partial class App } } - /// Create storage for a connectedEnvironment. + /// Update storage for a connectedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -8211,7 +8223,7 @@ public partial class App } } - /// Create storage for a connectedEnvironment. + /// Update storage for a connectedEnvironment. /// /// Configuration details of storage. /// a delegate that is called when the remote service returns 200 (OK). @@ -8273,7 +8285,7 @@ public partial class App } } - /// Create storage for a connectedEnvironment. + /// Update storage for a connectedEnvironment. /// /// Configuration details of storage. /// an instance that will receive events. @@ -8333,7 +8345,7 @@ public partial class App } } - /// Create storage for a connectedEnvironment. + /// Update storage for a connectedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -8384,7 +8396,7 @@ public partial class App } } - /// Create storage for a connectedEnvironment. + /// Update storage for a connectedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -8433,7 +8445,7 @@ public partial class App } } - /// Create storage for a connectedEnvironment. + /// Update storage for a connectedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -9805,7 +9817,7 @@ public partial class App } } - /// Create the AuthConfig for a Container App. + /// Update the AuthConfig for a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -9857,7 +9869,7 @@ public partial class App } } - /// Create the AuthConfig for a Container App. + /// Update the AuthConfig for a Container App. /// /// Properties used to create a Container App AuthConfig /// a delegate that is called when the remote service returns 200 (OK). @@ -9919,7 +9931,7 @@ public partial class App } } - /// Create the AuthConfig for a Container App. + /// Update the AuthConfig for a Container App. /// /// Properties used to create a Container App AuthConfig /// an instance that will receive events. @@ -9979,7 +9991,7 @@ public partial class App } } - /// Create the AuthConfig for a Container App. + /// Update the AuthConfig for a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -10030,7 +10042,7 @@ public partial class App } } - /// Create the AuthConfig for a Container App. + /// Update the AuthConfig for a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -10079,7 +10091,7 @@ public partial class App } } - /// Create the AuthConfig for a Container App. + /// Update the AuthConfig for a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -11127,7 +11139,7 @@ public partial class App } } - /// Create a Container App. + /// Update a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -11176,7 +11188,7 @@ public partial class App } } - /// Create a Container App. + /// Update a Container App. /// /// Properties used to create a container app /// a delegate that is called when the remote service returns 200 (OK). @@ -11235,7 +11247,7 @@ public partial class App } } - /// Create a Container App. + /// Update a Container App. /// /// Properties used to create a container app /// an instance that will receive events. @@ -11292,7 +11304,7 @@ public partial class App } } - /// Create a Container App. + /// Update a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -11340,7 +11352,7 @@ public partial class App } } - /// Create a Container App. + /// Update a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -11386,7 +11398,7 @@ public partial class App } } - /// Create a Container App. + /// Update a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -11460,6 +11472,7 @@ public partial class App // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -11472,7 +11485,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -11610,6 +11626,7 @@ public partial class App // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -11622,7 +11639,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -11875,6 +11895,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -11887,7 +11908,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -12701,7 +12725,6 @@ public partial class App /// The name of the resource group. The name is case insensitive. /// Name of the Container App. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 404 (NotFound). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -12709,7 +12732,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerAppsDiagnosticsGetRoot(string subscriptionId, string resourceGroupName, string containerAppName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNotFound, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerAppsDiagnosticsGetRoot(string subscriptionId, string resourceGroupName, string containerAppName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { var apiVersion = @"2023-05-01"; // Constant Parameters @@ -12737,14 +12760,13 @@ public partial class App await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ContainerAppsDiagnosticsGetRoot_Call (request, onOk,onNotFound,onDefault,eventListener,sender); + await this.ContainerAppsDiagnosticsGetRoot_Call (request, onOk,onDefault,eventListener,sender); } } /// Get the properties of a Container App. /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 404 (NotFound). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -12752,7 +12774,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerAppsDiagnosticsGetRootViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNotFound, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerAppsDiagnosticsGetRootViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { var apiVersion = @"2023-05-01"; // Constant Parameters @@ -12792,7 +12814,7 @@ public partial class App await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ContainerAppsDiagnosticsGetRoot_Call (request, onOk,onNotFound,onDefault,eventListener,sender); + await this.ContainerAppsDiagnosticsGetRoot_Call (request, onOk,onDefault,eventListener,sender); } } @@ -12922,11 +12944,6 @@ public partial class App var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerApp.FromJson(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } - case global::System.Net.HttpStatusCode.NotFound: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - throw new Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException(_response); - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } @@ -12960,7 +12977,6 @@ public partial class App /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 404 (NotFound). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -12968,7 +12984,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerAppsDiagnosticsGetRoot_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNotFound, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerAppsDiagnosticsGetRoot_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12990,12 +13006,6 @@ public partial class App await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerApp.FromJson(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } - case global::System.Net.HttpStatusCode.NotFound: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNotFound(_response); - break; - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -13717,7 +13727,6 @@ public partial class App /// The name of the resource group. The name is case insensitive. /// Name of the Container App. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 404 (NotFound). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -13725,7 +13734,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerAppsGet(string subscriptionId, string resourceGroupName, string containerAppName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNotFound, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerAppsGet(string subscriptionId, string resourceGroupName, string containerAppName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { var apiVersion = @"2023-05-01"; // Constant Parameters @@ -13752,7 +13761,7 @@ public partial class App await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ContainerAppsGet_Call (request, onOk,onNotFound,onDefault,eventListener,sender); + await this.ContainerAppsGet_Call (request, onOk,onDefault,eventListener,sender); } } @@ -13761,7 +13770,6 @@ public partial class App /// The name of the resource group. The name is case insensitive. /// Name of the Container App. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 404 (NotFound). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -13769,7 +13777,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerAppsGetAuthToken(string subscriptionId, string resourceGroupName, string containerAppName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNotFound, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerAppsGetAuthToken(string subscriptionId, string resourceGroupName, string containerAppName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { var apiVersion = @"2023-05-01"; // Constant Parameters @@ -13797,14 +13805,13 @@ public partial class App await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ContainerAppsGetAuthToken_Call (request, onOk,onNotFound,onDefault,eventListener,sender); + await this.ContainerAppsGetAuthToken_Call (request, onOk,onDefault,eventListener,sender); } } /// Get auth token for a container app /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 404 (NotFound). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -13812,7 +13819,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerAppsGetAuthTokenViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNotFound, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerAppsGetAuthTokenViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { var apiVersion = @"2023-05-01"; // Constant Parameters @@ -13852,7 +13859,7 @@ public partial class App await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ContainerAppsGetAuthToken_Call (request, onOk,onNotFound,onDefault,eventListener,sender); + await this.ContainerAppsGetAuthToken_Call (request, onOk,onDefault,eventListener,sender); } } @@ -13982,11 +13989,6 @@ public partial class App var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerAppAuthToken.FromJson(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } - case global::System.Net.HttpStatusCode.NotFound: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - throw new Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException(_response); - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } @@ -14020,7 +14022,6 @@ public partial class App /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 404 (NotFound). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -14028,7 +14029,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerAppsGetAuthToken_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNotFound, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerAppsGetAuthToken_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14050,12 +14051,6 @@ public partial class App await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerAppAuthToken.FromJson(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } - case global::System.Net.HttpStatusCode.NotFound: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNotFound(_response); - break; - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -14101,7 +14096,6 @@ public partial class App /// Get the properties of a Container App. /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 404 (NotFound). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -14109,7 +14103,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ContainerAppsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNotFound, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ContainerAppsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { var apiVersion = @"2023-05-01"; // Constant Parameters @@ -14148,7 +14142,7 @@ public partial class App await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ContainerAppsGet_Call (request, onOk,onNotFound,onDefault,eventListener,sender); + await this.ContainerAppsGet_Call (request, onOk,onDefault,eventListener,sender); } } @@ -14274,11 +14268,6 @@ public partial class App var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerApp.FromJson(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } - case global::System.Net.HttpStatusCode.NotFound: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - throw new Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException(_response); - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } @@ -14312,7 +14301,6 @@ public partial class App /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 404 (NotFound). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -14320,7 +14308,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ContainerAppsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNotFound, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ContainerAppsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14342,12 +14330,6 @@ public partial class App await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerApp.FromJson(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } - case global::System.Net.HttpStatusCode.NotFound: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNotFound(_response); - break; - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -17598,7 +17580,7 @@ public partial class App } } - /// Create the SourceControl for a Container App. + /// Update the SourceControl for a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -17650,7 +17632,7 @@ public partial class App } } - /// Create the SourceControl for a Container App. + /// Update the SourceControl for a Container App. /// /// Properties used to create a Container App SourceControl /// a delegate that is called when the remote service returns 200 (OK). @@ -17712,7 +17694,7 @@ public partial class App } } - /// Create the SourceControl for a Container App. + /// Update the SourceControl for a Container App. /// /// Properties used to create a Container App SourceControl /// an instance that will receive events. @@ -17772,7 +17754,7 @@ public partial class App } } - /// Create the SourceControl for a Container App. + /// Update the SourceControl for a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -17823,7 +17805,7 @@ public partial class App } } - /// Create the SourceControl for a Container App. + /// Update the SourceControl for a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -17872,7 +17854,7 @@ public partial class App } } - /// Create the SourceControl for a Container App. + /// Update the SourceControl for a Container App. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Container App. @@ -17949,6 +17931,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -17961,7 +17944,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -18104,6 +18090,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -18116,7 +18103,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -18380,6 +18370,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -18392,7 +18383,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -19412,6 +19406,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -19424,7 +19419,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -19563,6 +19561,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -19575,7 +19574,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -19917,6 +19919,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -19929,7 +19932,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -20068,6 +20074,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -20080,7 +20087,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -20535,6 +20545,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -20547,7 +20558,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -20688,6 +20702,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -20700,7 +20715,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -20829,7 +20847,7 @@ public partial class App } } - /// Create a Dapr Component in a Managed Environment. + /// Update a Dapr Component in a Managed Environment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -20881,7 +20899,7 @@ public partial class App } } - /// Create a Dapr Component in a Managed Environment. + /// Update a Dapr Component in a Managed Environment. /// /// Configuration details of the Dapr Component. /// a delegate that is called when the remote service returns 200 (OK). @@ -20943,7 +20961,7 @@ public partial class App } } - /// Create a Dapr Component in a Managed Environment. + /// Update a Dapr Component in a Managed Environment. /// /// Configuration details of the Dapr Component. /// an instance that will receive events. @@ -21003,7 +21021,7 @@ public partial class App } } - /// Create a Dapr Component in a Managed Environment. + /// Update a Dapr Component in a Managed Environment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -21054,7 +21072,7 @@ public partial class App } } - /// Create a Dapr Component in a Managed Environment. + /// Update a Dapr Component in a Managed Environment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -21103,7 +21121,7 @@ public partial class App } } - /// Create a Dapr Component in a Managed Environment. + /// Update a Dapr Component in a Managed Environment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -22823,7 +22841,7 @@ public partial class App } } - /// Create a Container Apps Job. + /// Update a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Job Name @@ -22872,7 +22890,7 @@ public partial class App } } - /// Create a Container Apps Job. + /// Update a Container Apps Job. /// /// Properties used to create a container apps job /// a delegate that is called when the remote service returns 200 (OK). @@ -22931,7 +22949,7 @@ public partial class App } } - /// Create a Container Apps Job. + /// Update a Container Apps Job. /// /// Properties used to create a container apps job /// an instance that will receive events. @@ -22988,7 +23006,7 @@ public partial class App } } - /// Create a Container Apps Job. + /// Update a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Job Name @@ -23036,7 +23054,7 @@ public partial class App } } - /// Create a Container Apps Job. + /// Update a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Job Name @@ -23082,7 +23100,7 @@ public partial class App } } - /// Create a Container Apps Job. + /// Update a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Job Name @@ -23154,6 +23172,7 @@ public partial class App // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -23166,7 +23185,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -23304,6 +23326,7 @@ public partial class App // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -23316,7 +23339,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -23570,6 +23596,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -23582,7 +23609,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -25649,6 +25679,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -25661,7 +25692,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -25800,6 +25834,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -25812,7 +25847,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -26071,6 +26109,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -26083,7 +26122,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -26430,6 +26472,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -26442,7 +26485,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -26581,6 +26627,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -26593,7 +26640,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -27048,6 +27098,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -27060,7 +27111,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -27201,6 +27255,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -27213,7 +27268,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -27343,14 +27401,13 @@ public partial class App } } - /// Create a Managed Certificate. + /// Update a Managed Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. /// Name of the Managed Certificate. /// Managed Certificate to be created or updated /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 400 (BadRequest). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -27359,7 +27416,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ManagedCertificatesCreateOrUpdate(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName, Microsoft.Azure.PowerShell.Cmdlets.App.Models.IManagedCertificate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onBadRequest, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ManagedCertificatesCreateOrUpdate(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName, Microsoft.Azure.PowerShell.Cmdlets.App.Models.IManagedCertificate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate) { var apiVersion = @"2023-05-01"; // Constant Parameters @@ -27392,15 +27449,14 @@ public partial class App request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ManagedCertificatesCreateOrUpdate_Call (request, onOk,onBadRequest,onDefault,eventListener,sender); + await this.ManagedCertificatesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// Create a Managed Certificate. + /// Update a Managed Certificate. /// /// Managed Certificate to be created or updated /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 400 (BadRequest). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -27409,7 +27465,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ManagedCertificatesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.App.Models.IManagedCertificate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onBadRequest, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task ManagedCertificatesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.App.Models.IManagedCertificate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate) { var apiVersion = @"2023-05-01"; // Constant Parameters @@ -27455,11 +27511,11 @@ public partial class App request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ManagedCertificatesCreateOrUpdate_Call (request, onOk,onBadRequest,onDefault,eventListener,sender); + await this.ManagedCertificatesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// Create a Managed Certificate. + /// Update a Managed Certificate. /// /// Managed Certificate to be created or updated /// an instance that will receive events. @@ -27519,14 +27575,13 @@ public partial class App } } - /// Create a Managed Certificate. + /// Update a Managed Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. /// Name of the Managed Certificate. /// Json string supplied to the ManagedCertificatesCreateOrUpdate operation /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 400 (BadRequest). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -27534,7 +27589,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ManagedCertificatesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onBadRequest, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ManagedCertificatesCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string environmentName, string managedCertificateName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { var apiVersion = @"2023-05-01"; // Constant Parameters @@ -27567,11 +27622,11 @@ public partial class App request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ManagedCertificatesCreateOrUpdate_Call (request, onOk,onBadRequest,onDefault,eventListener,sender); + await this.ManagedCertificatesCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// Create a Managed Certificate. + /// Update a Managed Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -27620,7 +27675,7 @@ public partial class App } } - /// Create a Managed Certificate. + /// Update a Managed Certificate. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Managed Environment. @@ -27697,6 +27752,7 @@ public partial class App // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -27709,7 +27765,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -27790,11 +27849,6 @@ public partial class App var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.App.Models.ManagedCertificate.FromJson(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } - case global::System.Net.HttpStatusCode.BadRequest: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - throw new Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException(_response); - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } @@ -27828,7 +27882,6 @@ public partial class App /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 400 (BadRequest). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -27836,7 +27889,7 @@ public partial class App /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ManagedCertificatesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onBadRequest, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ManagedCertificatesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -27853,6 +27906,7 @@ public partial class App // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -27865,7 +27919,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -27946,12 +28003,6 @@ public partial class App await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.App.Models.ManagedCertificate.FromJson(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } - case global::System.Net.HttpStatusCode.BadRequest: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onBadRequest(_response); - break; - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -29991,7 +30042,7 @@ public partial class App } } - /// Create a Managed Environment used to host container apps. + /// Update a Managed Environment used to host container apps. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -30040,7 +30091,7 @@ public partial class App } } - /// Create a Managed Environment used to host container apps. + /// Update a Managed Environment used to host container apps. /// /// Configuration details of the Environment. /// a delegate that is called when the remote service returns 200 (OK). @@ -30099,7 +30150,7 @@ public partial class App } } - /// Create a Managed Environment used to host container apps. + /// Update a Managed Environment used to host container apps. /// /// Configuration details of the Environment. /// an instance that will receive events. @@ -30156,7 +30207,7 @@ public partial class App } } - /// Create a Managed Environment used to host container apps. + /// Update a Managed Environment used to host container apps. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -30204,7 +30255,7 @@ public partial class App } } - /// Create a Managed Environment used to host container apps. + /// Update a Managed Environment used to host container apps. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -30250,7 +30301,7 @@ public partial class App } } - /// Create a Managed Environment used to host container apps. + /// Update a Managed Environment used to host container apps. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -30324,6 +30375,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -30336,7 +30388,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -30477,6 +30532,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -30489,7 +30545,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -30745,6 +30804,7 @@ public partial class App var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -30757,7 +30817,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -32815,7 +32878,7 @@ public partial class App } } - /// Create storage for a managedEnvironment. + /// Update storage for a managedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -32867,7 +32930,7 @@ public partial class App } } - /// Create storage for a managedEnvironment. + /// Update storage for a managedEnvironment. /// /// Configuration details of storage. /// a delegate that is called when the remote service returns 200 (OK). @@ -32929,7 +32992,7 @@ public partial class App } } - /// Create storage for a managedEnvironment. + /// Update storage for a managedEnvironment. /// /// Configuration details of storage. /// an instance that will receive events. @@ -32989,7 +33052,7 @@ public partial class App } } - /// Create storage for a managedEnvironment. + /// Update storage for a managedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -33040,7 +33103,7 @@ public partial class App } } - /// Create storage for a managedEnvironment. + /// Update storage for a managedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -33089,7 +33152,7 @@ public partial class App } } - /// Create storage for a managedEnvironment. + /// Update storage for a managedEnvironment. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Environment. @@ -34468,6 +34531,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -34480,7 +34544,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -34621,6 +34688,7 @@ public partial class App // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -34633,7 +34701,10 @@ public partial class App if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { location = _response.GetFirstHeader(@"Location"); } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener diff --git a/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_Deactivate.cs b/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_Deactivate.cs index f67cd0b21535..03f07e93d0b7 100644 --- a/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_Deactivate.cs +++ b/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_Deactivate.cs @@ -228,7 +228,24 @@ public DisableAzContainerAppRevision_Deactivate() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -394,6 +411,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_DeactivateViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_DeactivateViaIdentity.cs index 668521296fe9..6d2acbd180db 100644 --- a/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_DeactivateViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_DeactivateViaIdentity.cs @@ -174,7 +174,24 @@ public DisableAzContainerAppRevision_DeactivateViaIdentity() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -364,6 +381,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_DeactivateViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_DeactivateViaIdentityContainerApp.cs index 03cb533b4cf5..88a6b1ea093f 100644 --- a/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_DeactivateViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/DisableAzContainerAppRevision_DeactivateViaIdentityContainerApp.cs @@ -190,7 +190,24 @@ public DisableAzContainerAppRevision_DeactivateViaIdentityContainerApp() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -377,6 +394,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_Activate.cs b/src/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_Activate.cs index 5dcf8109bcf2..2d8048017ea3 100644 --- a/src/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_Activate.cs +++ b/src/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_Activate.cs @@ -228,7 +228,24 @@ public EnableAzContainerAppRevision_Activate() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -394,6 +411,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_ActivateViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_ActivateViaIdentity.cs index f87934858a17..a49c904ac45b 100644 --- a/src/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_ActivateViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_ActivateViaIdentity.cs @@ -174,7 +174,24 @@ public EnableAzContainerAppRevision_ActivateViaIdentity() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -364,6 +381,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_ActivateViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_ActivateViaIdentityContainerApp.cs index 70548125d649..1d7964556460 100644 --- a/src/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_ActivateViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/EnableAzContainerAppRevision_ActivateViaIdentityContainerApp.cs @@ -189,7 +189,24 @@ public EnableAzContainerAppRevision_ActivateViaIdentityContainerApp() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -376,6 +393,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_Get.cs index e399d69851a7..805d74626818 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_GetViaIdentity.cs index 2d6c37c6e35c..20c50626187b 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_GetViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_GetViaIdentityContainerApp.cs index 79624be75038..3304a75a5978 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_GetViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_GetViaIdentityContainerApp.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -368,6 +385,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_List.cs index 93c0f5b7a973..5fc37f5aaa41 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthConfig_List.cs @@ -206,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -380,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthToken_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthToken_Get.cs index c581ea0f4ebd..a6fafc560951 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthToken_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthToken_Get.cs @@ -101,13 +101,6 @@ public partial class GetAzContainerAppAuthToken_Get : global::System.Management. /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -174,16 +167,6 @@ public partial class GetAzContainerAppAuthToken_Get : global::System.Management. partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - /// - /// overrideOnNotFound will be called before the regular onNotFound has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNotFound method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNotFound(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior @@ -217,7 +200,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -369,7 +369,7 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ContainerAppsGetAuthToken(SubscriptionId, ResourceGroupName, ContainerAppName, onOk, onNotFound, onDefault, this, Pipeline); + await this.Client.ContainerAppsGetAuthToken(SubscriptionId, ResourceGroupName, ContainerAppName, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } @@ -394,6 +394,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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). /// @@ -436,30 +451,6 @@ protected override void StopProcessing() } } - /// a delegate that is called when the remote service returns 404 (NotFound). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNotFound(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNotFound(responseMessage, ref _returnNow); - // if overrideOnNotFound has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNotFound - response for 404 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppAuthToken diff --git a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthToken_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthToken_GetViaIdentity.cs index cc6e79ced1e5..7d9b01a8a86b 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthToken_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAuthToken_GetViaIdentity.cs @@ -95,13 +95,6 @@ public partial class GetAzContainerAppAuthToken_GetViaIdentity : global::System. /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -135,16 +128,6 @@ public partial class GetAzContainerAppAuthToken_GetViaIdentity : global::System. partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - /// - /// overrideOnNotFound will be called before the regular onNotFound has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNotFound method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNotFound(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior @@ -178,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -330,7 +330,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.ContainerAppsGetAuthTokenViaIdentity(InputObject.Id, onOk, onNotFound, onDefault, this, Pipeline); + await this.Client.ContainerAppsGetAuthTokenViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); } else { @@ -347,7 +347,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ContainerAppName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.ContainerAppsGetAuthToken(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, onOk, onNotFound, onDefault, this, Pipeline); + await this.Client.ContainerAppsGetAuthToken(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -372,6 +372,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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). /// @@ -414,30 +429,6 @@ protected override void StopProcessing() } } - /// a delegate that is called when the remote service returns 404 (NotFound). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNotFound(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNotFound(responseMessage, ref _returnNow); - // if overrideOnNotFound has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNotFound - response for 404 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppAuthToken diff --git a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAvailableWorkloadProfile_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAvailableWorkloadProfile_Get.cs index c8146c7b314d..529ae8590e25 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAvailableWorkloadProfile_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAvailableWorkloadProfile_Get.cs @@ -192,7 +192,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -366,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppAvailableWorkloadProfile_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAvailableWorkloadProfile_GetViaIdentity.cs index e08694a57352..f966cce93b75 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAvailableWorkloadProfile_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppAvailableWorkloadProfile_GetViaIdentity.cs @@ -167,7 +167,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -354,6 +371,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppBillingMeter_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppBillingMeter_Get.cs index 0c9f42612f90..89d8110081ac 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppBillingMeter_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppBillingMeter_Get.cs @@ -186,7 +186,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -360,6 +377,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppBillingMeter_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppBillingMeter_GetViaIdentity.cs index 10f191df6b62..991cef771b19 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppBillingMeter_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppBillingMeter_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -348,6 +365,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_Get.cs index d1e393d35c04..3aea3eb5c978 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_GetViaIdentity.cs index c9bd682df558..9389607fc3d3 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_GetViaIdentityConnectedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_GetViaIdentityConnectedEnvironment.cs index a837b63d4077..f9831385c7ba 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_GetViaIdentityConnectedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_GetViaIdentityConnectedEnvironment.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -369,6 +386,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_List.cs index 7b4865b209d9..bdb92070d4ee 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvCert_List.cs @@ -206,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -380,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDaprSecret_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDaprSecret_List.cs index 1b46a6a59b26..1f9910c55a56 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDaprSecret_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDaprSecret_List.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -391,6 +408,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_Get.cs index 89a0e2050fe5..3ed6989069f8 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_GetViaIdentity.cs index 3d21598025dd..c0fc5a0f0994 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_GetViaIdentityConnectedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_GetViaIdentityConnectedEnvironment.cs index 94097d32cf38..27be50b0855b 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_GetViaIdentityConnectedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_GetViaIdentityConnectedEnvironment.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -369,6 +386,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_List.cs index b8a4494061df..324d46675aef 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvDapr_List.cs @@ -206,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -380,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_Get.cs index cad93b8ad9b3..b5c723b099b2 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_GetViaIdentity.cs index cffd7b745ad5..3c1dc4633017 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_GetViaIdentityConnectedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_GetViaIdentityConnectedEnvironment.cs index 577be8ff2cb1..654cd3ba6bf3 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_GetViaIdentityConnectedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_GetViaIdentityConnectedEnvironment.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -369,6 +386,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_List.cs index 52658a69af80..3451271a37a8 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnvStorage_List.cs @@ -200,7 +200,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_Get.cs index 97b3d9d82032..155df7bd04a8 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_Get.cs @@ -201,7 +201,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -375,6 +392,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_GetViaIdentity.cs index 8d6c40c48c01..0d7c9acf9974 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -352,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_List.cs index 7ee18141170d..b3fd774d6764 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_List.cs @@ -178,7 +178,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -352,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_List1.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_List1.cs index ce685b8dd11b..a8820bba418d 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_List1.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppConnectedEnv_List1.cs @@ -192,7 +192,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -366,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppCustomHostName_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppCustomHostName_List.cs index 75589adc643e..9e5040abc10d 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppCustomHostName_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppCustomHostName_List.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -391,6 +408,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_Get.cs index 41b677afa353..794529ba497b 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_Get.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -388,6 +405,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_GetViaIdentity.cs index 35ff99aba4bb..cc0726c29a70 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_GetViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_GetViaIdentityContainerApp.cs index 3bbeebfc9160..f9b3064079ee 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_GetViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_GetViaIdentityContainerApp.cs @@ -175,7 +175,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -368,6 +385,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_List.cs index 4ee8dc85fd33..a0204027e024 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticDetector_List.cs @@ -206,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -380,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_Get.cs index 342b1585ff85..c04a96e6962f 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_Get.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -388,6 +405,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_GetViaIdentity.cs index ddcbfe2eaadf..03f96b376ca1 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_GetViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_GetViaIdentityContainerApp.cs index 62f905e01993..7fdc54e08c74 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_GetViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_GetViaIdentityContainerApp.cs @@ -175,7 +175,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -368,6 +385,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_List.cs index fe992216a298..0b196317a0fc 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRevision_List.cs @@ -220,7 +220,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -394,6 +411,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRoot_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRoot_Get.cs index 2f57f4239ac4..a03152ab6ae8 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRoot_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRoot_Get.cs @@ -101,13 +101,6 @@ public partial class GetAzContainerAppDiagnosticRoot_Get : global::System.Manage /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -174,16 +167,6 @@ public partial class GetAzContainerAppDiagnosticRoot_Get : global::System.Manage partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - /// - /// overrideOnNotFound will be called before the regular onNotFound has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNotFound method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNotFound(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior @@ -217,7 +200,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -366,7 +366,7 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ContainerAppsDiagnosticsGetRoot(SubscriptionId, ResourceGroupName, ContainerAppName, onOk, onNotFound, onDefault, this, Pipeline); + await this.Client.ContainerAppsDiagnosticsGetRoot(SubscriptionId, ResourceGroupName, ContainerAppName, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } @@ -391,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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). /// @@ -433,30 +448,6 @@ protected override void StopProcessing() } } - /// a delegate that is called when the remote service returns 404 (NotFound). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNotFound(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNotFound(responseMessage, ref _returnNow); - // if overrideOnNotFound has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNotFound - response for 404 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerApp diff --git a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRoot_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRoot_GetViaIdentity.cs index 3ef79070b216..df90eaae643f 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRoot_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppDiagnosticRoot_GetViaIdentity.cs @@ -95,13 +95,6 @@ public partial class GetAzContainerAppDiagnosticRoot_GetViaIdentity : global::Sy /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -135,16 +128,6 @@ public partial class GetAzContainerAppDiagnosticRoot_GetViaIdentity : global::Sy partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - /// - /// overrideOnNotFound will be called before the regular onNotFound has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNotFound method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNotFound(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior @@ -178,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -327,7 +327,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.ContainerAppsDiagnosticsGetRootViaIdentity(InputObject.Id, onOk, onNotFound, onDefault, this, Pipeline); + await this.Client.ContainerAppsDiagnosticsGetRootViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); } else { @@ -344,7 +344,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ContainerAppName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.ContainerAppsDiagnosticsGetRoot(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, onOk, onNotFound, onDefault, this, Pipeline); + await this.Client.ContainerAppsDiagnosticsGetRoot(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -369,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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). /// @@ -411,30 +426,6 @@ protected override void StopProcessing() } } - /// a delegate that is called when the remote service returns 404 (NotFound). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNotFound(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNotFound(responseMessage, ref _returnNow); - // if overrideOnNotFound has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNotFound - response for 404 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerApp diff --git a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_Job.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_Job.cs index f04bdc0ce686..a52977e215d8 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_Job.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_Job.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_JobViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_JobViaIdentity.cs index c45a55bebf3e..a0a13ba982cb 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_JobViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_JobViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_JobViaIdentityJob.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_JobViaIdentityJob.cs index 5ef682871ca1..786d11d13b03 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_JobViaIdentityJob.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobExecution_JobViaIdentityJob.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -368,6 +385,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobSecret_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobSecret_List.cs index 1707795f1ec3..4a4f2a652b45 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobSecret_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJobSecret_List.cs @@ -200,7 +200,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -377,6 +394,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_Get.cs index ba2fc7f12dbe..3a3234172c83 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_Get.cs @@ -201,7 +201,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -375,6 +392,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_GetViaIdentity.cs index e44f8c437bb8..6af23cd06fa2 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -352,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_List.cs index 860215f6d5c2..9395fc4da90d 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_List.cs @@ -178,7 +178,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -352,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_List1.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_List1.cs index d21630dd229b..6ea0fc0dfebb 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_List1.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppJob_List1.cs @@ -192,7 +192,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -366,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_Get.cs index d2fd5a0123d5..ce203706eb1c 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_GetViaIdentity.cs index 0beb4b4bd7e8..4b4545579d29 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_GetViaIdentityManagedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_GetViaIdentityManagedEnvironment.cs index dac2724ef436..f82c64d52019 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_GetViaIdentityManagedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_GetViaIdentityManagedEnvironment.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -369,6 +386,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_List.cs index 8781f8e21a6c..e94d454f8d8e 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedCert_List.cs @@ -206,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -380,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvAuthToken_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvAuthToken_Get.cs index fa9e8d4f06ec..c10bb4ded7a4 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvAuthToken_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvAuthToken_Get.cs @@ -200,7 +200,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -377,6 +394,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvAuthToken_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvAuthToken_GetViaIdentity.cs index a704f683a7a0..60e91b19c3b5 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvAuthToken_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvAuthToken_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -355,6 +372,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_Get.cs index d458b5712e73..621c2cbbcddd 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_GetViaIdentity.cs index 0e925418433b..0bc9c0dd55d6 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_GetViaIdentityManagedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_GetViaIdentityManagedEnvironment.cs index 4cbe74d05aac..d5accf61a5c1 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_GetViaIdentityManagedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_GetViaIdentityManagedEnvironment.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -369,6 +386,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_List.cs index 051ff7283a88..dbe485d36bf0 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvCert_List.cs @@ -206,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -380,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDaprSecret_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDaprSecret_List.cs index a8992b0b451d..8d262430e996 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDaprSecret_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDaprSecret_List.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -391,6 +408,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_Get.cs index d8657c6fcc2d..75706046acc3 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_GetViaIdentity.cs index f10c0c8600c5..ccc504a1afa8 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_GetViaIdentityManagedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_GetViaIdentityManagedEnvironment.cs index c9cac98bbb8b..f91d5d9292ca 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_GetViaIdentityManagedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_GetViaIdentityManagedEnvironment.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -369,6 +386,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_List.cs index 076552d4f9d5..d8ffd7952d35 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDapr_List.cs @@ -206,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -380,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_Get.cs index 8b869165cc4a..20571c81abdc 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_GetViaIdentity.cs index 28bbad12763d..a011dcc60b10 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_GetViaIdentityManagedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_GetViaIdentityManagedEnvironment.cs index 37d4b515dd84..af52d0e27883 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_GetViaIdentityManagedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_GetViaIdentityManagedEnvironment.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -369,6 +386,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_List.cs index 9a5fe6200d59..f7af4ffc0a43 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticDetector_List.cs @@ -208,7 +208,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -382,6 +399,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticRoot_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticRoot_Get.cs index f25da9320d5c..9cbed65387b9 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticRoot_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticRoot_Get.cs @@ -200,7 +200,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticRoot_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticRoot_GetViaIdentity.cs index 184ecd947e24..1cdafe96506f 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticRoot_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvDiagnosticRoot_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -352,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_Get.cs index 9605cd84132e..6d58f920da82 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_GetViaIdentity.cs index 25488e7ab08c..46b1ed736481 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_GetViaIdentityManagedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_GetViaIdentityManagedEnvironment.cs index 37dd03c4d51d..e596a889c276 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_GetViaIdentityManagedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_GetViaIdentityManagedEnvironment.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -369,6 +386,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_List.cs index 55a21d808dbd..ffd25efab9f9 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvStorage_List.cs @@ -200,7 +200,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvWorkloadProfileState_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvWorkloadProfileState_List.cs index 15519456deb6..05c9563617dd 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvWorkloadProfileState_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnvWorkloadProfileState_List.cs @@ -206,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -380,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_Get.cs index 4a08bf22a382..3d74c37f85db 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_Get.cs @@ -201,7 +201,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -375,6 +392,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_GetViaIdentity.cs index c03c10a57d2d..4fefb9e2afac 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -352,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_List.cs index 9599e428461c..36048115eb4b 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_List.cs @@ -178,7 +178,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -352,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_List1.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_List1.cs index bc1b41d327cb..6a99b9632465 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_List1.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppManagedEnv_List1.cs @@ -192,7 +192,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -366,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_Get.cs index b0577b50af56..93430ed78c16 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_Get.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -403,6 +420,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentity.cs index 239c063a3c70..fc48ac27083f 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -360,6 +377,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentityContainerApp.cs index 79bd168029b5..85de7c08b6b8 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentityContainerApp.cs @@ -190,7 +190,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -382,6 +399,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentityRevision.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentityRevision.cs index 52e2197329f0..16e394fbe739 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentityRevision.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_GetViaIdentityRevision.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -372,6 +389,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_List.cs index bb3248ebbf44..ca14c312729f 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevisionReplica_List.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -388,6 +405,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_Get.cs index ee63e53fbfac..099b77a875ae 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_GetViaIdentity.cs index 044d0ee20b44..f5409608fa6e 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_GetViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_GetViaIdentityContainerApp.cs index fdfb6575f128..622cf0bb3e7c 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_GetViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_GetViaIdentityContainerApp.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -368,6 +385,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_List.cs index e7ac83a9901c..4804a51906e6 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppRevision_List.cs @@ -220,7 +220,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -394,6 +411,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppSecret_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSecret_List.cs index 6e4af81b34aa..4ef4f4f4c41e 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSecret_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSecret_List.cs @@ -200,7 +200,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -377,6 +394,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_Get.cs index a0dcf075048e..bd87cf20d578 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_Get.cs @@ -215,7 +215,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -389,6 +406,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_GetViaIdentity.cs index 472f438e75dc..b50aaf415fc1 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_GetViaIdentity.cs @@ -161,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -356,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_GetViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_GetViaIdentityContainerApp.cs index 2fe043d54b0c..268524c44ed4 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_GetViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_GetViaIdentityContainerApp.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -368,6 +385,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_List.cs index d92ada1cdeb7..7b4fdd03806a 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerAppSourceControl_List.cs @@ -206,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -380,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerApp_Get.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_Get.cs index 805c68e94a04..2b842c703139 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_Get.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_Get.cs @@ -102,13 +102,6 @@ public partial class GetAzContainerApp_Get : global::System.Management.Automatio [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -175,16 +168,6 @@ public partial class GetAzContainerApp_Get : global::System.Management.Automatio partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - /// - /// overrideOnNotFound will be called before the regular onNotFound has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNotFound method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNotFound(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior @@ -218,7 +201,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -367,7 +367,7 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ContainerAppsGet(SubscriptionId, ResourceGroupName, Name, onOk, onNotFound, onDefault, this, Pipeline); + await this.Client.ContainerAppsGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } @@ -392,6 +392,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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). /// @@ -434,30 +449,6 @@ protected override void StopProcessing() } } - /// a delegate that is called when the remote service returns 404 (NotFound). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNotFound(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNotFound(responseMessage, ref _returnNow); - // if overrideOnNotFound has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNotFound - response for 404 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerApp diff --git a/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_GetViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_GetViaIdentity.cs index 409218d6210f..c57ae5a9207c 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_GetViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_GetViaIdentity.cs @@ -95,13 +95,6 @@ public partial class GetAzContainerApp_GetViaIdentity : global::System.Managemen /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -135,16 +128,6 @@ public partial class GetAzContainerApp_GetViaIdentity : global::System.Managemen partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - /// - /// overrideOnNotFound will be called before the regular onNotFound has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onNotFound method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnNotFound(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior @@ -178,7 +161,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -327,7 +327,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.ContainerAppsGetViaIdentity(InputObject.Id, onOk, onNotFound, onDefault, this, Pipeline); + await this.Client.ContainerAppsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); } else { @@ -344,7 +344,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ContainerAppName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.ContainerAppsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, onOk, onNotFound, onDefault, this, Pipeline); + await this.Client.ContainerAppsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -369,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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). /// @@ -411,30 +426,6 @@ protected override void StopProcessing() } } - /// a delegate that is called when the remote service returns 404 (NotFound). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onNotFound(global::System.Net.Http.HttpResponseMessage responseMessage) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnNotFound(responseMessage, ref _returnNow); - // if overrideOnNotFound has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onNotFound - response for 404 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } - } - /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerApp diff --git a/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_List.cs index dfc53ef3e810..fc3b316a39bf 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_List.cs @@ -178,7 +178,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -352,6 +369,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzContainerApp_List1.cs b/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_List1.cs index 8471b2872dd4..04c3654f4664 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_List1.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzContainerApp_List1.cs @@ -192,7 +192,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -366,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/GetAzOperation_List.cs b/src/App/App.Autorest/generated/cmdlets/GetAzOperation_List.cs index 258c6d1cbe22..749b83136d11 100644 --- a/src/App/App.Autorest/generated/cmdlets/GetAzOperation_List.cs +++ b/src/App/App.Autorest/generated/cmdlets/GetAzOperation_List.cs @@ -160,7 +160,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -331,6 +348,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateExpanded.cs index 5a4e0d8f6623..22eff982c9b5 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateExpanded.cs @@ -446,7 +446,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -620,6 +637,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaIdentityContainerAppExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaIdentityContainerAppExpanded.cs index aaf08f108ae9..59f7f1341bfa 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaIdentityContainerAppExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaIdentityContainerAppExpanded.cs @@ -407,7 +407,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -603,6 +620,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaIdentityExpanded.cs index 503620fb9453..a0fd54e75498 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaIdentityExpanded.cs @@ -392,7 +392,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -590,6 +607,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaJsonFilePath.cs index b26f25880ac6..c2df242f22c4 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaJsonString.cs index ab593dc917f1..17b048cbda57 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppAuthConfig_CreateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateExpanded.cs index b490442f1ed6..75b98434c562 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateExpanded.cs @@ -119,10 +119,10 @@ public string InputFile public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", @@ -277,7 +277,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -451,6 +468,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaIdentityConnectedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaIdentityConnectedEnvironmentExpanded.cs index 9e38fea2eac6..4ac591154ff8 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaIdentityConnectedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaIdentityConnectedEnvironmentExpanded.cs @@ -113,10 +113,10 @@ public string InputFile public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", @@ -238,7 +238,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -434,6 +451,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaIdentityExpanded.cs index cb78303d2411..366b93b5a907 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaIdentityExpanded.cs @@ -113,10 +113,10 @@ public string InputFile public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", @@ -223,7 +223,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -421,6 +438,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaJsonFilePath.cs index b09dbeb6a217..91d45e43c098 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaJsonString.cs index 494ad6e2a6d8..953f6d7476f3 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvCert_CreateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateExpanded.cs index b796f0b5f029..bbfc03fc3da1 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateExpanded.cs @@ -309,7 +309,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +500,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaIdentityConnectedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaIdentityConnectedEnvironmentExpanded.cs index a8e90936629d..e316784c1d28 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaIdentityConnectedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaIdentityConnectedEnvironmentExpanded.cs @@ -270,7 +270,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +483,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaIdentityExpanded.cs index afb89cd1e8f4..0c4fa6d47969 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaIdentityExpanded.cs @@ -255,7 +255,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -453,6 +470,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaJsonFilePath.cs index 516b6fa663db..cae2d9e9356f 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaJsonString.cs index 0a24565eab92..a19030408d64 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvDapr_CreateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateExpanded.cs index 41261e337f39..f6dc2410ad69 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateExpanded.cs @@ -263,7 +263,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -437,6 +454,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaIdentityConnectedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaIdentityConnectedEnvironmentExpanded.cs index f4b89d31366b..da439aa74209 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaIdentityConnectedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaIdentityConnectedEnvironmentExpanded.cs @@ -224,7 +224,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -420,6 +437,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaIdentityExpanded.cs index cb28bf83d1c7..38a86d32c5a7 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaIdentityExpanded.cs @@ -209,7 +209,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -408,6 +425,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaJsonFilePath.cs index 04de1e3eee09..3380ec776f74 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaJsonString.cs index ec8e3e342137..316f4c04a475 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnvStorage_CreateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateExpanded.cs index 64e4fe3c27d2..833f5a06d782 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateExpanded.cs @@ -358,7 +358,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppConnected /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -578,6 +595,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaIdentityExpanded.cs index 37753b5334a6..e4a1573e1d9b 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaIdentityExpanded.cs @@ -315,7 +315,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppConnected /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -555,6 +572,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaJsonFilePath.cs index 4ef581f8ef81..026f109e8167 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaJsonFilePath.cs @@ -254,7 +254,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppConnected /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +491,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaJsonString.cs index f6172fa0e1fd..6c33ed19bfb6 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppConnectedEnv_CreateViaJsonString.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppConnected /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateExpanded.cs index 7b4a391f77e8..7f55388fe966 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateExpanded.cs @@ -188,6 +188,7 @@ public partial class NewAzContainerAppJob_CreateExpanded : global::System.Manage Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] public string IdentityType { get => _jobEnvelopeBody.IdentityType ?? null; set => _jobEnvelopeBody.IdentityType = value; } @@ -205,6 +206,7 @@ public partial class NewAzContainerAppJob_CreateExpanded : global::System.Manage Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", SerializedName = @"userAssignedIdentities", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityUserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityUserAssignedIdentity will be renamed to UserAssignedIdentity. And its type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _jobEnvelopeBody.IdentityUserAssignedIdentity ?? null /* object */; set => _jobEnvelopeBody.IdentityUserAssignedIdentity = value; } /// Accessor for our copy of the InvocationInfo. @@ -534,7 +536,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppJob_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -754,6 +773,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaIdentityExpanded.cs index 5f0bba8a0e2f..62fc986c71a1 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaIdentityExpanded.cs @@ -188,6 +188,7 @@ public partial class NewAzContainerAppJob_CreateViaIdentityExpanded : global::Sy Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] public string IdentityType { get => _jobEnvelopeBody.IdentityType ?? null; set => _jobEnvelopeBody.IdentityType = value; } @@ -205,6 +206,7 @@ public partial class NewAzContainerAppJob_CreateViaIdentityExpanded : global::Sy Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", SerializedName = @"userAssignedIdentities", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityUserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityUserAssignedIdentity will be renamed to UserAssignedIdentity. And its type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _jobEnvelopeBody.IdentityUserAssignedIdentity ?? null /* object */; set => _jobEnvelopeBody.IdentityUserAssignedIdentity = value; } /// Backing field for property. @@ -491,7 +493,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppJob_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -731,6 +750,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaJsonFilePath.cs index 0cb1c5108cf2..9f04a49a4d9f 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaJsonFilePath.cs @@ -254,7 +254,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppJob_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +491,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaJsonString.cs index 844a5502ef9e..40b8d750c471 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppJob_CreateViaJsonString.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppJob_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateExpanded.cs index 86fe017a6988..f481a86ad2c8 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateExpanded.cs @@ -116,10 +116,10 @@ public partial class NewAzContainerAppManagedCert_CreateExpanded : global::Syste public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", @@ -157,13 +157,6 @@ public partial class NewAzContainerAppManagedCert_CreateExpanded : global::Syste [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -241,16 +234,6 @@ public partial class NewAzContainerAppManagedCert_CreateExpanded : global::Syste PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrackedResourceTags) })] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrackedResourceTags Tag { get => _managedCertificateEnvelopeBody.Tag ?? null /* object */; set => _managedCertificateEnvelopeBody.Tag = value; } - /// - /// overrideOnBadRequest will be called before the regular onBadRequest has been processed, allowing customization - /// of what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onBadRequest method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -321,7 +304,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppManagedCe /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,7 +517,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ManagedCertificatesCreateOrUpdate(SubscriptionId, ResourceGroupName, EnvName, Name, _managedCertificateEnvelopeBody, onOk, onBadRequest, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); + await this.Client.ManagedCertificatesCreateOrUpdate(SubscriptionId, ResourceGroupName, EnvName, Name, _managedCertificateEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException urexception) @@ -541,28 +541,19 @@ protected override void StopProcessing() base.StopProcessing(); } - /// a delegate that is called when the remote service returns 400 (BadRequest). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage) + /// + new protected void WriteObject(object sendToPipeline) { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnBadRequest(responseMessage, ref _returnNow); - // if overrideOnBadRequest has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onBadRequest - response for 400 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); } /// diff --git a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaIdentityExpanded.cs index 69ebe1c4503e..b0711d835b3e 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaIdentityExpanded.cs @@ -110,10 +110,10 @@ public partial class NewAzContainerAppManagedCert_CreateViaIdentityExpanded : gl public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", @@ -136,13 +136,6 @@ public partial class NewAzContainerAppManagedCert_CreateViaIdentityExpanded : gl [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -187,16 +180,6 @@ public partial class NewAzContainerAppManagedCert_CreateViaIdentityExpanded : gl PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrackedResourceTags) })] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrackedResourceTags Tag { get => _managedCertificateEnvelopeBody.Tag ?? null /* object */; set => _managedCertificateEnvelopeBody.Tag = value; } - /// - /// overrideOnBadRequest will be called before the regular onBadRequest has been processed, allowing customization - /// of what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onBadRequest method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -263,7 +246,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppManagedCe /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +461,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.ManagedCertificatesCreateOrUpdateViaIdentity(InputObject.Id, _managedCertificateEnvelopeBody, onOk, onBadRequest, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); + await this.Client.ManagedCertificatesCreateOrUpdateViaIdentity(InputObject.Id, _managedCertificateEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); } else { @@ -482,7 +482,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ManagedCertificateName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.ManagedCertificatesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EnvironmentName ?? null, InputObject.ManagedCertificateName ?? null, _managedCertificateEnvelopeBody, onOk, onBadRequest, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); + await this.Client.ManagedCertificatesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EnvironmentName ?? null, InputObject.ManagedCertificateName ?? null, _managedCertificateEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -507,28 +507,19 @@ protected override void StopProcessing() base.StopProcessing(); } - /// a delegate that is called when the remote service returns 400 (BadRequest). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage) + /// + new protected void WriteObject(object sendToPipeline) { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnBadRequest(responseMessage, ref _returnNow); - // if overrideOnBadRequest has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onBadRequest - response for 400 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); } /// diff --git a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaIdentityManagedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaIdentityManagedEnvironmentExpanded.cs index a632ef6627ca..35af417aab4e 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaIdentityManagedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaIdentityManagedEnvironmentExpanded.cs @@ -102,10 +102,10 @@ public partial class NewAzContainerAppManagedCert_CreateViaIdentityManagedEnviro public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", @@ -151,13 +151,6 @@ public partial class NewAzContainerAppManagedCert_CreateViaIdentityManagedEnviro [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -202,16 +195,6 @@ public partial class NewAzContainerAppManagedCert_CreateViaIdentityManagedEnviro PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrackedResourceTags) })] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrackedResourceTags Tag { get => _managedCertificateEnvelopeBody.Tag ?? null /* object */; set => _managedCertificateEnvelopeBody.Tag = value; } - /// - /// overrideOnBadRequest will be called before the regular onBadRequest has been processed, allowing customization - /// of what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onBadRequest method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -281,7 +264,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppManagedCe /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,7 +481,7 @@ protected override void ProcessRecord() if (ManagedEnvironmentInputObject?.Id != null) { this.ManagedEnvironmentInputObject.Id += $"/managedCertificates/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; - await this.Client.ManagedCertificatesCreateOrUpdateViaIdentity(ManagedEnvironmentInputObject.Id, _managedCertificateEnvelopeBody, onOk, onBadRequest, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); + await this.Client.ManagedCertificatesCreateOrUpdateViaIdentity(ManagedEnvironmentInputObject.Id, _managedCertificateEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); } else { @@ -498,7 +498,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("ManagedEnvironmentInputObject has null value for ManagedEnvironmentInputObject.EnvironmentName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ManagedEnvironmentInputObject) ); } - await this.Client.ManagedCertificatesCreateOrUpdate(ManagedEnvironmentInputObject.SubscriptionId ?? null, ManagedEnvironmentInputObject.ResourceGroupName ?? null, ManagedEnvironmentInputObject.EnvironmentName ?? null, Name, _managedCertificateEnvelopeBody, onOk, onBadRequest, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); + await this.Client.ManagedCertificatesCreateOrUpdate(ManagedEnvironmentInputObject.SubscriptionId ?? null, ManagedEnvironmentInputObject.ResourceGroupName ?? null, ManagedEnvironmentInputObject.EnvironmentName ?? null, Name, _managedCertificateEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -523,28 +523,19 @@ protected override void StopProcessing() base.StopProcessing(); } - /// a delegate that is called when the remote service returns 400 (BadRequest). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage) + /// + new protected void WriteObject(object sendToPipeline) { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnBadRequest(responseMessage, ref _returnNow); - // if overrideOnBadRequest has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onBadRequest - response for 400 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); } /// diff --git a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaJsonFilePath.cs index 99d02726b2cf..70b52e8105a1 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaJsonFilePath.cs @@ -145,13 +145,6 @@ public partial class NewAzContainerAppManagedCert_CreateViaJsonFilePath : global [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -206,16 +199,6 @@ public partial class NewAzContainerAppManagedCert_CreateViaJsonFilePath : global [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// - /// overrideOnBadRequest will be called before the regular onBadRequest has been processed, allowing customization - /// of what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onBadRequest method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -286,7 +269,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppManagedCe /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,7 +482,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ManagedCertificatesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, EnvName, Name, _jsonString, onOk, onBadRequest, onDefault, this, Pipeline); + await this.Client.ManagedCertificatesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, EnvName, Name, _jsonString, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException urexception) @@ -506,28 +506,19 @@ protected override void StopProcessing() base.StopProcessing(); } - /// a delegate that is called when the remote service returns 400 (BadRequest). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage) + /// + new protected void WriteObject(object sendToPipeline) { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnBadRequest(responseMessage, ref _returnNow); - // if overrideOnBadRequest has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onBadRequest - response for 400 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); } /// diff --git a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaJsonString.cs index 50c61c9d0b0b..84ad901b2f0a 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedCert_CreateViaJsonString.cs @@ -143,13 +143,6 @@ public partial class NewAzContainerAppManagedCert_CreateViaJsonString : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// - /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter PassThru { get; set; } - /// /// The instance of the that the remote call will use. /// @@ -204,16 +197,6 @@ public partial class NewAzContainerAppManagedCert_CreateViaJsonString : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// - /// overrideOnBadRequest will be called before the regular onBadRequest has been processed, allowing customization - /// of what happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// /// Determines if the rest of the onBadRequest method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -284,7 +267,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppManagedCe /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,7 +480,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ManagedCertificatesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, EnvName, Name, _jsonString, onOk, onBadRequest, onDefault, this, Pipeline); + await this.Client.ManagedCertificatesCreateOrUpdateViaJsonString(SubscriptionId, ResourceGroupName, EnvName, Name, _jsonString, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException urexception) @@ -504,28 +504,19 @@ protected override void StopProcessing() base.StopProcessing(); } - /// a delegate that is called when the remote service returns 400 (BadRequest). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onBadRequest(global::System.Net.Http.HttpResponseMessage responseMessage) + /// + new protected void WriteObject(object sendToPipeline) { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnBadRequest(responseMessage, ref _returnNow); - // if overrideOnBadRequest has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onBadRequest - response for 400 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) - { - WriteObject(true); - } - } + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); } /// diff --git a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateExpanded.cs index aab9021a56d3..7f44f0546389 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateExpanded.cs @@ -119,10 +119,10 @@ public string InputFile public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", @@ -277,7 +277,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -451,6 +468,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaIdentityExpanded.cs index e17ce6666811..6eb1faed7953 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaIdentityExpanded.cs @@ -113,10 +113,10 @@ public string InputFile public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", @@ -223,7 +223,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -421,6 +438,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaIdentityManagedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaIdentityManagedEnvironmentExpanded.cs index 5bdded2427d5..fdb189d78455 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaIdentityManagedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaIdentityManagedEnvironmentExpanded.cs @@ -105,10 +105,10 @@ public string InputFile public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// The geo-location where the resource lives - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Category(global::Microsoft.Azure.PowerShell.Cmdlets.App.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Description = @"The geo-location where the resource lives", SerializedName = @"location", @@ -238,7 +238,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -434,6 +451,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaJsonFilePath.cs index b3e800edd271..24d8411a11f4 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaJsonString.cs index e64bb8cb69ae..6e80b009d195 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvCert_CreateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateExpanded.cs index 4d688866f576..abd99979f93d 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateExpanded.cs @@ -309,7 +309,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +500,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaIdentityExpanded.cs index f70876610dde..bed3031ab3fa 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaIdentityExpanded.cs @@ -255,7 +255,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -453,6 +470,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaIdentityManagedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaIdentityManagedEnvironmentExpanded.cs index eae56efacc38..21066de0309f 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaIdentityManagedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaIdentityManagedEnvironmentExpanded.cs @@ -270,7 +270,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +483,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaJsonFilePath.cs index 5698b70c5ef0..fe9d69bd78bb 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaJsonString.cs index d9dc268dcddf..39d2238f9e51 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvDapr_CreateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateExpanded.cs index 5a98e51f1628..f08787ef4db9 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateExpanded.cs @@ -263,7 +263,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -437,6 +454,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaIdentityExpanded.cs index c3410d323a35..6688907e1f08 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaIdentityExpanded.cs @@ -209,7 +209,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -407,6 +424,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaIdentityManagedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaIdentityManagedEnvironmentExpanded.cs index e57fb8748dc3..47132f79210e 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaIdentityManagedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaIdentityManagedEnvironmentExpanded.cs @@ -224,7 +224,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -420,6 +437,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaJsonFilePath.cs index 7bf101f1de1e..25a4a2d6bfdd 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaJsonString.cs index de3a7ff3112a..ba6fe313bb4b 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnvStorage_CreateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateExpanded.cs index a39ab7d7d560..27ed35e1137e 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateExpanded.cs @@ -494,7 +494,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppManagedEn /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -714,6 +731,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaIdentityExpanded.cs index fc9438006486..310c565a96b1 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaIdentityExpanded.cs @@ -451,7 +451,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppManagedEn /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -691,6 +708,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaJsonFilePath.cs index 960f0d78ca54..5b29d72617de 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaJsonFilePath.cs @@ -254,7 +254,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppManagedEn /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +491,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaJsonString.cs index ac776e092697..e5013097c263 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppManagedEnv_CreateViaJsonString.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppManagedEn /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateExpanded.cs index dc5812dae793..4f31ccf20236 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateExpanded.cs @@ -443,7 +443,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppSourceCon /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -663,6 +680,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaIdentityContainerAppExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaIdentityContainerAppExpanded.cs index af001318514c..0080d2bf769c 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaIdentityContainerAppExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaIdentityContainerAppExpanded.cs @@ -403,7 +403,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppSourceCon /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -645,6 +662,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaIdentityExpanded.cs index 9b38d7e1e2f6..04ef9a7f361b 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaIdentityExpanded.cs @@ -387,7 +387,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppSourceCon /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -631,6 +648,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaJsonFilePath.cs index 6365f58e1416..6975a25dde86 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaJsonFilePath.cs @@ -269,7 +269,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppSourceCon /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +506,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaJsonString.cs index 081c6fff1918..8ce762b4168e 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerAppSourceControl_CreateViaJsonString.cs @@ -267,7 +267,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerAppSourceCon /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +504,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateExpanded.cs index 329cc41e1e84..942ccd30a8d6 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateExpanded.cs @@ -140,6 +140,7 @@ public partial class NewAzContainerApp_CreateExpanded : global::System.Managemen Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] public string IdentityType { get => _containerAppEnvelopeBody.IdentityType ?? null; set => _containerAppEnvelopeBody.IdentityType = value; } @@ -157,6 +158,7 @@ public partial class NewAzContainerApp_CreateExpanded : global::System.Managemen Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", SerializedName = @"userAssignedIdentities", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityUserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityUserAssignedIdentity will be renamed to UserAssignedIdentity. And its type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _containerAppEnvelopeBody.IdentityUserAssignedIdentity ?? null /* object */; set => _containerAppEnvelopeBody.IdentityUserAssignedIdentity = value; } /// Accessor for our copy of the InvocationInfo. @@ -485,7 +487,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerApp_CreateEx /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -705,6 +724,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaIdentityExpanded.cs index b11d4ce11cf4..54ab78fb7001 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaIdentityExpanded.cs @@ -140,6 +140,7 @@ public partial class NewAzContainerApp_CreateViaIdentityExpanded : global::Syste Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] public string IdentityType { get => _containerAppEnvelopeBody.IdentityType ?? null; set => _containerAppEnvelopeBody.IdentityType = value; } @@ -157,6 +158,7 @@ public partial class NewAzContainerApp_CreateViaIdentityExpanded : global::Syste Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", SerializedName = @"userAssignedIdentities", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityUserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityUserAssignedIdentity will be renamed to UserAssignedIdentity. And its type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _containerAppEnvelopeBody.IdentityUserAssignedIdentity ?? null /* object */; set => _containerAppEnvelopeBody.IdentityUserAssignedIdentity = value; } /// Backing field for property. @@ -442,7 +444,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerApp_CreateVi /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -682,6 +701,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaJsonFilePath.cs index 36a523bee1c0..c0673525084c 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaJsonFilePath.cs @@ -254,7 +254,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerApp_CreateVi /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +491,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaJsonString.cs index eecda2550225..43721402aacd 100644 --- a/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/NewAzContainerApp_CreateViaJsonString.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.NewAzContainerApp_CreateVi /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_Delete.cs index 2d7140913bbd..1d3350c1acb1 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_Delete.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_DeleteViaIdentity.cs index c6b48d6d6f15..a05891a32eda 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_DeleteViaIdentity.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_DeleteViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_DeleteViaIdentityContainerApp.cs index ded517a13547..341b1137a7fe 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_DeleteViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppAuthConfig_DeleteViaIdentityContainerApp.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -386,6 +403,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_Delete.cs index 6e6adb935987..6c84148e4a85 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_Delete.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_DeleteViaIdentity.cs index 30e21fe19bd9..3ae032f42065 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_DeleteViaIdentity.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_DeleteViaIdentityConnectedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_DeleteViaIdentityConnectedEnvironment.cs index bba10a75b4be..c477f98a2200 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_DeleteViaIdentityConnectedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvCert_DeleteViaIdentityConnectedEnvironment.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_Delete.cs index 13c40bd7abb6..ee00b1a8feab 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_Delete.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_DeleteViaIdentity.cs index d2e7a6b4cf9d..dcb3867fca13 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_DeleteViaIdentity.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_DeleteViaIdentityConnectedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_DeleteViaIdentityConnectedEnvironment.cs index 36a9d2aae0e4..20dbf999e8bc 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_DeleteViaIdentityConnectedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvDapr_DeleteViaIdentityConnectedEnvironment.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_Delete.cs index afb5dc529c57..8b32d04844ea 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_Delete.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_DeleteViaIdentity.cs index 8998984ad835..7ba4babd785a 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_DeleteViaIdentity.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_DeleteViaIdentityConnectedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_DeleteViaIdentityConnectedEnvironment.cs index a786f7700dc2..eb175efadebe 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_DeleteViaIdentityConnectedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnvStorage_DeleteViaIdentityConnectedEnvironment.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnv_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnv_Delete.cs index 46d88f50453f..c77af8c9f3bd 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnv_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnv_Delete.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.RemoveAzContainerAppConnec /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnv_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnv_DeleteViaIdentity.cs index 82617da1a1f1..31d96e28c7bd 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnv_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppConnectedEnv_DeleteViaIdentity.cs @@ -209,7 +209,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.RemoveAzContainerAppConnec /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -449,6 +466,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppJob_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppJob_Delete.cs index 8dc3eacd121c..b89999d191db 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppJob_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppJob_Delete.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.RemoveAzContainerAppJob_De /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppJob_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppJob_DeleteViaIdentity.cs index e136af84d19d..a4932084218b 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppJob_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppJob_DeleteViaIdentity.cs @@ -209,7 +209,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.RemoveAzContainerAppJob_De /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -449,6 +466,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_Delete.cs index 3eaf849322cb..a6f62d41a497 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_Delete.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_DeleteViaIdentity.cs index 38870af0b862..64baba497fbb 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_DeleteViaIdentity.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_DeleteViaIdentityManagedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_DeleteViaIdentityManagedEnvironment.cs index 4a1f10b9a64b..80fa888fb5e8 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_DeleteViaIdentityManagedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedCert_DeleteViaIdentityManagedEnvironment.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_Delete.cs index daec7307f621..a0d5b5cac618 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_Delete.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_DeleteViaIdentity.cs index 7e60a1aa0385..1f2a456d7d87 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_DeleteViaIdentity.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_DeleteViaIdentityManagedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_DeleteViaIdentityManagedEnvironment.cs index 46cd9c1647e5..fd0a403c6c43 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_DeleteViaIdentityManagedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvCert_DeleteViaIdentityManagedEnvironment.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_Delete.cs index 011abaec6ddc..a4f9a4822bb7 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_Delete.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_DeleteViaIdentity.cs index 8bf7c934b982..5b66ca021d4c 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_DeleteViaIdentity.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_DeleteViaIdentityManagedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_DeleteViaIdentityManagedEnvironment.cs index 1c41d1b979db..8a1dd86d6c7f 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_DeleteViaIdentityManagedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvDapr_DeleteViaIdentityManagedEnvironment.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_Delete.cs index 75e8c969aede..1fbc8ad6fe84 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_Delete.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_DeleteViaIdentity.cs index ec8b1c91a0b2..87cdc05c820a 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_DeleteViaIdentity.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_DeleteViaIdentityManagedEnvironment.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_DeleteViaIdentityManagedEnvironment.cs index 5e7fee19b12f..eba489a50d50 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_DeleteViaIdentityManagedEnvironment.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnvStorage_DeleteViaIdentityManagedEnvironment.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnv_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnv_Delete.cs index 4c019e96f914..800bc2221266 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnv_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnv_Delete.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.RemoveAzContainerAppManage /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnv_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnv_DeleteViaIdentity.cs index ef9c80386eb1..cc65bb95adc8 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnv_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerAppManagedEnv_DeleteViaIdentity.cs @@ -209,7 +209,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.RemoveAzContainerAppManage /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -449,6 +466,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerApp_Delete.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerApp_Delete.cs index a8435a31ce49..0de8525d86b3 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerApp_Delete.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerApp_Delete.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.RemoveAzContainerApp_Delet /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RemoveAzContainerApp_DeleteViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerApp_DeleteViaIdentity.cs index dad7b6cf3fc5..571c99740324 100644 --- a/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerApp_DeleteViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RemoveAzContainerApp_DeleteViaIdentity.cs @@ -209,7 +209,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.RemoveAzContainerApp_Delet /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -449,6 +466,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_Restart.cs b/src/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_Restart.cs index 1a054785e755..f0c1aeba9f32 100644 --- a/src/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_Restart.cs +++ b/src/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_Restart.cs @@ -220,7 +220,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -394,6 +411,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_RestartViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_RestartViaIdentity.cs index cecc6cd8a137..90e64068c307 100644 --- a/src/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_RestartViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_RestartViaIdentity.cs @@ -166,7 +166,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -364,6 +381,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_RestartViaIdentityContainerApp.cs b/src/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_RestartViaIdentityContainerApp.cs index 5d78c09b0562..3e454ca40122 100644 --- a/src/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_RestartViaIdentityContainerApp.cs +++ b/src/App/App.Autorest/generated/cmdlets/RestartAzContainerAppRevision_RestartViaIdentityContainerApp.cs @@ -181,7 +181,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -376,6 +393,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_Start.cs b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_Start.cs index 5f6464189217..a54d67bb41cb 100644 --- a/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_Start.cs +++ b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_Start.cs @@ -254,7 +254,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StartAzContainerAppJob_Sta /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +491,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartExpanded.cs b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartExpanded.cs index eff188be05b2..a633d5a2111a 100644 --- a/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartExpanded.cs @@ -267,7 +267,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StartAzContainerAppJob_Sta /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +504,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaIdentity.cs index 824e24b8b43c..789ce136b254 100644 --- a/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaIdentity.cs @@ -211,7 +211,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StartAzContainerAppJob_Sta /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -451,6 +468,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaIdentityExpanded.cs index 22f3612d6081..56704a43c5f7 100644 --- a/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaIdentityExpanded.cs @@ -224,7 +224,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StartAzContainerAppJob_Sta /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -464,6 +481,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaJsonFilePath.cs index b5ba6f6d7288..63436d19218b 100644 --- a/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaJsonFilePath.cs @@ -254,7 +254,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StartAzContainerAppJob_Sta /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +491,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaJsonString.cs index 9900425c839c..1661ad966d88 100644 --- a/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/StartAzContainerAppJob_StartViaJsonString.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StartAzContainerAppJob_Sta /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StartAzContainerApp_Start.cs b/src/App/App.Autorest/generated/cmdlets/StartAzContainerApp_Start.cs index be9d450c9639..b642301a1e87 100644 --- a/src/App/App.Autorest/generated/cmdlets/StartAzContainerApp_Start.cs +++ b/src/App/App.Autorest/generated/cmdlets/StartAzContainerApp_Start.cs @@ -237,7 +237,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StartAzContainerApp_Start /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -457,6 +474,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StartAzContainerApp_StartViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/StartAzContainerApp_StartViaIdentity.cs index 329bd5f5249e..6644e41e8d73 100644 --- a/src/App/App.Autorest/generated/cmdlets/StartAzContainerApp_StartViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/StartAzContainerApp_StartViaIdentity.cs @@ -194,7 +194,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StartAzContainerApp_StartV /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -434,6 +451,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_Stop.cs b/src/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_Stop.cs index 44c3d41125b2..942f3d46b51b 100644 --- a/src/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_Stop.cs +++ b/src/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_Stop.cs @@ -257,7 +257,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StopAzContainerAppJobExecu /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -477,6 +494,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_StopViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_StopViaIdentity.cs index 7eb387698d7a..9ed4f4ec4c3f 100644 --- a/src/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_StopViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_StopViaIdentity.cs @@ -199,7 +199,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StopAzContainerAppJobExecu /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -443,6 +460,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_StopViaIdentityJob.cs b/src/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_StopViaIdentityJob.cs index d34e045ff96e..c544f68e9d8e 100644 --- a/src/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_StopViaIdentityJob.cs +++ b/src/App/App.Autorest/generated/cmdlets/StopAzContainerAppJobExecution_StopViaIdentityJob.cs @@ -215,7 +215,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StopAzContainerAppJobExecu /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -456,6 +473,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StopAzContainerApp_Stop.cs b/src/App/App.Autorest/generated/cmdlets/StopAzContainerApp_Stop.cs index bcc4958abd13..8afb27a48692 100644 --- a/src/App/App.Autorest/generated/cmdlets/StopAzContainerApp_Stop.cs +++ b/src/App/App.Autorest/generated/cmdlets/StopAzContainerApp_Stop.cs @@ -237,7 +237,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StopAzContainerApp_Stop Cl /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -457,6 +474,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/StopAzContainerApp_StopViaIdentity.cs b/src/App/App.Autorest/generated/cmdlets/StopAzContainerApp_StopViaIdentity.cs index c603c7f44ce1..4ec57370f373 100644 --- a/src/App/App.Autorest/generated/cmdlets/StopAzContainerApp_StopViaIdentity.cs +++ b/src/App/App.Autorest/generated/cmdlets/StopAzContainerApp_StopViaIdentity.cs @@ -194,7 +194,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.StopAzContainerApp_StopVia /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -434,6 +451,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_Check.cs b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_Check.cs index 770295fb956f..e8d22cad0974 100644 --- a/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_Check.cs +++ b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_Check.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -388,6 +405,21 @@ public TestAzContainerAppConnectedEnvNameAvailability_Check() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckExpanded.cs b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckExpanded.cs index a51372b1c6f2..dd21a5607fbf 100644 --- a/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckExpanded.cs @@ -225,7 +225,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -399,6 +416,21 @@ public TestAzContainerAppConnectedEnvNameAvailability_CheckExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonFilePath.cs index 27eec128ca67..86388b34df8c 100644 --- a/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonFilePath.cs @@ -216,7 +216,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -391,6 +408,21 @@ public TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonFilePath() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonString.cs index c9ce887f4a81..054e4e58699a 100644 --- a/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonString.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -389,6 +406,21 @@ public TestAzContainerAppConnectedEnvNameAvailability_CheckViaJsonString() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_Check.cs b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_Check.cs index 989dd87b4843..eb7a91904b34 100644 --- a/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_Check.cs +++ b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_Check.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -388,6 +405,21 @@ public TestAzContainerAppNamespaceAvailability_Check() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckExpanded.cs b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckExpanded.cs index c16ef880fc6c..d2ac08942be6 100644 --- a/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckExpanded.cs @@ -225,7 +225,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -399,6 +416,21 @@ public TestAzContainerAppNamespaceAvailability_CheckExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckViaJsonFilePath.cs index 9ff4b67477e8..bab547d563d1 100644 --- a/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckViaJsonFilePath.cs @@ -216,7 +216,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -390,6 +407,21 @@ public TestAzContainerAppNamespaceAvailability_CheckViaJsonFilePath() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckViaJsonString.cs index 0d65e0af4c1e..00eeb460bf50 100644 --- a/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/TestAzContainerAppNamespaceAvailability_CheckViaJsonString.cs @@ -214,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -388,6 +405,21 @@ public TestAzContainerAppNamespaceAvailability_CheckViaJsonString() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateExpanded.cs index 624226f44dea..96296616d4a3 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create the AuthConfig for a Container App. + /// Update the AuthConfig for a Container App. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppAuthConfig_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAuthConfig))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create the AuthConfig for a Container App.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update the AuthConfig for a Container App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppAuthConfig_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -446,7 +446,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -590,7 +607,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _authConfigEnvelopeBody = await this.Client.ContainerAppsAuthConfigsGetWithResult(SubscriptionId, ResourceGroupName, ContainerAppName, Name, this, Pipeline); this.Update_authConfigEnvelopeBody(); - await this.Client.ContainerAppsAuthConfigsCreateOrUpdate(SubscriptionId, ResourceGroupName, ContainerAppName, Name, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsAuthConfigsCreateOrUpdate(SubscriptionId, ResourceGroupName, ContainerAppName, Name, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException urexception) @@ -698,6 +715,21 @@ private void Update_authConfigEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateViaIdentityContainerAppExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateViaIdentityContainerAppExpanded.cs index 33b2e5bad252..091e99e7a5a3 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateViaIdentityContainerAppExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateViaIdentityContainerAppExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create the AuthConfig for a Container App. + /// Update the AuthConfig for a Container App. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppAuthConfig_UpdateViaIdentityContainerAppExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAuthConfig))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create the AuthConfig for a Container App.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update the AuthConfig for a Container App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppAuthConfig_UpdateViaIdentityContainerAppExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -407,7 +407,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -554,7 +571,7 @@ protected override void ProcessRecord() this.ContainerAppInputObject.Id += $"/authConfigs/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _authConfigEnvelopeBody = await this.Client.ContainerAppsAuthConfigsGetViaIdentityWithResult(ContainerAppInputObject.Id, this, Pipeline); this.Update_authConfigEnvelopeBody(); - await this.Client.ContainerAppsAuthConfigsCreateOrUpdateViaIdentity(ContainerAppInputObject.Id, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsAuthConfigsCreateOrUpdateViaIdentity(ContainerAppInputObject.Id, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -573,7 +590,7 @@ protected override void ProcessRecord() } _authConfigEnvelopeBody = await this.Client.ContainerAppsAuthConfigsGetWithResult(ContainerAppInputObject.SubscriptionId ?? null, ContainerAppInputObject.ResourceGroupName ?? null, ContainerAppInputObject.ContainerAppName ?? null, Name, this, Pipeline); this.Update_authConfigEnvelopeBody(); - await this.Client.ContainerAppsAuthConfigsCreateOrUpdate(ContainerAppInputObject.SubscriptionId ?? null, ContainerAppInputObject.ResourceGroupName ?? null, ContainerAppInputObject.ContainerAppName ?? null, Name, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsAuthConfigsCreateOrUpdate(ContainerAppInputObject.SubscriptionId ?? null, ContainerAppInputObject.ResourceGroupName ?? null, ContainerAppInputObject.ContainerAppName ?? null, Name, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -683,6 +700,21 @@ private void Update_authConfigEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateViaIdentityExpanded.cs index 2815c0369835..4837b73538c2 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppAuthConfig_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create the AuthConfig for a Container App. + /// Update the AuthConfig for a Container App. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppAuthConfig_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAuthConfig))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create the AuthConfig for a Container App.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update the AuthConfig for a Container App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppAuthConfig_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -392,7 +392,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -538,7 +555,7 @@ protected override void ProcessRecord() { _authConfigEnvelopeBody = await this.Client.ContainerAppsAuthConfigsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_authConfigEnvelopeBody(); - await this.Client.ContainerAppsAuthConfigsCreateOrUpdateViaIdentity(InputObject.Id, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsAuthConfigsCreateOrUpdateViaIdentity(InputObject.Id, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -561,7 +578,7 @@ protected override void ProcessRecord() } _authConfigEnvelopeBody = await this.Client.ContainerAppsAuthConfigsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, InputObject.AuthConfigName ?? null, this, Pipeline); this.Update_authConfigEnvelopeBody(); - await this.Client.ContainerAppsAuthConfigsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, InputObject.AuthConfigName ?? null, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsAuthConfigsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, InputObject.AuthConfigName ?? null, _authConfigEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -670,6 +687,21 @@ private void Update_authConfigEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateExpanded.cs index 866a6c2615de..4db7be04b841 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateExpanded.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ public UpdateAzContainerAppConnectedEnvCert_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityConnectedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityConnectedEnvironmentExpanded.cs index ebd776ed901c..6583fa764dd2 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityConnectedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityConnectedEnvironmentExpanded.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ public UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityConnectedEnvironmen } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityExpanded.cs index 74c19848c25b..a21d31e51c53 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityExpanded.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -375,6 +392,21 @@ public UpdateAzContainerAppConnectedEnvCert_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonFilePath.cs index 64c1bd4e9d21..3b0ddaad9f79 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ public UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonFilePath() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonString.cs index 15be02f294af..0d7519646edf 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ public UpdateAzContainerAppConnectedEnvCert_UpdateViaJsonString() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateExpanded.cs index 96cb77c30dad..cad2d64596cb 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create a Dapr Component in a connected environment. + /// Update a Dapr Component in a connected environment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppConnectedEnvDapr_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprComponent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create a Dapr Component in a connected environment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update a Dapr Component in a connected environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppConnectedEnvDapr_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -309,7 +309,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -453,7 +470,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _daprComponentEnvelopeBody = await this.Client.ConnectedEnvironmentsDaprComponentsGetWithResult(SubscriptionId, ResourceGroupName, ConnectedEnvironmentName, Name, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdate(SubscriptionId, ResourceGroupName, ConnectedEnvironmentName, Name, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdate(SubscriptionId, ResourceGroupName, ConnectedEnvironmentName, Name, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException urexception) @@ -521,6 +538,21 @@ private void Update_daprComponentEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityConnectedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityConnectedEnvironmentExpanded.cs index c85dc8a73988..3af74ae14ced 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityConnectedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityConnectedEnvironmentExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create a Dapr Component in a connected environment. + /// Update a Dapr Component in a connected environment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppConnectedEnvDapr_UpdateViaIdentityConnectedEnvironmentExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprComponent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create a Dapr Component in a connected environment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update a Dapr Component in a connected environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityConnectedEnvironmentExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -270,7 +270,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -417,7 +434,7 @@ protected override void ProcessRecord() this.ConnectedEnvironmentInputObject.Id += $"/daprComponents/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _daprComponentEnvelopeBody = await this.Client.ConnectedEnvironmentsDaprComponentsGetViaIdentityWithResult(ConnectedEnvironmentInputObject.Id, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdateViaIdentity(ConnectedEnvironmentInputObject.Id, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdateViaIdentity(ConnectedEnvironmentInputObject.Id, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -436,7 +453,7 @@ protected override void ProcessRecord() } _daprComponentEnvelopeBody = await this.Client.ConnectedEnvironmentsDaprComponentsGetWithResult(ConnectedEnvironmentInputObject.SubscriptionId ?? null, ConnectedEnvironmentInputObject.ResourceGroupName ?? null, ConnectedEnvironmentInputObject.ConnectedEnvironmentName ?? null, Name, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdate(ConnectedEnvironmentInputObject.SubscriptionId ?? null, ConnectedEnvironmentInputObject.ResourceGroupName ?? null, ConnectedEnvironmentInputObject.ConnectedEnvironmentName ?? null, Name, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdate(ConnectedEnvironmentInputObject.SubscriptionId ?? null, ConnectedEnvironmentInputObject.ResourceGroupName ?? null, ConnectedEnvironmentInputObject.ConnectedEnvironmentName ?? null, Name, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -506,6 +523,21 @@ private void Update_daprComponentEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityExpanded.cs index f66eea015a14..718cc1ae956a 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create a Dapr Component in a connected environment. + /// Update a Dapr Component in a connected environment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppConnectedEnvDapr_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprComponent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create a Dapr Component in a connected environment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update a Dapr Component in a connected environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppConnectedEnvDapr_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -255,7 +255,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -401,7 +418,7 @@ protected override void ProcessRecord() { _daprComponentEnvelopeBody = await this.Client.ConnectedEnvironmentsDaprComponentsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdateViaIdentity(InputObject.Id, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdateViaIdentity(InputObject.Id, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -424,7 +441,7 @@ protected override void ProcessRecord() } _daprComponentEnvelopeBody = await this.Client.ConnectedEnvironmentsDaprComponentsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ConnectedEnvironmentName ?? null, InputObject.ComponentName ?? null, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ConnectedEnvironmentName ?? null, InputObject.ComponentName ?? null, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsDaprComponentsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ConnectedEnvironmentName ?? null, InputObject.ComponentName ?? null, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -494,6 +511,21 @@ private void Update_daprComponentEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateExpanded.cs index cdf6c7ea5c60..5182865ec28a 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create storage for a connectedEnvironment. + /// Update storage for a connectedEnvironment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppConnectedEnvStorage_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConnectedEnvironmentStorage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create storage for a connectedEnvironment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update storage for a connectedEnvironment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppConnectedEnvStorage_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -263,7 +263,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -407,7 +424,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _storageEnvelopeBody = await this.Client.ConnectedEnvironmentsStoragesGetWithResult(SubscriptionId, ResourceGroupName, ConnectedEnvironmentName, Name, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdate(SubscriptionId, ResourceGroupName, ConnectedEnvironmentName, Name, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdate(SubscriptionId, ResourceGroupName, ConnectedEnvironmentName, Name, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException urexception) @@ -459,6 +476,21 @@ private void Update_storageEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityConnectedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityConnectedEnvironmentExpanded.cs index 5b55df89a094..d52db6b20bd7 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityConnectedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityConnectedEnvironmentExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create storage for a connectedEnvironment. + /// Update storage for a connectedEnvironment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppConnectedEnvStorage_UpdateViaIdentityConnectedEnvironmentExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConnectedEnvironmentStorage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create storage for a connectedEnvironment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update storage for a connectedEnvironment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityConnectedEnvironmentExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -224,7 +224,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -371,7 +388,7 @@ protected override void ProcessRecord() this.ConnectedEnvironmentInputObject.Id += $"/storages/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _storageEnvelopeBody = await this.Client.ConnectedEnvironmentsStoragesGetViaIdentityWithResult(ConnectedEnvironmentInputObject.Id, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdateViaIdentity(ConnectedEnvironmentInputObject.Id, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdateViaIdentity(ConnectedEnvironmentInputObject.Id, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -390,7 +407,7 @@ protected override void ProcessRecord() } _storageEnvelopeBody = await this.Client.ConnectedEnvironmentsStoragesGetWithResult(ConnectedEnvironmentInputObject.SubscriptionId ?? null, ConnectedEnvironmentInputObject.ResourceGroupName ?? null, ConnectedEnvironmentInputObject.ConnectedEnvironmentName ?? null, Name, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdate(ConnectedEnvironmentInputObject.SubscriptionId ?? null, ConnectedEnvironmentInputObject.ResourceGroupName ?? null, ConnectedEnvironmentInputObject.ConnectedEnvironmentName ?? null, Name, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdate(ConnectedEnvironmentInputObject.SubscriptionId ?? null, ConnectedEnvironmentInputObject.ResourceGroupName ?? null, ConnectedEnvironmentInputObject.ConnectedEnvironmentName ?? null, Name, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -444,6 +461,21 @@ private void Update_storageEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityExpanded.cs index a464c52e65ad..927aebfb437a 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create storage for a connectedEnvironment. + /// Update storage for a connectedEnvironment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppConnectedEnvStorage_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConnectedEnvironmentStorage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create storage for a connectedEnvironment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update storage for a connectedEnvironment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppConnectedEnvStorage_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -209,7 +209,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -355,7 +372,7 @@ protected override void ProcessRecord() { _storageEnvelopeBody = await this.Client.ConnectedEnvironmentsStoragesGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdateViaIdentity(InputObject.Id, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdateViaIdentity(InputObject.Id, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -378,7 +395,7 @@ protected override void ProcessRecord() } _storageEnvelopeBody = await this.Client.ConnectedEnvironmentsStoragesGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ConnectedEnvironmentName ?? null, InputObject.StorageName ?? null, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ConnectedEnvironmentName ?? null, InputObject.StorageName ?? null, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ConnectedEnvironmentsStoragesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ConnectedEnvironmentName ?? null, InputObject.StorageName ?? null, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -432,6 +449,21 @@ private void Update_storageEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateExpanded.cs index fd4807644803..37c133bbeb6d 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateExpanded.cs @@ -199,6 +199,7 @@ public partial class UpdateAzContainerAppJob_UpdateExpanded : global::System.Man Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] public string IdentityType { get => _jobEnvelopeBody.IdentityType ?? null; set => _jobEnvelopeBody.IdentityType = value; } @@ -216,6 +217,7 @@ public partial class UpdateAzContainerAppJob_UpdateExpanded : global::System.Man Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", SerializedName = @"userAssignedIdentities", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityUserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityUserAssignedIdentity will be renamed to UserAssignedIdentity. And its type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _jobEnvelopeBody.IdentityUserAssignedIdentity ?? null /* object */; set => _jobEnvelopeBody.IdentityUserAssignedIdentity = value; } /// Accessor for our copy of the InvocationInfo. @@ -535,7 +537,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppJob_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -755,6 +774,21 @@ public UpdateAzContainerAppJob_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaIdentityExpanded.cs index 6d3cb9dfb7e0..ab37dbcdcbc1 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaIdentityExpanded.cs @@ -199,6 +199,7 @@ public partial class UpdateAzContainerAppJob_UpdateViaIdentityExpanded : global: Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] public string IdentityType { get => _jobEnvelopeBody.IdentityType ?? null; set => _jobEnvelopeBody.IdentityType = value; } @@ -216,6 +217,7 @@ public partial class UpdateAzContainerAppJob_UpdateViaIdentityExpanded : global: Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", SerializedName = @"userAssignedIdentities", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityUserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityUserAssignedIdentity will be renamed to UserAssignedIdentity. And its type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _jobEnvelopeBody.IdentityUserAssignedIdentity ?? null /* object */; set => _jobEnvelopeBody.IdentityUserAssignedIdentity = value; } /// Backing field for property. @@ -492,7 +494,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppJob_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -732,6 +751,21 @@ public UpdateAzContainerAppJob_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaJsonFilePath.cs index 944fb37d74ae..e96d8680a2dd 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaJsonFilePath.cs @@ -254,7 +254,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppJob_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +491,21 @@ public UpdateAzContainerAppJob_UpdateViaJsonFilePath() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaJsonString.cs index 9e9adf18d61d..0899f142773e 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppJob_UpdateViaJsonString.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppJob_Up /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ public UpdateAzContainerAppJob_UpdateViaJsonString() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateExpanded.cs index 059c0181c242..3421a5620de0 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateExpanded.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ public UpdateAzContainerAppManagedCert_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaIdentityExpanded.cs index 706b68ad8bc3..b92b456a0ef4 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaIdentityExpanded.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ public UpdateAzContainerAppManagedCert_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaIdentityManagedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaIdentityManagedEnvironmentExpanded.cs index 742136a726c2..3679100fb510 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaIdentityManagedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaIdentityManagedEnvironmentExpanded.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ public UpdateAzContainerAppManagedCert_UpdateViaIdentityManagedEnvironmentExpand } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaJsonFilePath.cs index aa7378280997..0c79682d352a 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ public UpdateAzContainerAppManagedCert_UpdateViaJsonFilePath() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaJsonString.cs index 60d5cde73e87..dba0f9679295 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedCert_UpdateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ public UpdateAzContainerAppManagedCert_UpdateViaJsonString() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateExpanded.cs index 11f273883b06..932d2a86e6d3 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateExpanded.cs @@ -230,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -404,6 +421,21 @@ public UpdateAzContainerAppManagedEnvCert_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityExpanded.cs index 855124a85945..eb9201d697ae 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityExpanded.cs @@ -176,7 +176,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -374,6 +391,21 @@ public UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityManagedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityManagedEnvironmentExpanded.cs index 5974bfd66f55..9af495656cfe 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityManagedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityManagedEnvironmentExpanded.cs @@ -191,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +404,21 @@ public UpdateAzContainerAppManagedEnvCert_UpdateViaIdentityManagedEnvironmentExp } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaJsonFilePath.cs index 9306940da91c..8dda2571630f 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaJsonFilePath.cs @@ -231,7 +231,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -405,6 +422,21 @@ public UpdateAzContainerAppManagedEnvCert_UpdateViaJsonFilePath() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaJsonString.cs index 8a08ed17f7f8..0425aef2711d 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvCert_UpdateViaJsonString.cs @@ -229,7 +229,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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,6 +420,21 @@ public UpdateAzContainerAppManagedEnvCert_UpdateViaJsonString() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateExpanded.cs index 4bcd435422e5..01a850abaaf6 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create a Dapr Component in a Managed Environment. + /// Update a Dapr Component in a Managed Environment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppManagedEnvDapr_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprComponent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create a Dapr Component in a Managed Environment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update a Dapr Component in a Managed Environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppManagedEnvDapr_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -309,7 +309,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -453,7 +470,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _daprComponentEnvelopeBody = await this.Client.DaprComponentsGetWithResult(SubscriptionId, ResourceGroupName, EnvName, Name, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.DaprComponentsCreateOrUpdate(SubscriptionId, ResourceGroupName, EnvName, Name, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.DaprComponentsCreateOrUpdate(SubscriptionId, ResourceGroupName, EnvName, Name, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException urexception) @@ -521,6 +538,21 @@ private void Update_daprComponentEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityExpanded.cs index de13b9f8ed84..c3dd87032fdd 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create a Dapr Component in a Managed Environment. + /// Update a Dapr Component in a Managed Environment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppManagedEnvDapr_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprComponent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create a Dapr Component in a Managed Environment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update a Dapr Component in a Managed Environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -255,7 +255,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -401,7 +418,7 @@ protected override void ProcessRecord() { _daprComponentEnvelopeBody = await this.Client.DaprComponentsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.DaprComponentsCreateOrUpdateViaIdentity(InputObject.Id, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.DaprComponentsCreateOrUpdateViaIdentity(InputObject.Id, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -424,7 +441,7 @@ protected override void ProcessRecord() } _daprComponentEnvelopeBody = await this.Client.DaprComponentsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EnvironmentName ?? null, InputObject.ComponentName ?? null, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.DaprComponentsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EnvironmentName ?? null, InputObject.ComponentName ?? null, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.DaprComponentsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EnvironmentName ?? null, InputObject.ComponentName ?? null, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -493,6 +510,21 @@ private void Update_daprComponentEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityManagedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityManagedEnvironmentExpanded.cs index 7c5d692db425..bc690620225b 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityManagedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityManagedEnvironmentExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create a Dapr Component in a Managed Environment. + /// Update a Dapr Component in a Managed Environment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppManagedEnvDapr_UpdateViaIdentityManagedEnvironmentExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprComponent))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create a Dapr Component in a Managed Environment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update a Dapr Component in a Managed Environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppManagedEnvDapr_UpdateViaIdentityManagedEnvironmentExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -270,7 +270,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -417,7 +434,7 @@ protected override void ProcessRecord() this.ManagedEnvironmentInputObject.Id += $"/daprComponents/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _daprComponentEnvelopeBody = await this.Client.DaprComponentsGetViaIdentityWithResult(ManagedEnvironmentInputObject.Id, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.DaprComponentsCreateOrUpdateViaIdentity(ManagedEnvironmentInputObject.Id, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.DaprComponentsCreateOrUpdateViaIdentity(ManagedEnvironmentInputObject.Id, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -436,7 +453,7 @@ protected override void ProcessRecord() } _daprComponentEnvelopeBody = await this.Client.DaprComponentsGetWithResult(ManagedEnvironmentInputObject.SubscriptionId ?? null, ManagedEnvironmentInputObject.ResourceGroupName ?? null, ManagedEnvironmentInputObject.EnvironmentName ?? null, Name, this, Pipeline); this.Update_daprComponentEnvelopeBody(); - await this.Client.DaprComponentsCreateOrUpdate(ManagedEnvironmentInputObject.SubscriptionId ?? null, ManagedEnvironmentInputObject.ResourceGroupName ?? null, ManagedEnvironmentInputObject.EnvironmentName ?? null, Name, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.DaprComponentsCreateOrUpdate(ManagedEnvironmentInputObject.SubscriptionId ?? null, ManagedEnvironmentInputObject.ResourceGroupName ?? null, ManagedEnvironmentInputObject.EnvironmentName ?? null, Name, _daprComponentEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -506,6 +523,21 @@ private void Update_daprComponentEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateExpanded.cs index 74b744cc421b..1dff746b2c1c 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create storage for a managedEnvironment. + /// Update storage for a managedEnvironment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppManagedEnvStorage_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IManagedEnvironmentStorage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create storage for a managedEnvironment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update storage for a managedEnvironment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppManagedEnvStorage_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -263,7 +263,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -407,7 +424,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _storageEnvelopeBody = await this.Client.ManagedEnvironmentsStoragesGetWithResult(SubscriptionId, ResourceGroupName, EnvName, Name, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ManagedEnvironmentsStoragesCreateOrUpdate(SubscriptionId, ResourceGroupName, EnvName, Name, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ManagedEnvironmentsStoragesCreateOrUpdate(SubscriptionId, ResourceGroupName, EnvName, Name, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException urexception) @@ -459,6 +476,21 @@ private void Update_storageEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityExpanded.cs index 6fb8a4fd2619..bb3877ea94a8 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create storage for a managedEnvironment. + /// Update storage for a managedEnvironment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppManagedEnvStorage_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IManagedEnvironmentStorage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create storage for a managedEnvironment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update storage for a managedEnvironment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -209,7 +209,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -355,7 +372,7 @@ protected override void ProcessRecord() { _storageEnvelopeBody = await this.Client.ManagedEnvironmentsStoragesGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ManagedEnvironmentsStoragesCreateOrUpdateViaIdentity(InputObject.Id, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ManagedEnvironmentsStoragesCreateOrUpdateViaIdentity(InputObject.Id, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -378,7 +395,7 @@ protected override void ProcessRecord() } _storageEnvelopeBody = await this.Client.ManagedEnvironmentsStoragesGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EnvironmentName ?? null, InputObject.StorageName ?? null, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ManagedEnvironmentsStoragesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EnvironmentName ?? null, InputObject.StorageName ?? null, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ManagedEnvironmentsStoragesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.EnvironmentName ?? null, InputObject.StorageName ?? null, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -432,6 +449,21 @@ private void Update_storageEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityManagedEnvironmentExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityManagedEnvironmentExpanded.cs index 175a758f7905..85a1444f08a3 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityManagedEnvironmentExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityManagedEnvironmentExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create storage for a managedEnvironment. + /// Update storage for a managedEnvironment. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppManagedEnvStorage_UpdateViaIdentityManagedEnvironmentExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IManagedEnvironmentStorage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create storage for a managedEnvironment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update storage for a managedEnvironment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppManagedEnvStorage_UpdateViaIdentityManagedEnvironmentExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -224,7 +224,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -371,7 +388,7 @@ protected override void ProcessRecord() this.ManagedEnvironmentInputObject.Id += $"/storages/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _storageEnvelopeBody = await this.Client.ManagedEnvironmentsStoragesGetViaIdentityWithResult(ManagedEnvironmentInputObject.Id, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ManagedEnvironmentsStoragesCreateOrUpdateViaIdentity(ManagedEnvironmentInputObject.Id, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ManagedEnvironmentsStoragesCreateOrUpdateViaIdentity(ManagedEnvironmentInputObject.Id, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -390,7 +407,7 @@ protected override void ProcessRecord() } _storageEnvelopeBody = await this.Client.ManagedEnvironmentsStoragesGetWithResult(ManagedEnvironmentInputObject.SubscriptionId ?? null, ManagedEnvironmentInputObject.ResourceGroupName ?? null, ManagedEnvironmentInputObject.EnvironmentName ?? null, Name, this, Pipeline); this.Update_storageEnvelopeBody(); - await this.Client.ManagedEnvironmentsStoragesCreateOrUpdate(ManagedEnvironmentInputObject.SubscriptionId ?? null, ManagedEnvironmentInputObject.ResourceGroupName ?? null, ManagedEnvironmentInputObject.EnvironmentName ?? null, Name, _storageEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ManagedEnvironmentsStoragesCreateOrUpdate(ManagedEnvironmentInputObject.SubscriptionId ?? null, ManagedEnvironmentInputObject.ResourceGroupName ?? null, ManagedEnvironmentInputObject.EnvironmentName ?? null, Name, _storageEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -444,6 +461,21 @@ private void Update_storageEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateExpanded.cs index ea2255f6ece1..9a1c28b72af1 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateExpanded.cs @@ -369,7 +369,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppManage /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -589,6 +606,21 @@ public UpdateAzContainerAppManagedEnv_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaIdentityExpanded.cs index f7247b0c2d25..8295616a825f 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaIdentityExpanded.cs @@ -328,7 +328,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppManage /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +585,21 @@ public UpdateAzContainerAppManagedEnv_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaJsonFilePath.cs index 2ae30c14006c..8527bfbd9a12 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaJsonFilePath.cs @@ -254,7 +254,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppManage /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +491,21 @@ public UpdateAzContainerAppManagedEnv_UpdateViaJsonFilePath() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaJsonString.cs index 8e3b873bad5b..ffcbbb3b9fd4 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppManagedEnv_UpdateViaJsonString.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppManage /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ public UpdateAzContainerAppManagedEnv_UpdateViaJsonString() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateExpanded.cs index 5f42cd15fc17..5e2bd8c9ba85 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create the SourceControl for a Container App. + /// Update the SourceControl for a Container App. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppSourceControl_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISourceControl))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create the SourceControl for a Container App.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update the SourceControl for a Container App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppSourceControl_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -443,7 +443,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppSource /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -633,7 +650,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _sourceControlEnvelopeBody = await this.Client.ContainerAppsSourceControlsGetWithResult(SubscriptionId, ResourceGroupName, ContainerAppName, Name, this, Pipeline); this.Update_sourceControlEnvelopeBody(); - await this.Client.ContainerAppsSourceControlsCreateOrUpdate(SubscriptionId, ResourceGroupName, ContainerAppName, Name, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsSourceControlsCreateOrUpdate(SubscriptionId, ResourceGroupName, ContainerAppName, Name, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException urexception) @@ -737,6 +754,21 @@ private void Update_sourceControlEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateViaIdentityContainerAppExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateViaIdentityContainerAppExpanded.cs index bd36fdd0a0d4..3bfe1e75c622 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateViaIdentityContainerAppExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateViaIdentityContainerAppExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create the SourceControl for a Container App. + /// Update the SourceControl for a Container App. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppSourceControl_UpdateViaIdentityContainerAppExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISourceControl))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create the SourceControl for a Container App.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update the SourceControl for a Container App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppSourceControl_UpdateViaIdentityContainerAppExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -403,7 +403,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppSource /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -596,7 +613,7 @@ protected override void ProcessRecord() this.ContainerAppInputObject.Id += $"/sourcecontrols/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _sourceControlEnvelopeBody = await this.Client.ContainerAppsSourceControlsGetViaIdentityWithResult(ContainerAppInputObject.Id, this, Pipeline); this.Update_sourceControlEnvelopeBody(); - await this.Client.ContainerAppsSourceControlsCreateOrUpdateViaIdentity(ContainerAppInputObject.Id, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsSourceControlsCreateOrUpdateViaIdentity(ContainerAppInputObject.Id, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -615,7 +632,7 @@ protected override void ProcessRecord() } _sourceControlEnvelopeBody = await this.Client.ContainerAppsSourceControlsGetWithResult(ContainerAppInputObject.SubscriptionId ?? null, ContainerAppInputObject.ResourceGroupName ?? null, ContainerAppInputObject.ContainerAppName ?? null, Name, this, Pipeline); this.Update_sourceControlEnvelopeBody(); - await this.Client.ContainerAppsSourceControlsCreateOrUpdate(ContainerAppInputObject.SubscriptionId ?? null, ContainerAppInputObject.ResourceGroupName ?? null, ContainerAppInputObject.ContainerAppName ?? null, Name, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsSourceControlsCreateOrUpdate(ContainerAppInputObject.SubscriptionId ?? null, ContainerAppInputObject.ResourceGroupName ?? null, ContainerAppInputObject.ContainerAppName ?? null, Name, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -721,6 +738,21 @@ private void Update_sourceControlEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateViaIdentityExpanded.cs index 0ce3f1e2d7c3..b280cf3d3a21 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerAppSourceControl_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Cmdlets; using System; - /// Create the SourceControl for a Container App. + /// Update the SourceControl for a Container App. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzContainerAppSourceControl_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISourceControl))] - [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Create the SourceControl for a Container App.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.App.Description(@"Update the SourceControl for a Container App.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.Generated] public partial class UpdateAzContainerAppSourceControl_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener, @@ -387,7 +387,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppSource /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -579,7 +596,7 @@ protected override void ProcessRecord() { _sourceControlEnvelopeBody = await this.Client.ContainerAppsSourceControlsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_sourceControlEnvelopeBody(); - await this.Client.ContainerAppsSourceControlsCreateOrUpdateViaIdentity(InputObject.Id, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsSourceControlsCreateOrUpdateViaIdentity(InputObject.Id, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } else { @@ -602,7 +619,7 @@ protected override void ProcessRecord() } _sourceControlEnvelopeBody = await this.Client.ContainerAppsSourceControlsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, InputObject.SourceControlName ?? null, this, Pipeline); this.Update_sourceControlEnvelopeBody(); - await this.Client.ContainerAppsSourceControlsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, InputObject.SourceControlName ?? null, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline); + await this.Client.ContainerAppsSourceControlsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ContainerAppName ?? null, InputObject.SourceControlName ?? null, _sourceControlEnvelopeBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -707,6 +724,21 @@ private void Update_sourceControlEnvelopeBody() } } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateExpanded.cs index 16e7970fe452..21d99b0830b8 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateExpanded.cs @@ -129,6 +129,7 @@ public partial class UpdateAzContainerApp_UpdateExpanded : global::System.Manage Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] public string IdentityType { get => _containerAppEnvelopeBody.IdentityType ?? null; set => _containerAppEnvelopeBody.IdentityType = value; } @@ -146,6 +147,7 @@ public partial class UpdateAzContainerApp_UpdateExpanded : global::System.Manage Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", SerializedName = @"userAssignedIdentities", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityUserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityUserAssignedIdentity will be renamed to UserAssignedIdentity. And its type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _containerAppEnvelopeBody.IdentityUserAssignedIdentity ?? null /* object */; set => _containerAppEnvelopeBody.IdentityUserAssignedIdentity = value; } /// Accessor for our copy of the InvocationInfo. @@ -452,7 +454,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerApp_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -672,6 +691,21 @@ public UpdateAzContainerApp_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaIdentityExpanded.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaIdentityExpanded.cs index 1e431206d433..1c67a28f3b0a 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaIdentityExpanded.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaIdentityExpanded.cs @@ -129,6 +129,7 @@ public partial class UpdateAzContainerApp_UpdateViaIdentityExpanded : global::Sy Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")] [global::Microsoft.Azure.PowerShell.Cmdlets.App.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned")] public string IdentityType { get => _containerAppEnvelopeBody.IdentityType ?? null; set => _containerAppEnvelopeBody.IdentityType = value; } @@ -146,6 +147,7 @@ public partial class UpdateAzContainerApp_UpdateViaIdentityExpanded : global::Sy Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", SerializedName = @"userAssignedIdentities", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities) })] + [Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.ParameterBreakingChange("IdentityUserAssignedIdentity", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityUserAssignedIdentity will be renamed to UserAssignedIdentity. And its type will be simplified as string array.", OldParamaterType="Hashtable", NewParameterType="string[]")] public Microsoft.Azure.PowerShell.Cmdlets.App.Models.IUserAssignedIdentities IdentityUserAssignedIdentity { get => _containerAppEnvelopeBody.IdentityUserAssignedIdentity ?? null /* object */; set => _containerAppEnvelopeBody.IdentityUserAssignedIdentity = value; } /// Backing field for property. @@ -409,7 +411,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerApp_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -649,6 +668,21 @@ public UpdateAzContainerApp_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaJsonFilePath.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaJsonFilePath.cs index c4ce6767ecfe..6445b8c3c54c 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaJsonFilePath.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaJsonFilePath.cs @@ -254,7 +254,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerApp_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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 +491,21 @@ public UpdateAzContainerApp_UpdateViaJsonFilePath() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaJsonString.cs b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaJsonString.cs index d30e5bbc49c7..a2ca24852096 100644 --- a/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaJsonString.cs +++ b/src/App/App.Autorest/generated/cmdlets/UpdateAzContainerApp_UpdateViaJsonString.cs @@ -252,7 +252,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerApp_Updat /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. @@ -472,6 +489,21 @@ public UpdateAzContainerApp_UpdateViaJsonString() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.App.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 7d1bc8508f74..b605ba8165be 100644 --- a/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/App/App.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/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index e07536659fdd..c4e81e40ed69 100644 --- a/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -149,7 +149,8 @@ protected override void ProcessRecord() else { var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().ToPsList(); - if (!String.IsNullOrEmpty(aliasesList)) { + if (!String.IsNullOrEmpty(aliasesList)) + { sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); } } diff --git a/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs index 5df34fca92a9..791d7380c15c 100644 --- a/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs +++ b/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs @@ -12,50 +12,96 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.App.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 { return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) } } +function Start-TestSleep { + [CmdletBinding(DefaultParameterSetName = 'SleepBySeconds')] + param( + [parameter(Mandatory = $true, Position = 0, ParameterSetName = 'SleepBySeconds')] + [ValidateRange(0.0, 2147483.0)] + [double] $Seconds, + + [parameter(Mandatory = $true, ParameterSetName = 'SleepByMilliseconds')] + [ValidateRange('NonNegative')] + [Alias('ms')] + [int] $Milliseconds + ) + + if ($TestMode -ne 'playback') { + switch ($PSCmdlet.ParameterSetName) { + 'SleepBySeconds' { + Start-Sleep -Seconds $Seconds + } + 'SleepByMilliseconds' { + Start-Sleep -Milliseconds $Milliseconds + } + } + } +} + $env = @{} if ($UsePreviousConfigForRecord) { $previousEnv = Get-Content (Join-Path $PSScriptRoot 'env.json') | ConvertFrom-Json @@ -80,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 @@ -120,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) + 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("}"); + + 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/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/NewAssemblyInfo.cs b/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/NewAssemblyInfo.cs new file mode 100644 index 000000000000..4266c41de3e3 --- /dev/null +++ b/src/App/App.Autorest/generated/runtime/BuildTime/Cmdlets/NewAssemblyInfo.cs @@ -0,0 +1,75 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.PowerShell +{ + [Cmdlet("New", "AssemblyInfo")] + [DoNotExport] + public class NewAssemblyInfo : PSCmdlet + { + private readonly string assemblyInfoPath = Path.Combine(".", "Properties", "AssemblyInfo.cs"); + private const string assemblyName = "App"; + private const string assemblyVersion = "0.2.0"; + private const string assemblyCompanyName = ""; + private const string assemblyProduct = ""; + private const string assemblyCopyright = ""; + protected override void ProcessRecord() + { + try + { + if (File.Exists(assemblyInfoPath)) + { + return; + } + StringBuilder sb = new StringBuilder(); + sb.AppendLine(@" +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the ""License""); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an ""AS IS"" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- +"); + sb.Append($"{Environment.NewLine}"); + sb.AppendLine("using System;"); + sb.AppendLine("using System.Reflection;"); + sb.AppendLine("using System.Runtime.InteropServices;"); + sb.Append($"{Environment.NewLine}"); + sb.AppendLine($"[assembly: AssemblyTitle(\"Microsoft Azure Powershell - {assemblyName}\")]"); + sb.AppendLine($"[assembly: AssemblyCompany(\"{assemblyCompanyName}\")]"); + sb.AppendLine($"[assembly: AssemblyProduct(\"{assemblyProduct}\")]"); + sb.AppendLine($"[assembly: AssemblyCopyright(\"{assemblyCopyright}\")]"); + sb.Append($"{Environment.NewLine}"); + sb.AppendLine("[assembly: ComVisible(false)]"); + sb.AppendLine("[assembly: CLSCompliant(false)]"); + sb.AppendLine($"[assembly: Guid(\"{Guid.NewGuid()}\")]"); + sb.AppendLine($"[assembly: AssemblyVersion(\"{assemblyVersion}\")]"); + sb.Append($"[assembly: AssemblyFileVersion(\"{assemblyVersion}\")]"); + + FileInfo assemblyInfo = new FileInfo(assemblyInfoPath); + assemblyInfo.Directory.Create(); + File.WriteAllText(assemblyInfo.FullName, sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} \ No newline at end of file diff --git a/src/App/App.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/App/App.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs index 5dc1018ffe88..459292662bcc 100644 --- a/src/App/App.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/App/App.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/App/App.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/App/App.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 9cbcd7950ac6..61dfaf2bb5cf 100644 --- a/src/App/App.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/App/App.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 {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.App.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/App/App.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/App/App.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index ec3b0fe38aaf..7aa245030237 100644 --- a/src/App/App.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/src/App/App.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/App/App.Autorest/help/Az.App.md b/src/App/App.Autorest/help/Az.App.md index edde861c74c9..2c1d655f7473 100644 --- a/src/App/App.Autorest/help/Az.App.md +++ b/src/App/App.Autorest/help/Az.App.md @@ -276,17 +276,17 @@ Checks if resource name is available. Patches a Container App using JSON Merge Patch ### [Update-AzContainerAppAuthConfig](Update-AzContainerAppAuthConfig.md) -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. ### [Update-AzContainerAppConnectedEnvCert](Update-AzContainerAppConnectedEnvCert.md) Patches a certificate. Currently only patching of tags is supported ### [Update-AzContainerAppConnectedEnvDapr](Update-AzContainerAppConnectedEnvDapr.md) -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. ### [Update-AzContainerAppConnectedEnvStorage](Update-AzContainerAppConnectedEnvStorage.md) -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. ### [Update-AzContainerAppJob](Update-AzContainerAppJob.md) Patches a Container Apps Job using JSON Merge Patch @@ -303,11 +303,11 @@ Patches a certificate. Currently only patching of tags is supported ### [Update-AzContainerAppManagedEnvDapr](Update-AzContainerAppManagedEnvDapr.md) -Create a Dapr Component in a Managed Environment. +Update a Dapr Component in a Managed Environment. ### [Update-AzContainerAppManagedEnvStorage](Update-AzContainerAppManagedEnvStorage.md) -Create storage for a managedEnvironment. +Update storage for a managedEnvironment. ### [Update-AzContainerAppSourceControl](Update-AzContainerAppSourceControl.md) -Create the SourceControl for a Container App. +Update the SourceControl for a Container App. diff --git a/src/App/App.Autorest/help/Disable-AzContainerAppRevision.md b/src/App/App.Autorest/help/Disable-AzContainerAppRevision.md index e1991d1cb21c..be470917c8ca 100644 --- a/src/App/App.Autorest/help/Disable-AzContainerAppRevision.md +++ b/src/App/App.Autorest/help/Disable-AzContainerAppRevision.md @@ -62,7 +62,6 @@ Deactivates a revision for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -109,7 +108,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Enable-AzContainerAppRevision.md b/src/App/App.Autorest/help/Enable-AzContainerAppRevision.md index 17de2c5e09bb..c6828cc36805 100644 --- a/src/App/App.Autorest/help/Enable-AzContainerAppRevision.md +++ b/src/App/App.Autorest/help/Enable-AzContainerAppRevision.md @@ -62,7 +62,6 @@ Activates a revision for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -109,7 +108,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerApp.md b/src/App/App.Autorest/help/Get-AzContainerApp.md index 40d525e22548..8dc798843909 100644 --- a/src/App/App.Autorest/help/Get-AzContainerApp.md +++ b/src/App/App.Autorest/help/Get-AzContainerApp.md @@ -20,12 +20,12 @@ Get-AzContainerApp [-SubscriptionId ] [-DefaultProfile ] [ -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [] + [-DefaultProfile ] [] ``` ### GetViaIdentity ``` -Get-AzContainerApp -InputObject [-DefaultProfile ] [-PassThru] [] +Get-AzContainerApp -InputObject [-DefaultProfile ] [] ``` ### List1 @@ -100,7 +100,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.App.Models.IAppIdentity @@ -129,21 +128,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: Get, GetViaIdentity -Aliases: - -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/App/App.Autorest/help/Get-AzContainerAppAuthConfig.md b/src/App/App.Autorest/help/Get-AzContainerAppAuthConfig.md index c4eb1f8650da..446de26418d9 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppAuthConfig.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppAuthConfig.md @@ -84,7 +84,6 @@ Get a AuthConfig of a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -131,7 +130,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppAuthToken.md b/src/App/App.Autorest/help/Get-AzContainerAppAuthToken.md index 85982f487cc7..36465fa39161 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppAuthToken.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppAuthToken.md @@ -15,14 +15,13 @@ Get auth token for a container app ### Get (Default) ``` Get-AzContainerAppAuthToken -ContainerAppName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppAuthToken -InputObject [-DefaultProfile ] [-PassThru] [-Confirm] - [-WhatIf] [] +Get-AzContainerAppAuthToken -InputObject [-DefaultProfile ] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION @@ -92,7 +91,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.App.Models.IAppIdentity @@ -106,21 +104,6 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -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/App/App.Autorest/help/Get-AzContainerAppAvailableWorkloadProfile.md b/src/App/App.Autorest/help/Get-AzContainerAppAvailableWorkloadProfile.md index babe4d052a68..5b852115c634 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppAvailableWorkloadProfile.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppAvailableWorkloadProfile.md @@ -70,7 +70,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppBillingMeter.md b/src/App/App.Autorest/help/Get-AzContainerAppBillingMeter.md index 3781f03d3f11..d98c1c1f03b2 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppBillingMeter.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppBillingMeter.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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnv.md b/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnv.md index 470cc5efdf7b..4a7383737aeb 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnv.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnv.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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvCert.md b/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvCert.md index 89665c86cfba..d96c89aa9891 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvCert.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvCert.md @@ -85,7 +85,6 @@ Get the specified Certificate. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -132,7 +131,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvDapr.md b/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvDapr.md index 37ca4e52d459..40cb072ec8d0 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvDapr.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvDapr.md @@ -85,7 +85,6 @@ Get a dapr component. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -132,7 +131,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvStorage.md b/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvStorage.md index 8cdc81e7da94..a6fb217dfd13 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvStorage.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppConnectedEnvStorage.md @@ -85,7 +85,6 @@ Get storage for a connectedEnvironment. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -132,7 +131,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticDetector.md b/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticDetector.md index e249248b3a6a..fbd412c9fabc 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticDetector.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticDetector.md @@ -75,7 +75,6 @@ Get a diagnostics result of a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -137,7 +136,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticRevision.md b/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticRevision.md index 73932c6eb065..8bcec1bfeb8d 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticRevision.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticRevision.md @@ -71,7 +71,6 @@ Get a revision of a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -133,7 +132,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticRoot.md b/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticRoot.md index 9a3f71d6bf4d..550c9e78c0b7 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticRoot.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppDiagnosticRoot.md @@ -15,13 +15,12 @@ Get the properties of a Container App. ### Get (Default) ``` Get-AzContainerAppDiagnosticRoot -ContainerAppName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [] + [-SubscriptionId ] [-DefaultProfile ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppDiagnosticRoot -InputObject [-DefaultProfile ] [-PassThru] - [] +Get-AzContainerAppDiagnosticRoot -InputObject [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -77,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.App.Models.IAppIdentity @@ -91,21 +89,6 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -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/App/App.Autorest/help/Get-AzContainerAppJob.md b/src/App/App.Autorest/help/Get-AzContainerAppJob.md index ac162ef04676..4754d2bcc03a 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppJob.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppJob.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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppJobExecution.md b/src/App/App.Autorest/help/Get-AzContainerAppJobExecution.md index 9caf8ec33e1f..e88d084baba3 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppJobExecution.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppJobExecution.md @@ -67,7 +67,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.App.Models.IAppIdentity @@ -83,7 +82,6 @@ Accept wildcard characters: False ### -JobInputObject Identity Parameter -To construct, see NOTES section for JOBINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppManagedCert.md b/src/App/App.Autorest/help/Get-AzContainerAppManagedCert.md index 8b69be622930..506a36542909 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppManagedCert.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppManagedCert.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.App.Models.IAppIdentity @@ -117,7 +116,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnv.md b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnv.md index 176d22499e7f..fdf2f0d09965 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnv.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnv.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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvAuthToken.md b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvAuthToken.md index 59a023c214d0..fa417469e13d 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvAuthToken.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvAuthToken.md @@ -77,7 +77,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvCert.md b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvCert.md index 4d2e9dce133d..39d6e6eb8799 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvCert.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvCert.md @@ -115,7 +115,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.App.Models.IAppIdentity @@ -131,7 +130,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDapr.md b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDapr.md index e31a2a54592d..39c527543565 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDapr.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDapr.md @@ -115,7 +115,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.App.Models.IAppIdentity @@ -131,7 +130,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDiagnosticDetector.md b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDiagnosticDetector.md index 3226867e5eb9..7eebbb3a3467 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDiagnosticDetector.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDiagnosticDetector.md @@ -90,7 +90,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.App.Models.IAppIdentity @@ -106,7 +105,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDiagnosticRoot.md b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDiagnosticRoot.md index b7f6741c4155..10c730eb7df1 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDiagnosticRoot.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvDiagnosticRoot.md @@ -77,7 +77,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvStorage.md b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvStorage.md index 96586e09b7a1..2a2342efe28b 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvStorage.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppManagedEnvStorage.md @@ -116,7 +116,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.App.Models.IAppIdentity @@ -132,7 +131,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppRevision.md b/src/App/App.Autorest/help/Get-AzContainerAppRevision.md index 2164e6da4be2..b08b5f296b3d 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppRevision.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppRevision.md @@ -84,7 +84,6 @@ Get a revision by Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -146,7 +145,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppRevisionReplica.md b/src/App/App.Autorest/help/Get-AzContainerAppRevisionReplica.md index 7c0eba057b20..3fb190a024bf 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppRevisionReplica.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppRevisionReplica.md @@ -107,7 +107,6 @@ Get a replica for a Container App Revision. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -154,7 +153,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.App.Models.IAppIdentity @@ -201,7 +199,6 @@ Accept wildcard characters: False ### -RevisionInputObject Identity Parameter -To construct, see NOTES section for REVISIONINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Get-AzContainerAppSourceControl.md b/src/App/App.Autorest/help/Get-AzContainerAppSourceControl.md index 16f767939259..a9e7beddc513 100644 --- a/src/App/App.Autorest/help/Get-AzContainerAppSourceControl.md +++ b/src/App/App.Autorest/help/Get-AzContainerAppSourceControl.md @@ -84,7 +84,6 @@ Get a SourceControl of a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -131,7 +130,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/New-AzContainerApp.md b/src/App/App.Autorest/help/New-AzContainerApp.md index 9e5d3cf42e1b..f468cc1ec33a 100644 --- a/src/App/App.Autorest/help/New-AzContainerApp.md +++ b/src/App/App.Autorest/help/New-AzContainerApp.md @@ -68,7 +68,7 @@ $EnvId = (Get-AzContainerAppManagedEnv -ResourceGroupName azps_test_group_app -N New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppManagedEnvCert -EnvName azps-env -Name azps-env-cert -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -105,7 +105,7 @@ $EnvId = (Get-AzContainerAppConnectedEnv -ResourceGroupName azps_test_group_app New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppConnectedEnvCert -Name azps-connectedenvcert -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -146,7 +146,6 @@ Accept wildcard characters: False ### -Configuration Non versioned Container App configuration properties. -To construct, see NOTES section for CONFIGURATION properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration @@ -255,7 +254,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.App.Models.IAppIdentity @@ -428,7 +426,6 @@ Accept wildcard characters: False ### -ScaleRule Scaling rules. -To construct, see NOTES section for SCALERULE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRule[] @@ -474,7 +471,6 @@ Accept wildcard characters: False ### -TemplateContainer List of container definitions for the Container App. -To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[] @@ -490,7 +486,6 @@ Accept wildcard characters: False ### -TemplateInitContainer List of specialized containers that run before app containers. -To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[] @@ -521,7 +516,6 @@ Accept wildcard characters: False ### -TemplateServiceBind List of container app services bound to the app -To construct, see NOTES section for TEMPLATESERVICEBIND properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IServiceBind[] @@ -557,7 +551,6 @@ Accept wildcard characters: False ### -TemplateVolume List of volume definitions for the Container App. -To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppAuthConfig.md b/src/App/App.Autorest/help/New-AzContainerAppAuthConfig.md index f8633bd258d0..864512204a8b 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppAuthConfig.md +++ b/src/App/App.Autorest/help/New-AzContainerAppAuthConfig.md @@ -91,7 +91,6 @@ Create the AuthConfig for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -273,7 +272,6 @@ Accept wildcard characters: False ### -IdentityProvider The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. -To construct, see NOTES section for IDENTITYPROVIDER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProviders @@ -289,7 +287,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/New-AzContainerAppConfigurationObject.md b/src/App/App.Autorest/help/New-AzContainerAppConfigurationObject.md index dc3ce676ade3..034eda325820 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppConfigurationObject.md +++ b/src/App/App.Autorest/help/New-AzContainerAppConfigurationObject.md @@ -320,7 +320,6 @@ Accept wildcard characters: False ### -IngressCustomDomain custom domain bindings for Container Apps' hostnames. -To construct, see NOTES section for INGRESSCUSTOMDOMAIN properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICustomDomain[] @@ -366,7 +365,6 @@ Accept wildcard characters: False ### -IngressIPSecurityRestriction Rules to restrict incoming IP address. -To construct, see NOTES section for INGRESSIPSECURITYRESTRICTION properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIPSecurityRestrictionRule[] @@ -397,7 +395,6 @@ Accept wildcard characters: False ### -IngressTraffic Traffic weights for app's revisions. -To construct, see NOTES section for INGRESSTRAFFIC properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrafficWeight[] @@ -444,7 +441,6 @@ Accept wildcard characters: False ### -Registry Collection of private container registry credentials for containers used by the Container app. -To construct, see NOTES section for REGISTRY properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[] @@ -460,7 +456,6 @@ Accept wildcard characters: False ### -Secret Collection of secrets used by a Container app. -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppConnectedEnv.md b/src/App/App.Autorest/help/New-AzContainerAppConnectedEnv.md index 86b4d8b92c47..a6bb21dca7d5 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppConnectedEnv.md +++ b/src/App/App.Autorest/help/New-AzContainerAppConnectedEnv.md @@ -190,7 +190,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvCert.md b/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvCert.md index 4289972b0424..46e56272f03f 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvCert.md +++ b/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvCert.md @@ -15,7 +15,7 @@ Create a Certificate. ### CreateExpanded (Default) ``` New-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name - -ResourceGroupName -Location [-SubscriptionId ] [-InputFile ] + -ResourceGroupName [-SubscriptionId ] [-InputFile ] [-Location ] [-Password ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -23,13 +23,13 @@ New-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name -Name - -Location [-InputFile ] [-Password ] [-Tag ] + [-InputFile ] [-Location ] [-Password ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` -New-AzContainerAppConnectedEnvCert -InputObject -Location [-InputFile ] +New-AzContainerAppConnectedEnvCert -InputObject [-InputFile ] [-Location ] [-Password ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -57,7 +57,7 @@ Create a Certificate. ```powershell New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppConnectedEnvCert -Name azps-connectedenvcert -ConnectedEnvironmentName azps-connectedenv -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -75,7 +75,6 @@ Create a Certificate. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -137,7 +136,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.App.Models.IAppIdentity @@ -189,7 +187,7 @@ Type: System.String Parameter Sets: CreateExpanded, CreateViaIdentityConnectedEnvironmentExpanded, CreateViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvDapr.md b/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvDapr.md index 99accf50867d..ce84bbeb76c9 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvDapr.md +++ b/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvDapr.md @@ -92,7 +92,6 @@ Accept wildcard characters: False ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -169,7 +168,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.App.Models.IAppIdentity @@ -215,7 +213,6 @@ Accept wildcard characters: False ### -Metadata Component metadata -To construct, see NOTES section for METADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[] @@ -277,7 +274,6 @@ Accept wildcard characters: False ### -Secret Collection of secrets used by a Dapr component -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvStorage.md b/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvStorage.md index f7c73b048f79..1836c769d257 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvStorage.md +++ b/src/App/App.Autorest/help/New-AzContainerAppConnectedEnvStorage.md @@ -133,7 +133,6 @@ Accept wildcard characters: False ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -180,7 +179,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/New-AzContainerAppIdentityProviderObject.md b/src/App/App.Autorest/help/New-AzContainerAppIdentityProviderObject.md index f3e4680ca585..a3dbbd7f2f76 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppIdentityProviderObject.md +++ b/src/App/App.Autorest/help/New-AzContainerAppIdentityProviderObject.md @@ -262,7 +262,6 @@ Accept wildcard characters: False ### -CustomOpenIdConnectProvider The map of the name of the alias of each custom Open ID Connect provider to the configuration settings of the custom Open ID Connect provider. -To construct, see NOTES section for CUSTOMOPENIDCONNECTPROVIDER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProvidersCustomOpenIdConnectProviders diff --git a/src/App/App.Autorest/help/New-AzContainerAppInitContainerTemplateObject.md b/src/App/App.Autorest/help/New-AzContainerAppInitContainerTemplateObject.md index 64d106925d16..221c23f86c34 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppInitContainerTemplateObject.md +++ b/src/App/App.Autorest/help/New-AzContainerAppInitContainerTemplateObject.md @@ -70,7 +70,6 @@ Accept wildcard characters: False ### -Env Container environment variables. -To construct, see NOTES section for ENV properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[] @@ -148,7 +147,6 @@ Accept wildcard characters: False ### -VolumeMount Container volume mounts. -To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolumeMount[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppJob.md b/src/App/App.Autorest/help/New-AzContainerAppJob.md index 3add025067d7..4edec3509306 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppJob.md +++ b/src/App/App.Autorest/help/New-AzContainerAppJob.md @@ -100,7 +100,6 @@ Accept wildcard characters: False ### -ConfigurationRegistry Collection of private container registry credentials used by a Container apps job -To construct, see NOTES section for CONFIGURATIONREGISTRY properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[] @@ -146,7 +145,6 @@ Accept wildcard characters: False ### -ConfigurationSecret Collection of secrets used by a Container Apps Job -To construct, see NOTES section for CONFIGURATIONSECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] @@ -270,7 +268,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.App.Models.IAppIdentity @@ -453,7 +450,6 @@ Accept wildcard characters: False ### -ScaleRule Scaling rules. -To construct, see NOTES section for SCALERULE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobScaleRule[] @@ -544,7 +540,6 @@ Accept wildcard characters: False ### -TemplateContainer List of container definitions for the Container App. -To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[] @@ -560,7 +555,6 @@ Accept wildcard characters: False ### -TemplateInitContainer List of specialized containers that run before app containers. -To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[] @@ -576,7 +570,6 @@ Accept wildcard characters: False ### -TemplateVolume List of volume definitions for the Container App. -To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppJobExecutionContainerObject.md b/src/App/App.Autorest/help/New-AzContainerAppJobExecutionContainerObject.md index f0e65f37cb11..27d6489c9c20 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppJobExecutionContainerObject.md +++ b/src/App/App.Autorest/help/New-AzContainerAppJobExecutionContainerObject.md @@ -70,7 +70,6 @@ Accept wildcard characters: False ### -Env Container environment variables. -To construct, see NOTES section for ENV properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppJobScaleRuleObject.md b/src/App/App.Autorest/help/New-AzContainerAppJobScaleRuleObject.md index 0c6011a307a3..52b34c6450c8 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppJobScaleRuleObject.md +++ b/src/App/App.Autorest/help/New-AzContainerAppJobScaleRuleObject.md @@ -40,7 +40,6 @@ Create an in-memory object for JobScaleRule. ### -Auth Authentication secrets for the scale rule. -To construct, see NOTES section for AUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppManagedCert.md b/src/App/App.Autorest/help/New-AzContainerAppManagedCert.md index 1ebff2381051..80d45f86bdd8 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppManagedCert.md +++ b/src/App/App.Autorest/help/New-AzContainerAppManagedCert.md @@ -14,37 +14,37 @@ Create a Managed Certificate. ### CreateExpanded (Default) ``` -New-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName -Location - [-SubscriptionId ] [-DomainControlValidation ] [-SubjectName ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +New-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName + [-SubscriptionId ] [-DomainControlValidation ] [-Location ] [-SubjectName ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` -New-AzContainerAppManagedCert -InputObject -Location - [-DomainControlValidation ] [-SubjectName ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +New-AzContainerAppManagedCert -InputObject [-DomainControlValidation ] + [-Location ] [-SubjectName ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityManagedEnvironmentExpanded ``` -New-AzContainerAppManagedCert -ManagedEnvironmentInputObject -Name -Location - [-DomainControlValidation ] [-SubjectName ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +New-AzContainerAppManagedCert -ManagedEnvironmentInputObject -Name + [-DomainControlValidation ] [-Location ] [-SubjectName ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### CreateViaJsonString ``` New-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ## DESCRIPTION @@ -132,7 +132,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.App.Models.IAppIdentity @@ -184,7 +183,7 @@ Type: System.String Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityManagedEnvironmentExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -193,7 +192,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -237,21 +235,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -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/App/App.Autorest/help/New-AzContainerAppManagedEnv.md b/src/App/App.Autorest/help/New-AzContainerAppManagedEnv.md index 2a5e01da5436..aeca85e8db41 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppManagedEnv.md +++ b/src/App/App.Autorest/help/New-AzContainerAppManagedEnv.md @@ -220,7 +220,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.App.Models.IAppIdentity @@ -497,7 +496,6 @@ Accept wildcard characters: False ### -WorkloadProfile Workload profiles configured for the Managed Environment. -To construct, see NOTES section for WORKLOADPROFILE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IWorkloadProfile[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppManagedEnvCert.md b/src/App/App.Autorest/help/New-AzContainerAppManagedEnvCert.md index 587c32aa6699..fdb286a0f5dd 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppManagedEnvCert.md +++ b/src/App/App.Autorest/help/New-AzContainerAppManagedEnvCert.md @@ -15,13 +15,13 @@ Create a Certificate. ### CreateExpanded (Default) ``` New-AzContainerAppManagedEnvCert -EnvName -Name -ResourceGroupName - -Location [-SubscriptionId ] [-InputFile ] [-Password ] + [-SubscriptionId ] [-InputFile ] [-Location ] [-Password ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` -New-AzContainerAppManagedEnvCert -InputObject -Location [-InputFile ] +New-AzContainerAppManagedEnvCert -InputObject [-InputFile ] [-Location ] [-Password ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -29,7 +29,7 @@ New-AzContainerAppManagedEnvCert -InputObject -Location ### CreateViaIdentityManagedEnvironmentExpanded ``` New-AzContainerAppManagedEnvCert -ManagedEnvironmentInputObject -Name - -Location [-InputFile ] [-Password ] [-Tag ] + [-InputFile ] [-Location ] [-Password ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -56,7 +56,7 @@ Create a Certificate. ```powershell New-SelfSignedCertificate -DnsName "www.fabrikam.com", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" Get-ChildItem -Path cert:\LocalMachine\My -$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force Get-ChildItem -Path cert:\localMachine\my\F61C9A8C53D0500F819463A66C5921AA09E1B787 | Export-PfxCertificate -FilePath C:\mypfx.pfx -Password $mypwd New-AzContainerAppManagedEnvCert -EnvName azps-env -Name azps-env-cert -ResourceGroupName azps_test_group_app -Location eastus -InputFile "C:\mypfx.pfx" -Password $mypwd @@ -120,7 +120,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.App.Models.IAppIdentity @@ -172,7 +171,7 @@ Type: System.String Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityManagedEnvironmentExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -181,7 +180,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/New-AzContainerAppManagedEnvDapr.md b/src/App/App.Autorest/help/New-AzContainerAppManagedEnvDapr.md index 38a3d4f20148..afb5d467fdb8 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppManagedEnvDapr.md +++ b/src/App/App.Autorest/help/New-AzContainerAppManagedEnvDapr.md @@ -152,7 +152,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.App.Models.IAppIdentity @@ -198,7 +197,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -214,7 +212,6 @@ Accept wildcard characters: False ### -Metadata Component metadata -To construct, see NOTES section for METADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[] @@ -276,7 +273,6 @@ Accept wildcard characters: False ### -Secret Collection of secrets used by a Dapr component -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppManagedEnvStorage.md b/src/App/App.Autorest/help/New-AzContainerAppManagedEnvStorage.md index d0e9c1eddda1..dd6db3edc211 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppManagedEnvStorage.md +++ b/src/App/App.Autorest/help/New-AzContainerAppManagedEnvStorage.md @@ -164,7 +164,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.App.Models.IAppIdentity @@ -210,7 +209,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/New-AzContainerAppProbeObject.md b/src/App/App.Autorest/help/New-AzContainerAppProbeObject.md index c69616d71535..90d24f992f30 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppProbeObject.md +++ b/src/App/App.Autorest/help/New-AzContainerAppProbeObject.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -HttpGetHttpHeader Custom headers to set in the request. HTTP allows repeated headers. -To construct, see NOTES section for HTTPGETHTTPHEADER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppProbeHttpGetHttpHeadersItem[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppScaleRuleObject.md b/src/App/App.Autorest/help/New-AzContainerAppScaleRuleObject.md index aa1af821343a..34ebe9ea55ea 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppScaleRuleObject.md +++ b/src/App/App.Autorest/help/New-AzContainerAppScaleRuleObject.md @@ -41,7 +41,6 @@ Create an in-memory object for ScaleRule. ### -AzureQueueAuth Authentication secrets for the queue scale rule. -To construct, see NOTES section for AZUREQUEUEAUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] @@ -87,7 +86,6 @@ Accept wildcard characters: False ### -CustomAuth Authentication secrets for the custom scale rule. -To construct, see NOTES section for CUSTOMAUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] @@ -103,7 +101,6 @@ Accept wildcard characters: False ### -CustomMetadata Metadata properties to describe custom scale rule. -To construct, see NOTES section for CUSTOMMETADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICustomScaleRuleMetadata @@ -135,7 +132,6 @@ Accept wildcard characters: False ### -HttpAuth Authentication secrets for the custom scale rule. -To construct, see NOTES section for HTTPAUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] @@ -151,7 +147,6 @@ Accept wildcard characters: False ### -HttpMetadata Metadata properties to describe http scale rule. -To construct, see NOTES section for HTTPMETADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IHttpScaleRuleMetadata @@ -182,7 +177,6 @@ Accept wildcard characters: False ### -TcpAuth Authentication secrets for the tcp scale rule. -To construct, see NOTES section for TCPAUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] @@ -198,7 +192,6 @@ Accept wildcard characters: False ### -TcpMetadata Metadata properties to describe tcp scale rule. -To construct, see NOTES section for TCPMETADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITcpScaleRuleMetadata diff --git a/src/App/App.Autorest/help/New-AzContainerAppSourceControl.md b/src/App/App.Autorest/help/New-AzContainerAppSourceControl.md index 9f842b2305f8..8670e9190cf2 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppSourceControl.md +++ b/src/App/App.Autorest/help/New-AzContainerAppSourceControl.md @@ -68,9 +68,9 @@ Create the SourceControl for a Container App. ### Example 1: Create the SourceControl for a Container App. ```powershell -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force New-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" ``` @@ -195,7 +195,6 @@ Accept wildcard characters: False ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -347,7 +346,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/New-AzContainerAppTemplateObject.md b/src/App/App.Autorest/help/New-AzContainerAppTemplateObject.md index e43a9bee9858..8d7efdbe5c78 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppTemplateObject.md +++ b/src/App/App.Autorest/help/New-AzContainerAppTemplateObject.md @@ -73,7 +73,6 @@ Accept wildcard characters: False ### -Env Container environment variables. -To construct, see NOTES section for ENV properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[] @@ -119,7 +118,6 @@ Accept wildcard characters: False ### -Probe List of probes for the container. -To construct, see NOTES section for PROBE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppProbe[] @@ -167,7 +165,6 @@ Accept wildcard characters: False ### -VolumeMount Container volume mounts. -To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolumeMount[] diff --git a/src/App/App.Autorest/help/New-AzContainerAppVolumeObject.md b/src/App/App.Autorest/help/New-AzContainerAppVolumeObject.md index 80260b5f3352..8139ddf497cc 100644 --- a/src/App/App.Autorest/help/New-AzContainerAppVolumeObject.md +++ b/src/App/App.Autorest/help/New-AzContainerAppVolumeObject.md @@ -71,7 +71,6 @@ Accept wildcard characters: False ### -Secret List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume. -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecretVolumeItem[] diff --git a/src/App/App.Autorest/help/Remove-AzContainerApp.md b/src/App/App.Autorest/help/Remove-AzContainerApp.md index bda8c98f86f9..3a28920c5863 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerApp.md +++ b/src/App/App.Autorest/help/Remove-AzContainerApp.md @@ -79,7 +79,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppAuthConfig.md b/src/App/App.Autorest/help/Remove-AzContainerAppAuthConfig.md index d92159cf5fcf..c6308086d1ed 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppAuthConfig.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppAuthConfig.md @@ -64,7 +64,6 @@ Delete a Container App AuthConfig. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -111,7 +110,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnv.md b/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnv.md index da9f8574d18f..5420ea27e317 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnv.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnv.md @@ -79,7 +79,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvCert.md b/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvCert.md index 44712ff5e1e9..4d140d9d57ec 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvCert.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvCert.md @@ -65,7 +65,6 @@ Deletes the specified Certificate. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -112,7 +111,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvDapr.md b/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvDapr.md index c41f9d7b0ba1..8fdff38d7144 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvDapr.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvDapr.md @@ -65,7 +65,6 @@ Delete a Dapr Component from a connected environment. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -112,7 +111,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvStorage.md b/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvStorage.md index e3388834c857..a2686a09c2ce 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvStorage.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppConnectedEnvStorage.md @@ -65,7 +65,6 @@ Delete storage for a connectedEnvironment. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -112,7 +111,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppJob.md b/src/App/App.Autorest/help/Remove-AzContainerAppJob.md index 6afedf2b98d7..35c3ae420761 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppJob.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppJob.md @@ -79,7 +79,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppManagedCert.md b/src/App/App.Autorest/help/Remove-AzContainerAppManagedCert.md index b2346016b36f..430f6a34dd32 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppManagedCert.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppManagedCert.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.App.Models.IAppIdentity @@ -102,7 +101,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnv.md b/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnv.md index d8c8cf0cef20..c1f385f7dc25 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnv.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnv.md @@ -80,7 +80,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvCert.md b/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvCert.md index 5037e12006c6..1247a636447a 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvCert.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvCert.md @@ -95,7 +95,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.App.Models.IAppIdentity @@ -111,7 +110,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvDapr.md b/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvDapr.md index a71c54f168d4..f951fd29a4c5 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvDapr.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvDapr.md @@ -95,7 +95,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.App.Models.IAppIdentity @@ -111,7 +110,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvStorage.md b/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvStorage.md index 9cc79d46a857..b426b11c1538 100644 --- a/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvStorage.md +++ b/src/App/App.Autorest/help/Remove-AzContainerAppManagedEnvStorage.md @@ -95,7 +95,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.App.Models.IAppIdentity @@ -111,7 +110,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Restart-AzContainerAppRevision.md b/src/App/App.Autorest/help/Restart-AzContainerAppRevision.md index 7ce474bc0696..25527d6b8d66 100644 --- a/src/App/App.Autorest/help/Restart-AzContainerAppRevision.md +++ b/src/App/App.Autorest/help/Restart-AzContainerAppRevision.md @@ -62,7 +62,6 @@ Restarts a revision for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -109,7 +108,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Start-AzContainerApp.md b/src/App/App.Autorest/help/Start-AzContainerApp.md index 35b0f200dfc2..6c8947a5d053 100644 --- a/src/App/App.Autorest/help/Start-AzContainerApp.md +++ b/src/App/App.Autorest/help/Start-AzContainerApp.md @@ -77,7 +77,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Start-AzContainerAppJob.md b/src/App/App.Autorest/help/Start-AzContainerAppJob.md index 6aa26b67c18d..b209ab958e73 100644 --- a/src/App/App.Autorest/help/Start-AzContainerAppJob.md +++ b/src/App/App.Autorest/help/Start-AzContainerAppJob.md @@ -91,7 +91,6 @@ Accept wildcard characters: False ### -Container List of container definitions for the Container Apps Job. -To construct, see NOTES section for CONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionContainer[] @@ -123,7 +122,6 @@ Accept wildcard characters: False ### -InitContainer List of specialized containers that run before job containers. -To construct, see NOTES section for INITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionContainer[] @@ -139,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.App.Models.IAppIdentity @@ -246,7 +243,6 @@ Accept wildcard characters: False ### -Template Job's execution template, containing container configuration for a job's execution -To construct, see NOTES section for TEMPLATE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionTemplate diff --git a/src/App/App.Autorest/help/Stop-AzContainerApp.md b/src/App/App.Autorest/help/Stop-AzContainerApp.md index 8fa1acc10d4a..c0f1355955a8 100644 --- a/src/App/App.Autorest/help/Stop-AzContainerApp.md +++ b/src/App/App.Autorest/help/Stop-AzContainerApp.md @@ -77,7 +77,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Stop-AzContainerAppJobExecution.md b/src/App/App.Autorest/help/Stop-AzContainerAppJobExecution.md index 1105b053c6e1..40189581b26b 100644 --- a/src/App/App.Autorest/help/Stop-AzContainerAppJobExecution.md +++ b/src/App/App.Autorest/help/Stop-AzContainerAppJobExecution.md @@ -82,7 +82,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.App.Models.IAppIdentity @@ -98,7 +97,6 @@ Accept wildcard characters: False ### -JobInputObject Identity Parameter -To construct, see NOTES section for JOBINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Test-AzContainerAppConnectedEnvNameAvailability.md b/src/App/App.Autorest/help/Test-AzContainerAppConnectedEnvNameAvailability.md index f88df78f889b..9bdc30bc31d1 100644 --- a/src/App/App.Autorest/help/Test-AzContainerAppConnectedEnvNameAvailability.md +++ b/src/App/App.Autorest/help/Test-AzContainerAppConnectedEnvNameAvailability.md @@ -62,7 +62,6 @@ Checks if resource connectedEnvironmentName is available. ### -CheckNameAvailabilityRequest The check availability request body. -To construct, see NOTES section for CHECKNAMEAVAILABILITYREQUEST properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICheckNameAvailabilityRequest diff --git a/src/App/App.Autorest/help/Test-AzContainerAppNamespaceAvailability.md b/src/App/App.Autorest/help/Test-AzContainerAppNamespaceAvailability.md index efe7687947f0..1a584d455b80 100644 --- a/src/App/App.Autorest/help/Test-AzContainerAppNamespaceAvailability.md +++ b/src/App/App.Autorest/help/Test-AzContainerAppNamespaceAvailability.md @@ -60,7 +60,6 @@ Checks if resource name is available. ### -CheckNameAvailabilityRequest The check availability request body. -To construct, see NOTES section for CHECKNAMEAVAILABILITYREQUEST properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICheckNameAvailabilityRequest diff --git a/src/App/App.Autorest/help/Update-AzContainerApp.md b/src/App/App.Autorest/help/Update-AzContainerApp.md index 73a943957242..778494ddb04a 100644 --- a/src/App/App.Autorest/help/Update-AzContainerApp.md +++ b/src/App/App.Autorest/help/Update-AzContainerApp.md @@ -108,7 +108,6 @@ Accept wildcard characters: False ### -Configuration Non versioned Container App configuration properties. -To construct, see NOTES section for CONFIGURATION properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration @@ -202,7 +201,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.App.Models.IAppIdentity @@ -344,7 +342,6 @@ Accept wildcard characters: False ### -ScaleRule Scaling rules. -To construct, see NOTES section for SCALERULE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRule[] @@ -390,7 +387,6 @@ Accept wildcard characters: False ### -TemplateContainer List of container definitions for the Container App. -To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[] @@ -406,7 +402,6 @@ Accept wildcard characters: False ### -TemplateInitContainer List of specialized containers that run before app containers. -To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[] @@ -437,7 +432,6 @@ Accept wildcard characters: False ### -TemplateServiceBind List of container app services bound to the app -To construct, see NOTES section for TEMPLATESERVICEBIND properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IServiceBind[] @@ -473,7 +467,6 @@ Accept wildcard characters: False ### -TemplateVolume List of volume definitions for the Container App. -To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[] diff --git a/src/App/App.Autorest/help/Update-AzContainerAppAuthConfig.md b/src/App/App.Autorest/help/Update-AzContainerAppAuthConfig.md index 5ec2b315d9ea..9a1a95f58a03 100644 --- a/src/App/App.Autorest/help/Update-AzContainerAppAuthConfig.md +++ b/src/App/App.Autorest/help/Update-AzContainerAppAuthConfig.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppAuthConfig ## SYNOPSIS -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. ## SYNTAX @@ -54,7 +54,7 @@ Update-AzContainerAppAuthConfig -InputObject [-CookieExpirationCo ``` ## DESCRIPTION -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. ## EXAMPLES @@ -105,7 +105,6 @@ Create the AuthConfig for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -287,7 +286,6 @@ Accept wildcard characters: False ### -IdentityProvider The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. -To construct, see NOTES section for IDENTITYPROVIDER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProviders @@ -303,7 +301,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvCert.md b/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvCert.md index 86481a6dbc41..87f510ba60c8 100644 --- a/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvCert.md +++ b/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvCert.md @@ -83,7 +83,6 @@ Update certificate. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -130,7 +129,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvDapr.md b/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvDapr.md index 8f546d53e78f..e1dd1596931f 100644 --- a/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvDapr.md +++ b/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvDapr.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppConnectedEnvDapr ## SYNOPSIS -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. ## SYNTAX @@ -38,7 +38,7 @@ Update-AzContainerAppConnectedEnvDapr -InputObject [-ComponentTyp ``` ## DESCRIPTION -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. ## EXAMPLES @@ -111,7 +111,6 @@ Accept wildcard characters: False ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -188,7 +187,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.App.Models.IAppIdentity @@ -204,7 +202,6 @@ Accept wildcard characters: False ### -Metadata Component metadata -To construct, see NOTES section for METADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[] @@ -266,7 +263,6 @@ Accept wildcard characters: False ### -Secret Collection of secrets used by a Dapr component -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] diff --git a/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvStorage.md b/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvStorage.md index eebaf67bf444..e4f41d7190f1 100644 --- a/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvStorage.md +++ b/src/App/App.Autorest/help/Update-AzContainerAppConnectedEnvStorage.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppConnectedEnvStorage ## SYNOPSIS -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. ## SYNTAX @@ -35,7 +35,7 @@ Update-AzContainerAppConnectedEnvStorage -InputObject [-AzureFile ``` ## DESCRIPTION -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. ## EXAMPLES @@ -150,7 +150,6 @@ Accept wildcard characters: False ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -197,7 +196,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Update-AzContainerAppJob.md b/src/App/App.Autorest/help/Update-AzContainerAppJob.md index bb70c79b0384..2d2fc55a0c53 100644 --- a/src/App/App.Autorest/help/Update-AzContainerAppJob.md +++ b/src/App/App.Autorest/help/Update-AzContainerAppJob.md @@ -102,7 +102,6 @@ Accept wildcard characters: False ### -ConfigurationRegistry Collection of private container registry credentials used by a Container apps job -To construct, see NOTES section for CONFIGURATIONREGISTRY properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[] @@ -148,7 +147,6 @@ Accept wildcard characters: False ### -ConfigurationSecret Collection of secrets used by a Container Apps Job -To construct, see NOTES section for CONFIGURATIONSECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] @@ -287,7 +285,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.App.Models.IAppIdentity @@ -470,7 +467,6 @@ Accept wildcard characters: False ### -ScaleRule Scaling rules. -To construct, see NOTES section for SCALERULE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobScaleRule[] @@ -561,7 +557,6 @@ Accept wildcard characters: False ### -TemplateContainer List of container definitions for the Container App. -To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[] @@ -577,7 +572,6 @@ Accept wildcard characters: False ### -TemplateInitContainer List of specialized containers that run before app containers. -To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[] @@ -593,7 +587,6 @@ Accept wildcard characters: False ### -TemplateVolume List of volume definitions for the Container App. -To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[] diff --git a/src/App/App.Autorest/help/Update-AzContainerAppManagedCert.md b/src/App/App.Autorest/help/Update-AzContainerAppManagedCert.md index 4b8e84190c0f..d9ad27b523df 100644 --- a/src/App/App.Autorest/help/Update-AzContainerAppManagedCert.md +++ b/src/App/App.Autorest/help/Update-AzContainerAppManagedCert.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.App.Models.IAppIdentity @@ -147,7 +146,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Update-AzContainerAppManagedEnv.md b/src/App/App.Autorest/help/Update-AzContainerAppManagedEnv.md index 6c60547e3143..156beb1d4811 100644 --- a/src/App/App.Autorest/help/Update-AzContainerAppManagedEnv.md +++ b/src/App/App.Autorest/help/Update-AzContainerAppManagedEnv.md @@ -174,7 +174,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.App.Models.IAppIdentity @@ -356,7 +355,6 @@ Accept wildcard characters: False ### -WorkloadProfile Workload profiles configured for the Managed Environment. -To construct, see NOTES section for WORKLOADPROFILE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IWorkloadProfile[] diff --git a/src/App/App.Autorest/help/Update-AzContainerAppManagedEnvCert.md b/src/App/App.Autorest/help/Update-AzContainerAppManagedEnvCert.md index cf74b85be64e..e5158ac5cf0a 100644 --- a/src/App/App.Autorest/help/Update-AzContainerAppManagedEnvCert.md +++ b/src/App/App.Autorest/help/Update-AzContainerAppManagedEnvCert.md @@ -130,7 +130,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.App.Models.IAppIdentity @@ -176,7 +175,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/help/Update-AzContainerAppManagedEnvDapr.md b/src/App/App.Autorest/help/Update-AzContainerAppManagedEnvDapr.md index 191730ff5df0..6ad773198808 100644 --- a/src/App/App.Autorest/help/Update-AzContainerAppManagedEnvDapr.md +++ b/src/App/App.Autorest/help/Update-AzContainerAppManagedEnvDapr.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppManagedEnvDapr ## SYNOPSIS -Create a Dapr Component in a Managed Environment. +Update a Dapr Component in a Managed Environment. ## SYNTAX @@ -37,7 +37,7 @@ Update-AzContainerAppManagedEnvDapr -ManagedEnvironmentInputObject [-AzureClientId < ``` ## DESCRIPTION -Create the SourceControl for a Container App. +Update the SourceControl for a Container App. ## EXAMPLES ### Example 1: Update source control for a Container App. ```powershell -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force Update-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" ``` @@ -71,9 +71,9 @@ Update source control for a Container App. ### Example 2: Update source control for a Container App. ```powershell -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force $sourcecontrol = Get-AzContainerAppSourceControl -ContainerAppName azps-containerapp-1 -ResourceGroupName azps_test_group_app -Name current Update-AzContainerAppSourceControl -InputObject $sourcecontrol -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" @@ -89,9 +89,9 @@ Update source control for a Container App. ### Example 3: Update source control for a Container App. ```powershell -$AzureClientSecret = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$RegistryPassword = ConvertTo-SecureString -String "1234" -Force -AsPlainText -$GithubAccessToken = ConvertTo-SecureString -String "1234" -Force -AsPlainText +$AzureClientSecret = ConvertTo-SecureString -String "****" -AsPlainText -Force +$RegistryPassword = ConvertTo-SecureString -String "****" -AsPlainText -Force +$GithubAccessToken = ConvertTo-SecureString -String "****" -AsPlainText -Force $containerapp = Get-AzContainerApp -ResourceGroupName azps_test_group_app -Name azps-containerapp-1 Update-AzContainerAppSourceControl -ContainerAppInputObject $containerapp -Name current -AzureClientId "UserObjectId" -AzureClientSecret $AzureClientSecret -AzureKind "feaderated" -AzureTenantId "UserDirectoryID" -Branch "main" -GithubContextPath "./" -GithubAccessToken $GithubAccessToken -GithubConfigurationImage "azps-containerapp-1" -RegistryPassword $RegistryPassword -RegistryUrl "azpscontainerregistry.azurecr.io" -RegistryUserName "azpscontainerregistry" -RepoUrl "https://github.com/lijinpei2008/ghatest" @@ -214,7 +214,6 @@ Accept wildcard characters: False ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -366,7 +365,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.App.Models.IAppIdentity diff --git a/src/App/App.Autorest/internal/Az.App.internal.psm1 b/src/App/App.Autorest/internal/Az.App.internal.psm1 index 222d04f89363..962f01c634e6 100644 --- a/src/App/App.Autorest/internal/Az.App.internal.psm1 +++ b/src/App/App.Autorest/internal/Az.App.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/App/App.Autorest/test-module.ps1 b/src/App/App.Autorest/test-module.ps1 index c84734a4af26..31a5116a8570 100644 --- a/src/App/App.Autorest/test-module.ps1 +++ b/src/App/App.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/App/App.Autorest/test/loadEnv.ps1 b/src/App/App.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/App/App.Autorest/test/loadEnv.ps1 +++ b/src/App/App.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/App/App.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/App/App.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/App/App.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/App/App/Az.App.psd1 b/src/App/App/Az.App.psd1 index 5c8b294ccd1d..1284512e679c 100644 --- a/src/App/App/Az.App.psd1 +++ b/src/App/App/Az.App.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 8/29/2024 +# Generated on: 9/20/2024 # @{ @@ -57,10 +57,10 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.4'; }) RequiredAssemblies = 'App.Autorest/bin/Az.App.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 = 'App.Autorest/Az.App.format.ps1xml' @@ -177,7 +177,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','App' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'App' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -202,7 +202,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/App/App/ChangeLog.md b/src/App/App/ChangeLog.md index 9ab7606422aa..90c40e9f92fe 100644 --- a/src/App/App/ChangeLog.md +++ b/src/App/App/ChangeLog.md @@ -18,6 +18,16 @@ - Additional information about change #1 --> ## Upcoming Release +* Added breaking change messages: + * `New-AzContainerApp` + * `New-AzContainerAppJob` + * `Update-AzContainerApp` + * `Update-AzContainerAppJob` +* Fixed an issue that caused Get/New-Az* cmdlets with returned objects to incorrectly expose the parameter [-PassThru]. + * `Get-AzContainerApp` + * `Get-AzContainerAppAuthToken` + * `Get-AzContainerAppDiagnosticRoot` + * `New-AzContainerAppManagedCert` ## Version 1.0.1 * Fixed secrets exposure in example documentation. diff --git a/src/App/App/help/Az.App.md b/src/App/App/help/Az.App.md index edde861c74c9..2c1d655f7473 100644 --- a/src/App/App/help/Az.App.md +++ b/src/App/App/help/Az.App.md @@ -276,17 +276,17 @@ Checks if resource name is available. Patches a Container App using JSON Merge Patch ### [Update-AzContainerAppAuthConfig](Update-AzContainerAppAuthConfig.md) -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. ### [Update-AzContainerAppConnectedEnvCert](Update-AzContainerAppConnectedEnvCert.md) Patches a certificate. Currently only patching of tags is supported ### [Update-AzContainerAppConnectedEnvDapr](Update-AzContainerAppConnectedEnvDapr.md) -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. ### [Update-AzContainerAppConnectedEnvStorage](Update-AzContainerAppConnectedEnvStorage.md) -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. ### [Update-AzContainerAppJob](Update-AzContainerAppJob.md) Patches a Container Apps Job using JSON Merge Patch @@ -303,11 +303,11 @@ Patches a certificate. Currently only patching of tags is supported ### [Update-AzContainerAppManagedEnvDapr](Update-AzContainerAppManagedEnvDapr.md) -Create a Dapr Component in a Managed Environment. +Update a Dapr Component in a Managed Environment. ### [Update-AzContainerAppManagedEnvStorage](Update-AzContainerAppManagedEnvStorage.md) -Create storage for a managedEnvironment. +Update storage for a managedEnvironment. ### [Update-AzContainerAppSourceControl](Update-AzContainerAppSourceControl.md) -Create the SourceControl for a Container App. +Update the SourceControl for a Container App. diff --git a/src/App/App/help/Disable-AzContainerAppRevision.md b/src/App/App/help/Disable-AzContainerAppRevision.md index 5dd9811b77f7..93c02e96459e 100644 --- a/src/App/App/help/Disable-AzContainerAppRevision.md +++ b/src/App/App/help/Disable-AzContainerAppRevision.md @@ -15,19 +15,21 @@ Deactivates a revision for a Container App ### Deactivate (Default) ``` Disable-AzContainerAppRevision -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### DeactivateViaIdentityContainerApp ``` Disable-AzContainerAppRevision -Name -ContainerAppInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### DeactivateViaIdentity ``` -Disable-AzContainerAppRevision -InputObject [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] +Disable-AzContainerAppRevision -InputObject [-DefaultProfile ] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -62,7 +64,6 @@ Deactivates a revision for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -109,7 +110,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.App.Models.IAppIdentity @@ -153,6 +153,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/App/App/help/Enable-AzContainerAppRevision.md b/src/App/App/help/Enable-AzContainerAppRevision.md index dfe8778efe88..6061783ebae0 100644 --- a/src/App/App/help/Enable-AzContainerAppRevision.md +++ b/src/App/App/help/Enable-AzContainerAppRevision.md @@ -15,19 +15,21 @@ Activates a revision for a Container App ### Activate (Default) ``` Enable-AzContainerAppRevision -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### ActivateViaIdentityContainerApp ``` Enable-AzContainerAppRevision -Name -ContainerAppInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### ActivateViaIdentity ``` -Enable-AzContainerAppRevision -InputObject [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] +Enable-AzContainerAppRevision -InputObject [-DefaultProfile ] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -62,7 +64,6 @@ Activates a revision for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -109,7 +110,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.App.Models.IAppIdentity @@ -153,6 +153,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/App/App/help/Get-AzContainerApp.md b/src/App/App/help/Get-AzContainerApp.md index b3fed33b6efc..aae81b0d7a62 100644 --- a/src/App/App/help/Get-AzContainerApp.md +++ b/src/App/App/help/Get-AzContainerApp.md @@ -14,24 +14,26 @@ Get the properties of a Container App. ### List (Default) ``` -Get-AzContainerApp [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzContainerApp [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerApp -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzContainerApp -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerApp -InputObject [-DefaultProfile ] [-PassThru] [] +Get-AzContainerApp -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -100,7 +102,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.App.Models.IAppIdentity @@ -129,13 +130,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds +### -ProgressAction +{{ Fill ProgressAction Description }} ```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: Get, GetViaIdentity -Aliases: +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga Required: False Position: Named diff --git a/src/App/App/help/Get-AzContainerAppAuthConfig.md b/src/App/App/help/Get-AzContainerAppAuthConfig.md index 4e8e74f20978..731f026b6954 100644 --- a/src/App/App/help/Get-AzContainerAppAuthConfig.md +++ b/src/App/App/help/Get-AzContainerAppAuthConfig.md @@ -15,24 +15,27 @@ Get a AuthConfig of a Container App. ### List (Default) ``` Get-AzContainerAppAuthConfig -ContainerAppName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzContainerAppAuthConfig -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentityContainerApp ``` Get-AzContainerAppAuthConfig -Name -ContainerAppInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppAuthConfig -InputObject [-DefaultProfile ] [] +Get-AzContainerAppAuthConfig -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -84,7 +87,6 @@ Get a AuthConfig of a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -131,7 +133,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.App.Models.IAppIdentity @@ -160,6 +161,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/App/App/help/Get-AzContainerAppAuthToken.md b/src/App/App/help/Get-AzContainerAppAuthToken.md index a1c9bb3b9eb0..f3f4be845b15 100644 --- a/src/App/App/help/Get-AzContainerAppAuthToken.md +++ b/src/App/App/help/Get-AzContainerAppAuthToken.md @@ -15,13 +15,13 @@ Get auth token for a container app ### Get (Default) ``` Get-AzContainerAppAuthToken -ContainerAppName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppAuthToken -InputObject [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] +Get-AzContainerAppAuthToken -InputObject [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -91,7 +91,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.App.Models.IAppIdentity @@ -105,13 +104,13 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds +### -ProgressAction +{{ Fill ProgressAction Description }} ```yaml -Type: System.Management.Automation.SwitchParameter +Type: System.Management.Automation.ActionPreference Parameter Sets: (All) -Aliases: +Aliases: proga Required: False Position: Named diff --git a/src/App/App/help/Get-AzContainerAppAvailableWorkloadProfile.md b/src/App/App/help/Get-AzContainerAppAvailableWorkloadProfile.md index f3ecfab23b52..3f3dd3d4f420 100644 --- a/src/App/App/help/Get-AzContainerAppAvailableWorkloadProfile.md +++ b/src/App/App/help/Get-AzContainerAppAvailableWorkloadProfile.md @@ -15,13 +15,13 @@ Get all available workload profiles for a location. ### Get (Default) ``` Get-AzContainerAppAvailableWorkloadProfile -Location [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerAppAvailableWorkloadProfile -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -70,7 +70,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.App.Models.IAppIdentity @@ -99,6 +98,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/App/App/help/Get-AzContainerAppBillingMeter.md b/src/App/App/help/Get-AzContainerAppBillingMeter.md index 2d7ec178005e..0eea4215d1ad 100644 --- a/src/App/App/help/Get-AzContainerAppBillingMeter.md +++ b/src/App/App/help/Get-AzContainerAppBillingMeter.md @@ -15,12 +15,13 @@ Get all billingMeters for a location. ### Get (Default) ``` Get-AzContainerAppBillingMeter -Location [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppBillingMeter -InputObject [-DefaultProfile ] [] +Get-AzContainerAppBillingMeter -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -87,7 +88,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.App.Models.IAppIdentity @@ -116,6 +116,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/App/App/help/Get-AzContainerAppConnectedEnv.md b/src/App/App/help/Get-AzContainerAppConnectedEnv.md index 789a3a8123f3..fe6d59b3cbf5 100644 --- a/src/App/App/help/Get-AzContainerAppConnectedEnv.md +++ b/src/App/App/help/Get-AzContainerAppConnectedEnv.md @@ -14,24 +14,26 @@ Get the properties of an connectedEnvironment. ### List (Default) ``` -Get-AzContainerAppConnectedEnv [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzContainerAppConnectedEnv [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerAppConnectedEnv -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzContainerAppConnectedEnv -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppConnectedEnv -InputObject [-DefaultProfile ] [] +Get-AzContainerAppConnectedEnv -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -98,7 +100,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.App.Models.IAppIdentity @@ -127,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/App/App/help/Get-AzContainerAppConnectedEnvCert.md b/src/App/App/help/Get-AzContainerAppConnectedEnvCert.md index 69c1c2f8e1b3..27e7488e24dc 100644 --- a/src/App/App/help/Get-AzContainerAppConnectedEnvCert.md +++ b/src/App/App/help/Get-AzContainerAppConnectedEnvCert.md @@ -15,25 +15,27 @@ Get the specified Certificate. ### List (Default) ``` Get-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### GetViaIdentityConnectedEnvironment ``` Get-AzContainerAppConnectedEnvCert -Name -ConnectedEnvironmentInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerAppConnectedEnvCert -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -85,7 +87,6 @@ Get the specified Certificate. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -132,7 +133,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.App.Models.IAppIdentity @@ -161,6 +161,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/App/App/help/Get-AzContainerAppConnectedEnvDapr.md b/src/App/App/help/Get-AzContainerAppConnectedEnvDapr.md index a6126fea8689..4071ae5a7d2e 100644 --- a/src/App/App/help/Get-AzContainerAppConnectedEnvDapr.md +++ b/src/App/App/help/Get-AzContainerAppConnectedEnvDapr.md @@ -15,25 +15,27 @@ Get a dapr component. ### List (Default) ``` Get-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName -Name - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### GetViaIdentityConnectedEnvironment ``` Get-AzContainerAppConnectedEnvDapr -Name -ConnectedEnvironmentInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerAppConnectedEnvDapr -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -85,7 +87,6 @@ Get a dapr component. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -132,7 +133,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.App.Models.IAppIdentity @@ -161,6 +161,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/App/App/help/Get-AzContainerAppConnectedEnvDaprSecret.md b/src/App/App/help/Get-AzContainerAppConnectedEnvDaprSecret.md index f137daeefc35..57087c02d37e 100644 --- a/src/App/App/help/Get-AzContainerAppConnectedEnvDaprSecret.md +++ b/src/App/App/help/Get-AzContainerAppConnectedEnvDaprSecret.md @@ -14,8 +14,8 @@ List secrets for a dapr component ``` Get-AzContainerAppConnectedEnvDaprSecret -ConnectedEnvironmentName -DaprName - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -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/App/App/help/Get-AzContainerAppConnectedEnvStorage.md b/src/App/App/help/Get-AzContainerAppConnectedEnvStorage.md index e065a3860c2d..62870b50117d 100644 --- a/src/App/App/help/Get-AzContainerAppConnectedEnvStorage.md +++ b/src/App/App/help/Get-AzContainerAppConnectedEnvStorage.md @@ -15,25 +15,27 @@ Get storage for a connectedEnvironment. ### List (Default) ``` Get-AzContainerAppConnectedEnvStorage -ConnectedEnvironmentName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzContainerAppConnectedEnvStorage -ConnectedEnvironmentName -Name - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### GetViaIdentityConnectedEnvironment ``` Get-AzContainerAppConnectedEnvStorage -Name -ConnectedEnvironmentInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerAppConnectedEnvStorage -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -85,7 +87,6 @@ Get storage for a connectedEnvironment. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -132,7 +133,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.App.Models.IAppIdentity @@ -161,6 +161,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/App/App/help/Get-AzContainerAppCustomHostName.md b/src/App/App/help/Get-AzContainerAppCustomHostName.md index 2fd7016d31d9..c5cbdfce4bde 100644 --- a/src/App/App/help/Get-AzContainerAppCustomHostName.md +++ b/src/App/App/help/Get-AzContainerAppCustomHostName.md @@ -14,8 +14,8 @@ Analyzes a custom hostname for a Container App ``` Get-AzContainerAppCustomHostName -ContainerAppName -ResourceGroupName - [-SubscriptionId ] [-CustomHostname ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] [-CustomHostname ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -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/App/App/help/Get-AzContainerAppDiagnosticDetector.md b/src/App/App/help/Get-AzContainerAppDiagnosticDetector.md index e19f175d336f..eeff9b5391a0 100644 --- a/src/App/App/help/Get-AzContainerAppDiagnosticDetector.md +++ b/src/App/App/help/Get-AzContainerAppDiagnosticDetector.md @@ -15,25 +15,27 @@ Get a diagnostics result of a Container App. ### List (Default) ``` Get-AzContainerAppDiagnosticDetector -ContainerAppName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzContainerAppDiagnosticDetector -ContainerAppName -DetectorName - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### GetViaIdentityContainerApp ``` Get-AzContainerAppDiagnosticDetector -DetectorName -ContainerAppInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerAppDiagnosticDetector -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -75,7 +77,6 @@ Get a diagnostics result of a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -137,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.App.Models.IAppIdentity @@ -151,6 +151,21 @@ Accept pipeline input: True (ByValue) 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/App/App/help/Get-AzContainerAppDiagnosticRevision.md b/src/App/App/help/Get-AzContainerAppDiagnosticRevision.md index c30d30dd7a84..d9105aadf1d8 100644 --- a/src/App/App/help/Get-AzContainerAppDiagnosticRevision.md +++ b/src/App/App/help/Get-AzContainerAppDiagnosticRevision.md @@ -15,25 +15,27 @@ Get a revision of a Container App. ### List (Default) ``` Get-AzContainerAppDiagnosticRevision -ContainerAppName -ResourceGroupName - [-SubscriptionId ] [-Filter ] [-DefaultProfile ] [] + [-SubscriptionId ] [-Filter ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerAppDiagnosticRevision -ContainerAppName -ResourceGroupName - -RevisionName [-SubscriptionId ] [-DefaultProfile ] [] + -RevisionName [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### GetViaIdentityContainerApp ``` Get-AzContainerAppDiagnosticRevision -RevisionName -ContainerAppInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerAppDiagnosticRevision -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -71,7 +73,6 @@ Get a revision of a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -133,7 +134,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.App.Models.IAppIdentity @@ -147,6 +147,21 @@ Accept pipeline input: True (ByValue) 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/App/App/help/Get-AzContainerAppDiagnosticRoot.md b/src/App/App/help/Get-AzContainerAppDiagnosticRoot.md index cb4f2a805fe7..0e53234f8723 100644 --- a/src/App/App/help/Get-AzContainerAppDiagnosticRoot.md +++ b/src/App/App/help/Get-AzContainerAppDiagnosticRoot.md @@ -15,13 +15,14 @@ Get the properties of a Container App. ### Get (Default) ``` Get-AzContainerAppDiagnosticRoot -ContainerAppName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentity ``` -Get-AzContainerAppDiagnosticRoot -InputObject [-DefaultProfile ] [-PassThru] - [] +Get-AzContainerAppDiagnosticRoot -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -77,7 +78,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.App.Models.IAppIdentity @@ -91,13 +91,13 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds +### -ProgressAction +{{ Fill ProgressAction Description }} ```yaml -Type: System.Management.Automation.SwitchParameter +Type: System.Management.Automation.ActionPreference Parameter Sets: (All) -Aliases: +Aliases: proga Required: False Position: Named diff --git a/src/App/App/help/Get-AzContainerAppJob.md b/src/App/App/help/Get-AzContainerAppJob.md index fa5017862007..7aed3afdf253 100644 --- a/src/App/App/help/Get-AzContainerAppJob.md +++ b/src/App/App/help/Get-AzContainerAppJob.md @@ -14,24 +14,26 @@ Get the properties of a Container Apps Job. ### List (Default) ``` -Get-AzContainerAppJob [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzContainerAppJob [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzContainerAppJob -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppJob -InputObject [-DefaultProfile ] [] +Get-AzContainerAppJob -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -98,7 +100,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.App.Models.IAppIdentity @@ -127,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/App/App/help/Get-AzContainerAppJobExecution.md b/src/App/App/help/Get-AzContainerAppJobExecution.md index e7f3e99d42f1..6c98f57a17d3 100644 --- a/src/App/App/help/Get-AzContainerAppJobExecution.md +++ b/src/App/App/help/Get-AzContainerAppJobExecution.md @@ -15,18 +15,20 @@ Get details of a single job execution ### Job (Default) ``` Get-AzContainerAppJobExecution -JobName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### JobViaIdentityJob ``` Get-AzContainerAppJobExecution -Name -JobInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### JobViaIdentity ``` -Get-AzContainerAppJobExecution -InputObject [-DefaultProfile ] [] +Get-AzContainerAppJobExecution -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -67,7 +69,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.App.Models.IAppIdentity @@ -83,7 +84,6 @@ Accept wildcard characters: False ### -JobInputObject Identity Parameter -To construct, see NOTES section for JOBINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -127,6 +127,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/App/App/help/Get-AzContainerAppJobSecret.md b/src/App/App/help/Get-AzContainerAppJobSecret.md index 5ad40dae1b1b..cdb7fc36e5b0 100644 --- a/src/App/App/help/Get-AzContainerAppJobSecret.md +++ b/src/App/App/help/Get-AzContainerAppJobSecret.md @@ -14,7 +14,7 @@ List secrets for a container apps job ``` Get-AzContainerAppJobSecret -JobName -ResourceGroupName [-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 +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/App/App/help/Get-AzContainerAppManagedCert.md b/src/App/App/help/Get-AzContainerAppManagedCert.md index 2580ed132975..3348fde40dd3 100644 --- a/src/App/App/help/Get-AzContainerAppManagedCert.md +++ b/src/App/App/help/Get-AzContainerAppManagedCert.md @@ -15,24 +15,26 @@ Get the specified Managed Certificate. ### List (Default) ``` Get-AzContainerAppManagedCert -EnvName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentityManagedEnvironment ``` Get-AzContainerAppManagedCert -Name -ManagedEnvironmentInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppManagedCert -InputObject [-DefaultProfile ] [] +Get-AzContainerAppManagedCert -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -101,7 +103,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.App.Models.IAppIdentity @@ -117,7 +118,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -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/App/App/help/Get-AzContainerAppManagedEnv.md b/src/App/App/help/Get-AzContainerAppManagedEnv.md index e6f5d949fa0b..737b062f9b94 100644 --- a/src/App/App/help/Get-AzContainerAppManagedEnv.md +++ b/src/App/App/help/Get-AzContainerAppManagedEnv.md @@ -14,24 +14,26 @@ Get the properties of a Managed Environment used to host container apps. ### List (Default) ``` -Get-AzContainerAppManagedEnv [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzContainerAppManagedEnv [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerAppManagedEnv -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzContainerAppManagedEnv -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppManagedEnv -InputObject [-DefaultProfile ] [] +Get-AzContainerAppManagedEnv -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -98,7 +100,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.App.Models.IAppIdentity @@ -127,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/App/App/help/Get-AzContainerAppManagedEnvAuthToken.md b/src/App/App/help/Get-AzContainerAppManagedEnvAuthToken.md index f4f04b1a4045..655c99782ad1 100644 --- a/src/App/App/help/Get-AzContainerAppManagedEnvAuthToken.md +++ b/src/App/App/help/Get-AzContainerAppManagedEnvAuthToken.md @@ -15,13 +15,14 @@ Checks if resource name is available. ### Get (Default) ``` Get-AzContainerAppManagedEnvAuthToken -EnvName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppManagedEnvAuthToken -InputObject [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +Get-AzContainerAppManagedEnvAuthToken -InputObject [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -77,7 +78,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.App.Models.IAppIdentity @@ -91,6 +91,21 @@ Accept pipeline input: True (ByValue) 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/App/App/help/Get-AzContainerAppManagedEnvCert.md b/src/App/App/help/Get-AzContainerAppManagedEnvCert.md index 34dad29f3a2d..1b5a9e98b95b 100644 --- a/src/App/App/help/Get-AzContainerAppManagedEnvCert.md +++ b/src/App/App/help/Get-AzContainerAppManagedEnvCert.md @@ -15,24 +15,26 @@ Get the specified Certificate. ### List (Default) ``` Get-AzContainerAppManagedEnvCert -EnvName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerAppManagedEnvCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentityManagedEnvironment ``` Get-AzContainerAppManagedEnvCert -Name -ManagedEnvironmentInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppManagedEnvCert -InputObject [-DefaultProfile ] [] +Get-AzContainerAppManagedEnvCert -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -115,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.App.Models.IAppIdentity @@ -131,7 +132,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -160,6 +160,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/App/App/help/Get-AzContainerAppManagedEnvDapr.md b/src/App/App/help/Get-AzContainerAppManagedEnvDapr.md index a83e2e9d26fc..73914859394b 100644 --- a/src/App/App/help/Get-AzContainerAppManagedEnvDapr.md +++ b/src/App/App/help/Get-AzContainerAppManagedEnvDapr.md @@ -15,24 +15,26 @@ Get a dapr component. ### List (Default) ``` Get-AzContainerAppManagedEnvDapr -EnvName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerAppManagedEnvDapr -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentityManagedEnvironment ``` Get-AzContainerAppManagedEnvDapr -Name -ManagedEnvironmentInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppManagedEnvDapr -InputObject [-DefaultProfile ] [] +Get-AzContainerAppManagedEnvDapr -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -115,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.App.Models.IAppIdentity @@ -131,7 +132,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -160,6 +160,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/App/App/help/Get-AzContainerAppManagedEnvDaprSecret.md b/src/App/App/help/Get-AzContainerAppManagedEnvDaprSecret.md index b594ccf5df73..eab8ceffd96c 100644 --- a/src/App/App/help/Get-AzContainerAppManagedEnvDaprSecret.md +++ b/src/App/App/help/Get-AzContainerAppManagedEnvDaprSecret.md @@ -14,7 +14,8 @@ List secrets for a dapr component ``` Get-AzContainerAppManagedEnvDaprSecret -DaprName -EnvName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -83,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/App/App/help/Get-AzContainerAppManagedEnvDiagnosticDetector.md b/src/App/App/help/Get-AzContainerAppManagedEnvDiagnosticDetector.md index cb7b91fde520..71753ac9b7bd 100644 --- a/src/App/App/help/Get-AzContainerAppManagedEnvDiagnosticDetector.md +++ b/src/App/App/help/Get-AzContainerAppManagedEnvDiagnosticDetector.md @@ -15,25 +15,27 @@ Get the diagnostics data for a Managed Environment used to host container apps. ### List (Default) ``` Get-AzContainerAppManagedEnvDiagnosticDetector -EnvName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzContainerAppManagedEnvDiagnosticDetector -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentityManagedEnvironment ``` Get-AzContainerAppManagedEnvDiagnosticDetector -Name -ManagedEnvironmentInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerAppManagedEnvDiagnosticDetector -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -90,7 +92,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.App.Models.IAppIdentity @@ -106,7 +107,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -135,6 +135,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/App/App/help/Get-AzContainerAppManagedEnvDiagnosticRoot.md b/src/App/App/help/Get-AzContainerAppManagedEnvDiagnosticRoot.md index eff582af1b1a..3988316e53bb 100644 --- a/src/App/App/help/Get-AzContainerAppManagedEnvDiagnosticRoot.md +++ b/src/App/App/help/Get-AzContainerAppManagedEnvDiagnosticRoot.md @@ -15,13 +15,14 @@ Get the properties of a Managed Environment used to host container apps. ### Get (Default) ``` Get-AzContainerAppManagedEnvDiagnosticRoot -EnvName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentity ``` Get-AzContainerAppManagedEnvDiagnosticRoot -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -77,7 +78,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.App.Models.IAppIdentity @@ -91,6 +91,21 @@ Accept pipeline input: True (ByValue) 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/App/App/help/Get-AzContainerAppManagedEnvStorage.md b/src/App/App/help/Get-AzContainerAppManagedEnvStorage.md index 0b5b9efa5da8..e34affcc470c 100644 --- a/src/App/App/help/Get-AzContainerAppManagedEnvStorage.md +++ b/src/App/App/help/Get-AzContainerAppManagedEnvStorage.md @@ -15,25 +15,26 @@ Get storage for a managedEnvironment. ### List (Default) ``` Get-AzContainerAppManagedEnvStorage -EnvName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerAppManagedEnvStorage -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentityManagedEnvironment ``` Get-AzContainerAppManagedEnvStorage -Name -ManagedEnvironmentInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzContainerAppManagedEnvStorage -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -116,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.App.Models.IAppIdentity @@ -132,7 +132,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -161,6 +160,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/App/App/help/Get-AzContainerAppManagedEnvWorkloadProfileState.md b/src/App/App/help/Get-AzContainerAppManagedEnvWorkloadProfileState.md index 916bd2b694eb..02fa0734091f 100644 --- a/src/App/App/help/Get-AzContainerAppManagedEnvWorkloadProfileState.md +++ b/src/App/App/help/Get-AzContainerAppManagedEnvWorkloadProfileState.md @@ -14,7 +14,8 @@ Get all workload Profile States for a Managed Environment. ``` Get-AzContainerAppManagedEnvWorkloadProfileState -EnvName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -68,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/App/App/help/Get-AzContainerAppRevision.md b/src/App/App/help/Get-AzContainerAppRevision.md index 65a8b9656903..1c7f0aca7c9b 100644 --- a/src/App/App/help/Get-AzContainerAppRevision.md +++ b/src/App/App/help/Get-AzContainerAppRevision.md @@ -15,24 +15,26 @@ Get a revision of a Container App. ### List (Default) ``` Get-AzContainerAppRevision -ContainerAppName -ResourceGroupName [-SubscriptionId ] - [-Filter ] [-DefaultProfile ] [] + [-Filter ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzContainerAppRevision -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentityContainerApp ``` Get-AzContainerAppRevision -Name -ContainerAppInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppRevision -InputObject [-DefaultProfile ] [] +Get-AzContainerAppRevision -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -84,7 +86,6 @@ Get a revision by Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -146,7 +147,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.App.Models.IAppIdentity @@ -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 +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/App/App/help/Get-AzContainerAppRevisionReplica.md b/src/App/App/help/Get-AzContainerAppRevisionReplica.md index 0ac7a9cb65c0..deafd55d6c68 100644 --- a/src/App/App/help/Get-AzContainerAppRevisionReplica.md +++ b/src/App/App/help/Get-AzContainerAppRevisionReplica.md @@ -15,30 +15,33 @@ Get a replica for a Container App Revision. ### List (Default) ``` Get-AzContainerAppRevisionReplica -ContainerAppName -ResourceGroupName -RevisionName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzContainerAppRevisionReplica -ContainerAppName -Name -ResourceGroupName - -RevisionName [-SubscriptionId ] [-DefaultProfile ] [] + -RevisionName [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### GetViaIdentityRevision ``` Get-AzContainerAppRevisionReplica -Name -RevisionInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityContainerApp ``` Get-AzContainerAppRevisionReplica -Name -RevisionName -ContainerAppInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppRevisionReplica -InputObject [-DefaultProfile ] [] +Get-AzContainerAppRevisionReplica -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -106,7 +109,6 @@ Get a replica for a Container App Revision. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -153,7 +155,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.App.Models.IAppIdentity @@ -182,6 +183,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. @@ -200,7 +216,6 @@ Accept wildcard characters: False ### -RevisionInputObject Identity Parameter -To construct, see NOTES section for REVISIONINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity diff --git a/src/App/App/help/Get-AzContainerAppSecret.md b/src/App/App/help/Get-AzContainerAppSecret.md index 6a45441323c6..5f236b50bd26 100644 --- a/src/App/App/help/Get-AzContainerAppSecret.md +++ b/src/App/App/help/Get-AzContainerAppSecret.md @@ -14,7 +14,7 @@ List secrets for a container app ``` Get-AzContainerAppSecret -ContainerAppName -ResourceGroupName [-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 +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/App/App/help/Get-AzContainerAppSourceControl.md b/src/App/App/help/Get-AzContainerAppSourceControl.md index bddd703e1361..3a5a2d1e599a 100644 --- a/src/App/App/help/Get-AzContainerAppSourceControl.md +++ b/src/App/App/help/Get-AzContainerAppSourceControl.md @@ -15,24 +15,27 @@ Get a SourceControl of a Container App. ### List (Default) ``` Get-AzContainerAppSourceControl -ContainerAppName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzContainerAppSourceControl -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### GetViaIdentityContainerApp ``` Get-AzContainerAppSourceControl -Name -ContainerAppInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` -Get-AzContainerAppSourceControl -InputObject [-DefaultProfile ] [] +Get-AzContainerAppSourceControl -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -84,7 +87,6 @@ Get a SourceControl of a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -131,7 +133,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.App.Models.IAppIdentity @@ -160,6 +161,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/App/App/help/New-AzContainerApp.md b/src/App/App/help/New-AzContainerApp.md index 3ebba4eb4f28..da2c926ce553 100644 --- a/src/App/App/help/New-AzContainerApp.md +++ b/src/App/App/help/New-AzContainerApp.md @@ -22,19 +22,21 @@ New-AzContainerApp -Name -ResourceGroupName [-SubscriptionId < [-TemplateInitContainer ] [-TemplateRevisionSuffix ] [-TemplateServiceBind ] [-TemplateTerminationGracePeriodSecond ] [-TemplateVolume ] [-WorkloadProfileName ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerApp -Name -ResourceGroupName [-SubscriptionId ] -JsonString - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### CreateViaJsonFilePath ``` New-AzContainerApp -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### CreateViaIdentityExpanded @@ -47,7 +49,7 @@ New-AzContainerApp -InputObject -Location [-Configuratio [-TemplateInitContainer ] [-TemplateRevisionSuffix ] [-TemplateServiceBind ] [-TemplateTerminationGracePeriodSecond ] [-TemplateVolume ] [-WorkloadProfileName ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -145,7 +147,6 @@ Accept wildcard characters: False ### -Configuration Non versioned Container App configuration properties. -To construct, see NOTES section for CONFIGURATION properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration @@ -254,7 +255,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.App.Models.IAppIdentity @@ -376,6 +376,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. @@ -427,7 +442,6 @@ Accept wildcard characters: False ### -ScaleRule Scaling rules. -To construct, see NOTES section for SCALERULE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRule[] @@ -473,7 +487,6 @@ Accept wildcard characters: False ### -TemplateContainer List of container definitions for the Container App. -To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[] @@ -489,7 +502,6 @@ Accept wildcard characters: False ### -TemplateInitContainer List of specialized containers that run before app containers. -To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[] @@ -520,7 +532,6 @@ Accept wildcard characters: False ### -TemplateServiceBind List of container app services bound to the app -To construct, see NOTES section for TEMPLATESERVICEBIND properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IServiceBind[] @@ -556,7 +567,6 @@ Accept wildcard characters: False ### -TemplateVolume List of volume definitions for the Container App. -To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[] diff --git a/src/App/App/help/New-AzContainerAppAuthConfig.md b/src/App/App/help/New-AzContainerAppAuthConfig.md index 93ff8dc1b73d..5dd26945d2f6 100644 --- a/src/App/App/help/New-AzContainerAppAuthConfig.md +++ b/src/App/App/help/New-AzContainerAppAuthConfig.md @@ -23,21 +23,21 @@ New-AzContainerAppAuthConfig -ContainerAppName -Name -Resource [-LoginAllowedExternalRedirectUrl ] [-LoginPreserveUrlFragmentsForLogin] [-NonceExpirationInterval ] [-NonceValidateNonce] [-PlatformEnabled] [-PlatformRuntimeVersion ] [-RouteApiPrefix ] [-RouteLogoutEndpoint ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerAppAuthConfig -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppAuthConfig -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityContainerAppExpanded @@ -51,7 +51,7 @@ New-AzContainerAppAuthConfig -Name -ContainerAppInputObject ] [-LoginPreserveUrlFragmentsForLogin] [-NonceExpirationInterval ] [-NonceValidateNonce] [-PlatformEnabled] [-PlatformRuntimeVersion ] [-RouteApiPrefix ] [-RouteLogoutEndpoint ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded @@ -64,7 +64,8 @@ New-AzContainerAppAuthConfig -InputObject [-CookieExpirationConve [-IdentityProvider ] [-LoginAllowedExternalRedirectUrl ] [-LoginPreserveUrlFragmentsForLogin] [-NonceExpirationInterval ] [-NonceValidateNonce] [-PlatformEnabled] [-PlatformRuntimeVersion ] [-RouteApiPrefix ] - [-RouteLogoutEndpoint ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-RouteLogoutEndpoint ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -91,7 +92,6 @@ Create the AuthConfig for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -273,7 +273,6 @@ Accept wildcard characters: False ### -IdentityProvider The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. -To construct, see NOTES section for IDENTITYPROVIDER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProviders @@ -289,7 +288,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.App.Models.IAppIdentity @@ -439,6 +437,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/App/App/help/New-AzContainerAppConfigurationObject.md b/src/App/App/help/New-AzContainerAppConfigurationObject.md index 84281fdc21eb..2afdcb94afda 100644 --- a/src/App/App/help/New-AzContainerAppConfigurationObject.md +++ b/src/App/App/help/New-AzContainerAppConfigurationObject.md @@ -23,7 +23,7 @@ New-AzContainerAppConfigurationObject [-ActiveRevisionsMode ] [-CorPolic [-IngressIPSecurityRestriction ] [-IngressTargetPort ] [-IngressTraffic ] [-IngressTransport ] [-MaxInactiveRevision ] [-Registry ] [-Secret ] [-ServiceType ] - [-StickySessionAffinity ] [] + [-StickySessionAffinity ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -320,7 +320,6 @@ Accept wildcard characters: False ### -IngressCustomDomain custom domain bindings for Container Apps' hostnames. -To construct, see NOTES section for INGRESSCUSTOMDOMAIN properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICustomDomain[] @@ -366,7 +365,6 @@ Accept wildcard characters: False ### -IngressIPSecurityRestriction Rules to restrict incoming IP address. -To construct, see NOTES section for INGRESSIPSECURITYRESTRICTION properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIPSecurityRestrictionRule[] @@ -397,7 +395,6 @@ Accept wildcard characters: False ### -IngressTraffic Traffic weights for app's revisions. -To construct, see NOTES section for INGRESSTRAFFIC properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITrafficWeight[] @@ -442,9 +439,23 @@ 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 +``` + ### -Registry Collection of private container registry credentials for containers used by the Container app. -To construct, see NOTES section for REGISTRY properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[] @@ -460,7 +471,6 @@ Accept wildcard characters: False ### -Secret Collection of secrets used by a Container app. -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] diff --git a/src/App/App/help/New-AzContainerAppConnectedEnv.md b/src/App/App/help/New-AzContainerAppConnectedEnv.md index 0f855d02ea03..e17bc25b6b41 100644 --- a/src/App/App/help/New-AzContainerAppConnectedEnv.md +++ b/src/App/App/help/New-AzContainerAppConnectedEnv.md @@ -18,21 +18,22 @@ New-AzContainerAppConnectedEnv -Name -ResourceGroupName [-Subs -Location [-CustomDomainConfigurationCertificateValueInputFile ] [-CustomDomainConfigurationDnsSuffix ] [-CustomDomainPassword ] [-DaprAiConnectionString ] [-ExtendedLocationName ] [-ExtendedLocationType ] - [-StaticIP ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-StaticIP ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerAppConnectedEnv -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppConnectedEnv -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded @@ -41,7 +42,7 @@ New-AzContainerAppConnectedEnv -InputObject -Location [-CustomDomainConfigurationCertificateValueInputFile ] [-CustomDomainConfigurationDnsSuffix ] [-CustomDomainPassword ] [-DaprAiConnectionString ] [-ExtendedLocationName ] [-ExtendedLocationType ] [-StaticIP ] [-Tag ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-WhatIf] [-Confirm] [] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -188,7 +189,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.App.Models.IAppIdentity @@ -277,6 +277,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/App/App/help/New-AzContainerAppConnectedEnvCert.md b/src/App/App/help/New-AzContainerAppConnectedEnvCert.md index 9170cd4f8d5c..c2f67b640b76 100644 --- a/src/App/App/help/New-AzContainerAppConnectedEnvCert.md +++ b/src/App/App/help/New-AzContainerAppConnectedEnvCert.md @@ -15,37 +15,37 @@ Create a Certificate. ### CreateExpanded (Default) ``` New-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name - -ResourceGroupName [-SubscriptionId ] -Location [-InputFile ] - [-Password ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + -ResourceGroupName [-SubscriptionId ] [-InputFile ] [-Location ] + [-Password ] [-Tag ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityConnectedEnvironmentExpanded ``` New-AzContainerAppConnectedEnvCert -Name -ConnectedEnvironmentInputObject - -Location [-InputFile ] [-Password ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-InputFile ] [-Location ] [-Password ] [-Tag ] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` -New-AzContainerAppConnectedEnvCert -InputObject -Location [-InputFile ] - [-Password ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +New-AzContainerAppConnectedEnvCert -InputObject [-InputFile ] [-Location ] + [-Password ] [-Tag ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -75,7 +75,6 @@ Create a Certificate. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -137,7 +136,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.App.Models.IAppIdentity @@ -189,7 +187,7 @@ Type: System.String Parameter Sets: CreateExpanded, CreateViaIdentityConnectedEnvironmentExpanded, CreateViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -226,6 +224,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/App/App/help/New-AzContainerAppConnectedEnvDapr.md b/src/App/App/help/New-AzContainerAppConnectedEnvDapr.md index 05ef3d68896a..05c1d97a8854 100644 --- a/src/App/App/help/New-AzContainerAppConnectedEnvDapr.md +++ b/src/App/App/help/New-AzContainerAppConnectedEnvDapr.md @@ -17,22 +17,22 @@ Create a Dapr Component in a connected environment. New-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] - [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityConnectedEnvironmentExpanded @@ -40,15 +40,15 @@ New-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName -Name -ConnectedEnvironmentInputObject [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] [-SecretStoreComponent ] [-Version ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzContainerAppConnectedEnvDapr -InputObject [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] - [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -92,7 +92,6 @@ Accept wildcard characters: False ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -169,7 +168,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.App.Models.IAppIdentity @@ -215,7 +213,6 @@ Accept wildcard characters: False ### -Metadata Component metadata -To construct, see NOTES section for METADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[] @@ -244,6 +241,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. @@ -277,7 +289,6 @@ Accept wildcard characters: False ### -Secret Collection of secrets used by a Dapr component -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] diff --git a/src/App/App/help/New-AzContainerAppConnectedEnvStorage.md b/src/App/App/help/New-AzContainerAppConnectedEnvStorage.md index ec55dda20083..d09257802b75 100644 --- a/src/App/App/help/New-AzContainerAppConnectedEnvStorage.md +++ b/src/App/App/help/New-AzContainerAppConnectedEnvStorage.md @@ -17,35 +17,36 @@ Create storage for a connectedEnvironment. New-AzContainerAppConnectedEnvStorage -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] [-AzureFileShareName ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerAppConnectedEnvStorage -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppConnectedEnvStorage -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityConnectedEnvironmentExpanded ``` New-AzContainerAppConnectedEnvStorage -Name -ConnectedEnvironmentInputObject [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] - [-AzureFileShareName ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-AzureFileShareName ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzContainerAppConnectedEnvStorage -InputObject [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] [-AzureFileShareName ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -133,7 +134,6 @@ Accept wildcard characters: False ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -180,7 +180,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.App.Models.IAppIdentity @@ -239,6 +238,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/App/App/help/New-AzContainerAppCustomDomainObject.md b/src/App/App/help/New-AzContainerAppCustomDomainObject.md index 6d43d1fc531e..bd71624136be 100644 --- a/src/App/App/help/New-AzContainerAppCustomDomainObject.md +++ b/src/App/App/help/New-AzContainerAppCustomDomainObject.md @@ -14,7 +14,7 @@ Create an in-memory object for CustomDomain. ``` New-AzContainerAppCustomDomainObject -Name [-BindingType ] [-CertificateId ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -85,6 +85,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/App/App/help/New-AzContainerAppDaprMetadataObject.md b/src/App/App/help/New-AzContainerAppDaprMetadataObject.md index 38b6deb82c72..2cd51292d07b 100644 --- a/src/App/App/help/New-AzContainerAppDaprMetadataObject.md +++ b/src/App/App/help/New-AzContainerAppDaprMetadataObject.md @@ -14,7 +14,7 @@ Create an in-memory object for DaprMetadata. ``` New-AzContainerAppDaprMetadataObject [-Name ] [-SecretRef ] [-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 +``` + ### -SecretRef Name of the Dapr Component secret from which to pull the metadata property value. diff --git a/src/App/App/help/New-AzContainerAppEnvironmentVarObject.md b/src/App/App/help/New-AzContainerAppEnvironmentVarObject.md index 2fec9e94ee26..513dda9ef553 100644 --- a/src/App/App/help/New-AzContainerAppEnvironmentVarObject.md +++ b/src/App/App/help/New-AzContainerAppEnvironmentVarObject.md @@ -14,7 +14,7 @@ Create an in-memory object for EnvironmentVar. ``` New-AzContainerAppEnvironmentVarObject [-Name ] [-SecretRef ] [-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 +``` + ### -SecretRef Name of the Container App secret from which to pull the environment variable value. diff --git a/src/App/App/help/New-AzContainerAppIPSecurityRestrictionRuleObject.md b/src/App/App/help/New-AzContainerAppIPSecurityRestrictionRuleObject.md index 948ee5d965b9..e8320cd5d8dd 100644 --- a/src/App/App/help/New-AzContainerAppIPSecurityRestrictionRuleObject.md +++ b/src/App/App/help/New-AzContainerAppIPSecurityRestrictionRuleObject.md @@ -14,7 +14,7 @@ Create an in-memory object for IPSecurityRestrictionRule. ``` New-AzContainerAppIPSecurityRestrictionRuleObject -Action -IPAddressRange -Name - [-Description ] [] + [-Description ] [-ProgressAction ] [] ``` ## 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 +``` + ### 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/App/App/help/New-AzContainerAppIdentityProviderObject.md b/src/App/App/help/New-AzContainerAppIdentityProviderObject.md index f1cd9fdb584d..1f758452bd8b 100644 --- a/src/App/App/help/New-AzContainerAppIdentityProviderObject.md +++ b/src/App/App/help/New-AzContainerAppIdentityProviderObject.md @@ -34,7 +34,7 @@ New-AzContainerAppIdentityProviderObject [-AllowedPrincipalGroup ] [-RegistrationClientSecretCertificateSubjectAlternativeName ] [-RegistrationClientSecretCertificateThumbprint ] [-RegistrationConsumerKey ] [-RegistrationConsumerSecretSettingName ] [-RegistrationOpenIdIssuer ] - [-TwitterEnabled ] [] + [-TwitterEnabled ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -262,7 +262,6 @@ Accept wildcard characters: False ### -CustomOpenIdConnectProvider The map of the name of the alias of each custom Open ID Connect provider to the configuration settings of the custom Open ID Connect provider. -To construct, see NOTES section for CUSTOMOPENIDCONNECTPROVIDER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProvidersCustomOpenIdConnectProviders @@ -533,6 +532,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 +``` + ### -RegistrationAppId The App ID of the app used for login. @@ -653,7 +667,7 @@ Accept wildcard characters: False ### -RegistrationOpenIdIssuer The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. -`https://login.microsoftonline.com/v2.0/{tenant-guid}/`. +https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a case-sensitive identifier for the token issuer. More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html. diff --git a/src/App/App/help/New-AzContainerAppInitContainerTemplateObject.md b/src/App/App/help/New-AzContainerAppInitContainerTemplateObject.md index 3bb77668d805..52b52373ae65 100644 --- a/src/App/App/help/New-AzContainerAppInitContainerTemplateObject.md +++ b/src/App/App/help/New-AzContainerAppInitContainerTemplateObject.md @@ -15,7 +15,8 @@ Create an in-memory object for InitContainer. ``` New-AzContainerAppInitContainerTemplateObject [-Arg ] [-Command ] [-Env ] [-Image ] [-Name ] [-ResourceCpu ] - [-ResourceMemory ] [-VolumeMount ] [] + [-ResourceMemory ] [-VolumeMount ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -70,7 +71,6 @@ Accept wildcard characters: False ### -Env Container environment variables. -To construct, see NOTES section for ENV properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[] @@ -114,6 +114,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 +``` + ### -ResourceCpu Required CPU in cores, e.g. 0.5. @@ -148,7 +163,6 @@ Accept wildcard characters: False ### -VolumeMount Container volume mounts. -To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolumeMount[] diff --git a/src/App/App/help/New-AzContainerAppJob.md b/src/App/App/help/New-AzContainerAppJob.md index 353622def1c3..faa700b3b985 100644 --- a/src/App/App/help/New-AzContainerAppJob.md +++ b/src/App/App/help/New-AzContainerAppJob.md @@ -25,20 +25,21 @@ New-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionI [-ScheduleTriggerConfigParallelism ] [-ScheduleTriggerConfigReplicaCompletionCount ] [-Tag ] [-TemplateContainer ] [-TemplateInitContainer ] [-TemplateVolume ] [-WorkloadProfileName ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded @@ -54,7 +55,7 @@ New-AzContainerAppJob -InputObject -Location [-ScheduleTriggerConfigParallelism ] [-ScheduleTriggerConfigReplicaCompletionCount ] [-Tag ] [-TemplateContainer ] [-TemplateInitContainer ] [-TemplateVolume ] [-WorkloadProfileName ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -99,7 +100,6 @@ Accept wildcard characters: False ### -ConfigurationRegistry Collection of private container registry credentials used by a Container apps job -To construct, see NOTES section for CONFIGURATIONREGISTRY properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[] @@ -145,7 +145,6 @@ Accept wildcard characters: False ### -ConfigurationSecret Collection of secrets used by a Container Apps Job -To construct, see NOTES section for CONFIGURATIONSECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] @@ -269,7 +268,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.App.Models.IAppIdentity @@ -388,6 +386,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. @@ -452,7 +465,6 @@ Accept wildcard characters: False ### -ScaleRule Scaling rules. -To construct, see NOTES section for SCALERULE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobScaleRule[] @@ -543,7 +555,6 @@ Accept wildcard characters: False ### -TemplateContainer List of container definitions for the Container App. -To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[] @@ -559,7 +570,6 @@ Accept wildcard characters: False ### -TemplateInitContainer List of specialized containers that run before app containers. -To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[] @@ -575,7 +585,6 @@ Accept wildcard characters: False ### -TemplateVolume List of volume definitions for the Container App. -To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[] diff --git a/src/App/App/help/New-AzContainerAppJobExecutionContainerObject.md b/src/App/App/help/New-AzContainerAppJobExecutionContainerObject.md index 49c39d4a6372..a946e1376e44 100644 --- a/src/App/App/help/New-AzContainerAppJobExecutionContainerObject.md +++ b/src/App/App/help/New-AzContainerAppJobExecutionContainerObject.md @@ -15,7 +15,7 @@ Create an in-memory object for JobExecutionContainer. ``` New-AzContainerAppJobExecutionContainerObject [-Arg ] [-Command ] [-Env ] [-Image ] [-Name ] [-ResourceCpu ] - [-ResourceMemory ] [] + [-ResourceMemory ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -70,7 +70,6 @@ Accept wildcard characters: False ### -Env Container environment variables. -To construct, see NOTES section for ENV properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[] @@ -114,6 +113,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 +``` + ### -ResourceCpu Required CPU in cores, e.g. 0.5. diff --git a/src/App/App/help/New-AzContainerAppJobScaleRuleObject.md b/src/App/App/help/New-AzContainerAppJobScaleRuleObject.md index 5ba6ca5b759f..1dd4cb48199a 100644 --- a/src/App/App/help/New-AzContainerAppJobScaleRuleObject.md +++ b/src/App/App/help/New-AzContainerAppJobScaleRuleObject.md @@ -14,7 +14,7 @@ Create an in-memory object for JobScaleRule. ``` New-AzContainerAppJobScaleRuleObject [-Auth ] [-Metadata ] [-Name ] - [-Type ] [] + [-Type ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -40,7 +40,6 @@ Create an in-memory object for JobScaleRule. ### -Auth Authentication secrets for the scale rule. -To construct, see NOTES section for AUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] @@ -84,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 +``` + ### -Type Type of the scale rule eg: azure-servicebus, redis etc. diff --git a/src/App/App/help/New-AzContainerAppManagedCert.md b/src/App/App/help/New-AzContainerAppManagedCert.md index dba1ff86782e..65366030fd3a 100644 --- a/src/App/App/help/New-AzContainerAppManagedCert.md +++ b/src/App/App/help/New-AzContainerAppManagedCert.md @@ -15,37 +15,38 @@ Create a Managed Certificate. ### CreateExpanded (Default) ``` New-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -Location [-DomainControlValidation ] [-SubjectName ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] [-DomainControlValidation ] [-Location ] [-SubjectName ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityManagedEnvironmentExpanded ``` -New-AzContainerAppManagedCert -Name -ManagedEnvironmentInputObject -Location - [-DomainControlValidation ] [-SubjectName ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +New-AzContainerAppManagedCert -Name -ManagedEnvironmentInputObject + [-DomainControlValidation ] [-Location ] [-SubjectName ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### CreateViaIdentityExpanded ``` -New-AzContainerAppManagedCert -InputObject -Location - [-DomainControlValidation ] [-SubjectName ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +New-AzContainerAppManagedCert -InputObject [-DomainControlValidation ] + [-Location ] [-SubjectName ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -133,7 +134,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.App.Models.IAppIdentity @@ -185,7 +185,7 @@ Type: System.String Parameter Sets: CreateExpanded, CreateViaIdentityManagedEnvironmentExpanded, CreateViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -194,7 +194,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -238,13 +237,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -PassThru -Returns true when the command succeeds +### -ProgressAction +{{ Fill ProgressAction Description }} ```yaml -Type: System.Management.Automation.SwitchParameter +Type: System.Management.Automation.ActionPreference Parameter Sets: (All) -Aliases: +Aliases: proga Required: False Position: Named diff --git a/src/App/App/help/New-AzContainerAppManagedEnv.md b/src/App/App/help/New-AzContainerAppManagedEnv.md index 6c5f49d28992..073b66c259cb 100644 --- a/src/App/App/help/New-AzContainerAppManagedEnv.md +++ b/src/App/App/help/New-AzContainerAppManagedEnv.md @@ -23,20 +23,22 @@ New-AzContainerAppManagedEnv -Name -ResourceGroupName [-Subscr [-VnetConfigurationDockerBridgeCidr ] [-VnetConfigurationInfrastructureSubnetId ] [-VnetConfigurationInternal] [-VnetConfigurationPlatformReservedCidr ] [-VnetConfigurationPlatformReservedDnsIP ] [-WorkloadProfile ] [-ZoneRedundant] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### CreateViaJsonString ``` New-AzContainerAppManagedEnv -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppManagedEnv -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded @@ -50,7 +52,8 @@ New-AzContainerAppManagedEnv -InputObject -Location [-VnetConfigurationDockerBridgeCidr ] [-VnetConfigurationInfrastructureSubnetId ] [-VnetConfigurationInternal] [-VnetConfigurationPlatformReservedCidr ] [-VnetConfigurationPlatformReservedDnsIP ] [-WorkloadProfile ] [-ZoneRedundant] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -218,7 +221,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.App.Models.IAppIdentity @@ -367,6 +369,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. @@ -495,7 +512,6 @@ Accept wildcard characters: False ### -WorkloadProfile Workload profiles configured for the Managed Environment. -To construct, see NOTES section for WORKLOADPROFILE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IWorkloadProfile[] diff --git a/src/App/App/help/New-AzContainerAppManagedEnvCert.md b/src/App/App/help/New-AzContainerAppManagedEnvCert.md index e0cbb654137f..e9790e7cc1a6 100644 --- a/src/App/App/help/New-AzContainerAppManagedEnvCert.md +++ b/src/App/App/help/New-AzContainerAppManagedEnvCert.md @@ -15,36 +15,37 @@ Create a Certificate. ### CreateExpanded (Default) ``` New-AzContainerAppManagedEnvCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -Location [-InputFile ] [-Password ] - [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-InputFile ] [-Location ] [-Password ] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### CreateViaJsonString ``` New-AzContainerAppManagedEnvCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppManagedEnvCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityManagedEnvironmentExpanded ``` New-AzContainerAppManagedEnvCert -Name -ManagedEnvironmentInputObject - -Location [-InputFile ] [-Password ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-InputFile ] [-Location ] [-Password ] [-Tag ] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` -New-AzContainerAppManagedEnvCert -InputObject -Location [-InputFile ] - [-Password ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +New-AzContainerAppManagedEnvCert -InputObject [-InputFile ] [-Location ] + [-Password ] [-Tag ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -120,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.App.Models.IAppIdentity @@ -172,7 +172,7 @@ Type: System.String Parameter Sets: CreateExpanded, CreateViaIdentityManagedEnvironmentExpanded, CreateViaIdentityExpanded Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -181,7 +181,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -225,6 +224,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/App/App/help/New-AzContainerAppManagedEnvDapr.md b/src/App/App/help/New-AzContainerAppManagedEnvDapr.md index 6a49251692cb..8840c47ce524 100644 --- a/src/App/App/help/New-AzContainerAppManagedEnvDapr.md +++ b/src/App/App/help/New-AzContainerAppManagedEnvDapr.md @@ -17,21 +17,22 @@ Create a Dapr Component in a Managed Environment. New-AzContainerAppManagedEnvDapr -EnvName -Name -ResourceGroupName [-SubscriptionId ] [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] [-SecretStoreComponent ] - [-Version ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-Version ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### CreateViaJsonString ``` New-AzContainerAppManagedEnvDapr -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppManagedEnvDapr -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityManagedEnvironmentExpanded @@ -39,15 +40,15 @@ New-AzContainerAppManagedEnvDapr -EnvName -Name -ResourceGroup New-AzContainerAppManagedEnvDapr -Name -ManagedEnvironmentInputObject [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] [-SecretStoreComponent ] [-Version ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzContainerAppManagedEnvDapr -InputObject [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] - [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -152,7 +153,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.App.Models.IAppIdentity @@ -198,7 +198,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -214,7 +213,6 @@ Accept wildcard characters: False ### -Metadata Component metadata -To construct, see NOTES section for METADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[] @@ -243,6 +241,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. @@ -276,7 +289,6 @@ Accept wildcard characters: False ### -Secret Collection of secrets used by a Dapr component -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] diff --git a/src/App/App/help/New-AzContainerAppManagedEnvStorage.md b/src/App/App/help/New-AzContainerAppManagedEnvStorage.md index a5cb8a81171b..3bbe7f8e7ff3 100644 --- a/src/App/App/help/New-AzContainerAppManagedEnvStorage.md +++ b/src/App/App/help/New-AzContainerAppManagedEnvStorage.md @@ -16,36 +16,37 @@ Create storage for a managedEnvironment. ``` New-AzContainerAppManagedEnvStorage -EnvName -Name -ResourceGroupName [-SubscriptionId ] [-AzureFileAccessMode ] [-AzureFileAccountKey ] - [-AzureFileAccountName ] [-AzureFileShareName ] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] + [-AzureFileAccountName ] [-AzureFileShareName ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerAppManagedEnvStorage -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppManagedEnvStorage -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityManagedEnvironmentExpanded ``` New-AzContainerAppManagedEnvStorage -Name -ManagedEnvironmentInputObject [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] - [-AzureFileShareName ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-AzureFileShareName ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzContainerAppManagedEnvStorage -InputObject [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] [-AzureFileShareName ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -164,7 +165,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.App.Models.IAppIdentity @@ -210,7 +210,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -239,6 +238,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/App/App/help/New-AzContainerAppProbeHeaderObject.md b/src/App/App/help/New-AzContainerAppProbeHeaderObject.md index 9994c1bbec41..7627739fc1e3 100644 --- a/src/App/App/help/New-AzContainerAppProbeHeaderObject.md +++ b/src/App/App/help/New-AzContainerAppProbeHeaderObject.md @@ -13,7 +13,8 @@ Create an in-memory object for ContainerAppProbeHttpGetHttpHeadersItem. ## SYNTAX ``` -New-AzContainerAppProbeHeaderObject -Name -Value [] +New-AzContainerAppProbeHeaderObject -Name -Value [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -51,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 header field value. diff --git a/src/App/App/help/New-AzContainerAppProbeObject.md b/src/App/App/help/New-AzContainerAppProbeObject.md index 5c6888e19a27..24cefe10853e 100644 --- a/src/App/App/help/New-AzContainerAppProbeObject.md +++ b/src/App/App/help/New-AzContainerAppProbeObject.md @@ -17,7 +17,8 @@ New-AzContainerAppProbeObject [-FailureThreshold ] [-HttpGetHost [-HttpGetHttpHeader ] [-HttpGetPath ] [-HttpGetPort ] [-HttpGetScheme ] [-InitialDelaySecond ] [-PeriodSecond ] [-SuccessThreshold ] [-TcpSocketHost ] [-TcpSocketPort ] - [-TerminationGracePeriodSecond ] [-TimeoutSecond ] [-Type ] [] + [-TerminationGracePeriodSecond ] [-TimeoutSecond ] [-Type ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -79,7 +80,6 @@ Accept wildcard characters: False ### -HttpGetHttpHeader Custom headers to set in the request. HTTP allows repeated headers. -To construct, see NOTES section for HTTPGETHTTPHEADER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppProbeHttpGetHttpHeadersItem[] @@ -176,6 +176,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 +``` + ### -SuccessThreshold Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. diff --git a/src/App/App/help/New-AzContainerAppRegistryCredentialObject.md b/src/App/App/help/New-AzContainerAppRegistryCredentialObject.md index 305584077073..74e13bcbf7c7 100644 --- a/src/App/App/help/New-AzContainerAppRegistryCredentialObject.md +++ b/src/App/App/help/New-AzContainerAppRegistryCredentialObject.md @@ -14,7 +14,7 @@ Create an in-memory object for RegistryCredentials. ``` New-AzContainerAppRegistryCredentialObject [-Identity ] [-PasswordSecretRef ] - [-Server ] [-Username ] [] + [-Server ] [-Username ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -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 +``` + ### -Server Container Registry Server. diff --git a/src/App/App/help/New-AzContainerAppScaleRuleAuthObject.md b/src/App/App/help/New-AzContainerAppScaleRuleAuthObject.md index f15130f5383c..2d01c6683fe8 100644 --- a/src/App/App/help/New-AzContainerAppScaleRuleAuthObject.md +++ b/src/App/App/help/New-AzContainerAppScaleRuleAuthObject.md @@ -13,7 +13,8 @@ Create an in-memory object for ScaleRuleAuth. ## SYNTAX ``` -New-AzContainerAppScaleRuleAuthObject [-SecretRef ] [-TriggerParameter ] [] +New-AzContainerAppScaleRuleAuthObject [-SecretRef ] [-TriggerParameter ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -36,6 +37,21 @@ Create a ScaleRuleAuth object for ScaleRule. ## 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 +``` + ### -SecretRef Name of the secret from which to pull the auth params. diff --git a/src/App/App/help/New-AzContainerAppScaleRuleObject.md b/src/App/App/help/New-AzContainerAppScaleRuleObject.md index 678c3f23d747..9f48a9142a38 100644 --- a/src/App/App/help/New-AzContainerAppScaleRuleObject.md +++ b/src/App/App/help/New-AzContainerAppScaleRuleObject.md @@ -16,7 +16,8 @@ Create an in-memory object for ScaleRule. New-AzContainerAppScaleRuleObject [-AzureQueueAuth ] [-AzureQueueLength ] [-AzureQueueName ] [-CustomAuth ] [-CustomMetadata ] [-CustomType ] [-HttpAuth ] [-HttpMetadata ] - [-Name ] [-TcpAuth ] [-TcpMetadata ] [] + [-Name ] [-TcpAuth ] [-TcpMetadata ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -41,7 +42,6 @@ Create an in-memory object for ScaleRule. ### -AzureQueueAuth Authentication secrets for the queue scale rule. -To construct, see NOTES section for AZUREQUEUEAUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] @@ -87,7 +87,6 @@ Accept wildcard characters: False ### -CustomAuth Authentication secrets for the custom scale rule. -To construct, see NOTES section for CUSTOMAUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] @@ -103,7 +102,6 @@ Accept wildcard characters: False ### -CustomMetadata Metadata properties to describe custom scale rule. -To construct, see NOTES section for CUSTOMMETADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICustomScaleRuleMetadata @@ -135,7 +133,6 @@ Accept wildcard characters: False ### -HttpAuth Authentication secrets for the custom scale rule. -To construct, see NOTES section for HTTPAUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] @@ -151,7 +148,6 @@ Accept wildcard characters: False ### -HttpMetadata Metadata properties to describe http scale rule. -To construct, see NOTES section for HTTPMETADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IHttpScaleRuleMetadata @@ -180,9 +176,23 @@ 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 +``` + ### -TcpAuth Authentication secrets for the tcp scale rule. -To construct, see NOTES section for TCPAUTH properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRuleAuth[] @@ -198,7 +208,6 @@ Accept wildcard characters: False ### -TcpMetadata Metadata properties to describe tcp scale rule. -To construct, see NOTES section for TCPMETADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ITcpScaleRuleMetadata diff --git a/src/App/App/help/New-AzContainerAppSecretObject.md b/src/App/App/help/New-AzContainerAppSecretObject.md index 07c9761a2943..9bf7b0515577 100644 --- a/src/App/App/help/New-AzContainerAppSecretObject.md +++ b/src/App/App/help/New-AzContainerAppSecretObject.md @@ -14,7 +14,7 @@ Create an in-memory object for Secret. ``` New-AzContainerAppSecretObject [-Identity ] [-KeyVaultUrl ] [-Name ] [-Value ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -82,6 +82,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 Secret Value. diff --git a/src/App/App/help/New-AzContainerAppSecretVolumeItemObject.md b/src/App/App/help/New-AzContainerAppSecretVolumeItemObject.md index 18588b86ddc3..32876ae91e1f 100644 --- a/src/App/App/help/New-AzContainerAppSecretVolumeItemObject.md +++ b/src/App/App/help/New-AzContainerAppSecretVolumeItemObject.md @@ -13,7 +13,8 @@ Create an in-memory object for SecretVolumeItem. ## SYNTAX ``` -New-AzContainerAppSecretVolumeItemObject [-Path ] [-SecretRef ] [] +New-AzContainerAppSecretVolumeItemObject [-Path ] [-SecretRef ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -52,6 +53,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 +``` + ### -SecretRef Name of the Container App secret from which to pull the secret value. diff --git a/src/App/App/help/New-AzContainerAppServiceBindObject.md b/src/App/App/help/New-AzContainerAppServiceBindObject.md index 3a5a571cb8e1..6748a9adcc5b 100644 --- a/src/App/App/help/New-AzContainerAppServiceBindObject.md +++ b/src/App/App/help/New-AzContainerAppServiceBindObject.md @@ -13,7 +13,8 @@ Create an in-memory object for ServiceBind. ## SYNTAX ``` -New-AzContainerAppServiceBindObject [-Name ] [-ServiceId ] [] +New-AzContainerAppServiceBindObject [-Name ] [-ServiceId ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -51,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 +``` + ### -ServiceId Resource id of the target service. diff --git a/src/App/App/help/New-AzContainerAppSourceControl.md b/src/App/App/help/New-AzContainerAppSourceControl.md index 59fa7706d1a1..a0791bee5e90 100644 --- a/src/App/App/help/New-AzContainerAppSourceControl.md +++ b/src/App/App/help/New-AzContainerAppSourceControl.md @@ -20,22 +20,22 @@ New-AzContainerAppSourceControl -ContainerAppName -Name -Resou [-GithubAccessToken ] [-GithubConfigurationImage ] [-GithubContextPath ] [-GithubOS ] [-GithubPublishType ] [-GithubRuntimeStack ] [-GithubRuntimeVersion ] [-RegistryPassword ] [-RegistryUrl ] - [-RegistryUserName ] [-RepoUrl ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-RegistryUserName ] [-RepoUrl ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzContainerAppSourceControl -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzContainerAppSourceControl -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityContainerAppExpanded @@ -46,8 +46,8 @@ New-AzContainerAppSourceControl -Name -ContainerAppInputObject ] [-GithubConfigurationImage ] [-GithubContextPath ] [-GithubOS ] [-GithubPublishType ] [-GithubRuntimeStack ] [-GithubRuntimeVersion ] [-RegistryPassword ] [-RegistryUrl ] - [-RegistryUserName ] [-RepoUrl ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-RegistryUserName ] [-RepoUrl ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded @@ -58,7 +58,8 @@ New-AzContainerAppSourceControl -InputObject [-AzureClientId ] [-GithubContextPath ] [-GithubOS ] [-GithubPublishType ] [-GithubRuntimeStack ] [-GithubRuntimeVersion ] [-RegistryPassword ] [-RegistryUrl ] [-RegistryUserName ] [-RepoUrl ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -195,7 +196,6 @@ Accept wildcard characters: False ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -347,7 +347,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.App.Models.IAppIdentity @@ -421,6 +420,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 +``` + ### -RegistryPassword registry secret. diff --git a/src/App/App/help/New-AzContainerAppTemplateObject.md b/src/App/App/help/New-AzContainerAppTemplateObject.md index 8230923f33cc..29fe59c40733 100644 --- a/src/App/App/help/New-AzContainerAppTemplateObject.md +++ b/src/App/App/help/New-AzContainerAppTemplateObject.md @@ -15,7 +15,8 @@ Create an in-memory object for Container. ``` New-AzContainerAppTemplateObject [-Probe ] [-Arg ] [-Command ] [-Env ] [-Image ] [-Name ] [-ResourceCpu ] - [-ResourceMemory ] [-VolumeMount ] [] + [-ResourceMemory ] [-VolumeMount ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -73,7 +74,6 @@ Accept wildcard characters: False ### -Env Container environment variables. -To construct, see NOTES section for ENV properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IEnvironmentVar[] @@ -119,7 +119,6 @@ Accept wildcard characters: False ### -Probe List of probes for the container. -To construct, see NOTES section for PROBE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainerAppProbe[] @@ -133,6 +132,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 +``` + ### -ResourceCpu Required CPU in cores, e.g. 0.5. @@ -167,7 +181,6 @@ Accept wildcard characters: False ### -VolumeMount Container volume mounts. -To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolumeMount[] diff --git a/src/App/App/help/New-AzContainerAppTrafficWeightObject.md b/src/App/App/help/New-AzContainerAppTrafficWeightObject.md index b3225ff90dc1..491b42c0ba91 100644 --- a/src/App/App/help/New-AzContainerAppTrafficWeightObject.md +++ b/src/App/App/help/New-AzContainerAppTrafficWeightObject.md @@ -14,7 +14,7 @@ Create an in-memory object for TrafficWeight. ``` New-AzContainerAppTrafficWeightObject [-Label ] [-LatestRevision ] [-RevisionName ] - [-Weight ] [] + [-Weight ] [-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 +``` + ### -RevisionName Name of a revision. diff --git a/src/App/App/help/New-AzContainerAppVolumeMountObject.md b/src/App/App/help/New-AzContainerAppVolumeMountObject.md index bec08b6d40fd..c390d701af8c 100644 --- a/src/App/App/help/New-AzContainerAppVolumeMountObject.md +++ b/src/App/App/help/New-AzContainerAppVolumeMountObject.md @@ -14,7 +14,7 @@ Create an in-memory object for VolumeMount. ``` New-AzContainerAppVolumeMountObject [-MountPath ] [-SubPath ] [-VolumeName ] - [] + [-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 +``` + ### -SubPath Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). diff --git a/src/App/App/help/New-AzContainerAppVolumeObject.md b/src/App/App/help/New-AzContainerAppVolumeObject.md index 9c2efb577099..f4aa8063b1bc 100644 --- a/src/App/App/help/New-AzContainerAppVolumeObject.md +++ b/src/App/App/help/New-AzContainerAppVolumeObject.md @@ -14,7 +14,7 @@ Create an in-memory object for Volume. ``` New-AzContainerAppVolumeObject [-MountOption ] [-Name ] [-Secret ] - [-StorageName ] [-StorageType ] [] + [-StorageName ] [-StorageType ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -68,10 +68,24 @@ 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 +``` + ### -Secret List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume. -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecretVolumeItem[] diff --git a/src/App/App/help/New-AzContainerAppWorkloadProfileObject.md b/src/App/App/help/New-AzContainerAppWorkloadProfileObject.md index 961328150e4a..761dade0753c 100644 --- a/src/App/App/help/New-AzContainerAppWorkloadProfileObject.md +++ b/src/App/App/help/New-AzContainerAppWorkloadProfileObject.md @@ -14,7 +14,7 @@ Create an in-memory object for WorkloadProfile. ``` New-AzContainerAppWorkloadProfileObject -Name -Type [-MaximumCount ] - [-MinimumCount ] [] + [-MinimumCount ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -82,6 +82,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 +``` + ### -Type Workload profile type for the workloads to run on. diff --git a/src/App/App/help/Remove-AzContainerApp.md b/src/App/App/help/Remove-AzContainerApp.md index ff42242a198e..782c9f07c036 100644 --- a/src/App/App/help/Remove-AzContainerApp.md +++ b/src/App/App/help/Remove-AzContainerApp.md @@ -15,13 +15,14 @@ Delete a Container App. ### Delete (Default) ``` Remove-AzContainerApp -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzContainerApp -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -79,7 +80,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.App.Models.IAppIdentity @@ -138,6 +138,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/App/App/help/Remove-AzContainerAppAuthConfig.md b/src/App/App/help/Remove-AzContainerAppAuthConfig.md index 5740c0d898af..bff13950e57d 100644 --- a/src/App/App/help/Remove-AzContainerAppAuthConfig.md +++ b/src/App/App/help/Remove-AzContainerAppAuthConfig.md @@ -15,19 +15,21 @@ Delete a Container App AuthConfig. ### Delete (Default) ``` Remove-AzContainerAppAuthConfig -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityContainerApp ``` Remove-AzContainerAppAuthConfig -Name -ContainerAppInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### DeleteViaIdentity ``` -Remove-AzContainerAppAuthConfig -InputObject [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] +Remove-AzContainerAppAuthConfig -InputObject [-DefaultProfile ] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -64,7 +66,6 @@ Delete a Container App AuthConfig. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -111,7 +112,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.App.Models.IAppIdentity @@ -155,6 +155,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/App/App/help/Remove-AzContainerAppConnectedEnv.md b/src/App/App/help/Remove-AzContainerAppConnectedEnv.md index 30da8b5a3c6d..39637f2c4109 100644 --- a/src/App/App/help/Remove-AzContainerAppConnectedEnv.md +++ b/src/App/App/help/Remove-AzContainerAppConnectedEnv.md @@ -15,13 +15,14 @@ Delete an connectedEnvironment. ### Delete (Default) ``` Remove-AzContainerAppConnectedEnv -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzContainerAppConnectedEnv -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -79,7 +80,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.App.Models.IAppIdentity @@ -138,6 +138,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/App/App/help/Remove-AzContainerAppConnectedEnvCert.md b/src/App/App/help/Remove-AzContainerAppConnectedEnvCert.md index c2906e7493d9..5b25767181c8 100644 --- a/src/App/App/help/Remove-AzContainerAppConnectedEnvCert.md +++ b/src/App/App/help/Remove-AzContainerAppConnectedEnvCert.md @@ -15,20 +15,21 @@ Deletes the specified Certificate. ### Delete (Default) ``` Remove-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityConnectedEnvironment ``` Remove-AzContainerAppConnectedEnvCert -Name -ConnectedEnvironmentInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### DeleteViaIdentity ``` Remove-AzContainerAppConnectedEnvCert -InputObject [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -65,7 +66,6 @@ Deletes the specified Certificate. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -112,7 +112,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.App.Models.IAppIdentity @@ -156,6 +155,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/App/App/help/Remove-AzContainerAppConnectedEnvDapr.md b/src/App/App/help/Remove-AzContainerAppConnectedEnvDapr.md index 1060793e5df5..409d68a70b6e 100644 --- a/src/App/App/help/Remove-AzContainerAppConnectedEnvDapr.md +++ b/src/App/App/help/Remove-AzContainerAppConnectedEnvDapr.md @@ -15,20 +15,21 @@ Delete a Dapr Component from a connected environment. ### Delete (Default) ``` Remove-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName -Name - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityConnectedEnvironment ``` Remove-AzContainerAppConnectedEnvDapr -Name -ConnectedEnvironmentInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### DeleteViaIdentity ``` Remove-AzContainerAppConnectedEnvDapr -InputObject [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -65,7 +66,6 @@ Delete a Dapr Component from a connected environment. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -112,7 +112,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.App.Models.IAppIdentity @@ -156,6 +155,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/App/App/help/Remove-AzContainerAppConnectedEnvStorage.md b/src/App/App/help/Remove-AzContainerAppConnectedEnvStorage.md index f6957f71b6cc..369eb50fdc6a 100644 --- a/src/App/App/help/Remove-AzContainerAppConnectedEnvStorage.md +++ b/src/App/App/help/Remove-AzContainerAppConnectedEnvStorage.md @@ -15,20 +15,21 @@ Delete storage for a connectedEnvironment. ### Delete (Default) ``` Remove-AzContainerAppConnectedEnvStorage -ConnectedEnvironmentName -Name - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityConnectedEnvironment ``` Remove-AzContainerAppConnectedEnvStorage -Name -ConnectedEnvironmentInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### DeleteViaIdentity ``` Remove-AzContainerAppConnectedEnvStorage -InputObject [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -65,7 +66,6 @@ Delete storage for a connectedEnvironment. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -112,7 +112,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.App.Models.IAppIdentity @@ -156,6 +155,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/App/App/help/Remove-AzContainerAppJob.md b/src/App/App/help/Remove-AzContainerAppJob.md index 785496b48a4d..29159c361091 100644 --- a/src/App/App/help/Remove-AzContainerAppJob.md +++ b/src/App/App/help/Remove-AzContainerAppJob.md @@ -15,13 +15,14 @@ Delete a Container Apps Job. ### Delete (Default) ``` Remove-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzContainerAppJob -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -79,7 +80,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.App.Models.IAppIdentity @@ -138,6 +138,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/App/App/help/Remove-AzContainerAppManagedCert.md b/src/App/App/help/Remove-AzContainerAppManagedCert.md index 0a64da974ad3..7676e7b0481c 100644 --- a/src/App/App/help/Remove-AzContainerAppManagedCert.md +++ b/src/App/App/help/Remove-AzContainerAppManagedCert.md @@ -15,19 +15,21 @@ Deletes the specified Managed Certificate. ### Delete (Default) ``` Remove-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityManagedEnvironment ``` Remove-AzContainerAppManagedCert -Name -ManagedEnvironmentInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### DeleteViaIdentity ``` -Remove-AzContainerAppManagedCert -InputObject [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] +Remove-AzContainerAppManagedCert -InputObject [-DefaultProfile ] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -86,7 +88,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.App.Models.IAppIdentity @@ -102,7 +103,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -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/App/App/help/Remove-AzContainerAppManagedEnv.md b/src/App/App/help/Remove-AzContainerAppManagedEnv.md index a9ae59867450..16c2a332ba35 100644 --- a/src/App/App/help/Remove-AzContainerAppManagedEnv.md +++ b/src/App/App/help/Remove-AzContainerAppManagedEnv.md @@ -15,13 +15,14 @@ Delete a Managed Environment if it does not have any container apps. ### Delete (Default) ``` Remove-AzContainerAppManagedEnv -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzContainerAppManagedEnv -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -80,7 +81,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.App.Models.IAppIdentity @@ -139,6 +139,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/App/App/help/Remove-AzContainerAppManagedEnvCert.md b/src/App/App/help/Remove-AzContainerAppManagedEnvCert.md index 3def3bec3953..eaf1c08c9e91 100644 --- a/src/App/App/help/Remove-AzContainerAppManagedEnvCert.md +++ b/src/App/App/help/Remove-AzContainerAppManagedEnvCert.md @@ -15,19 +15,21 @@ Deletes the specified Certificate. ### Delete (Default) ``` Remove-AzContainerAppManagedEnvCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityManagedEnvironment ``` Remove-AzContainerAppManagedEnvCert -Name -ManagedEnvironmentInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### DeleteViaIdentity ``` Remove-AzContainerAppManagedEnvCert -InputObject [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -95,7 +97,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.App.Models.IAppIdentity @@ -111,7 +112,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -155,6 +155,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/App/App/help/Remove-AzContainerAppManagedEnvDapr.md b/src/App/App/help/Remove-AzContainerAppManagedEnvDapr.md index 751b9e918f58..1897d1a62bfb 100644 --- a/src/App/App/help/Remove-AzContainerAppManagedEnvDapr.md +++ b/src/App/App/help/Remove-AzContainerAppManagedEnvDapr.md @@ -15,19 +15,21 @@ Delete a Dapr Component from a Managed Environment. ### Delete (Default) ``` Remove-AzContainerAppManagedEnvDapr -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityManagedEnvironment ``` Remove-AzContainerAppManagedEnvDapr -Name -ManagedEnvironmentInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### DeleteViaIdentity ``` Remove-AzContainerAppManagedEnvDapr -InputObject [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -95,7 +97,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.App.Models.IAppIdentity @@ -111,7 +112,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -155,6 +155,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/App/App/help/Remove-AzContainerAppManagedEnvStorage.md b/src/App/App/help/Remove-AzContainerAppManagedEnvStorage.md index de86430a9eeb..af16cecdadb2 100644 --- a/src/App/App/help/Remove-AzContainerAppManagedEnvStorage.md +++ b/src/App/App/help/Remove-AzContainerAppManagedEnvStorage.md @@ -15,19 +15,21 @@ Delete storage for a managedEnvironment. ### Delete (Default) ``` Remove-AzContainerAppManagedEnvStorage -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityManagedEnvironment ``` Remove-AzContainerAppManagedEnvStorage -Name -ManagedEnvironmentInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### DeleteViaIdentity ``` Remove-AzContainerAppManagedEnvStorage -InputObject [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -95,7 +97,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.App.Models.IAppIdentity @@ -111,7 +112,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -155,6 +155,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/App/App/help/Restart-AzContainerAppRevision.md b/src/App/App/help/Restart-AzContainerAppRevision.md index e1008a86eeed..db80ecc99db5 100644 --- a/src/App/App/help/Restart-AzContainerAppRevision.md +++ b/src/App/App/help/Restart-AzContainerAppRevision.md @@ -15,19 +15,21 @@ Restarts a revision for a Container App ### Restart (Default) ``` Restart-AzContainerAppRevision -ContainerAppName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### RestartViaIdentityContainerApp ``` Restart-AzContainerAppRevision -Name -ContainerAppInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### RestartViaIdentity ``` -Restart-AzContainerAppRevision -InputObject [-DefaultProfile ] [-PassThru] [-WhatIf] - [-Confirm] [] +Restart-AzContainerAppRevision -InputObject [-DefaultProfile ] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -62,7 +64,6 @@ Restarts a revision for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -109,7 +110,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.App.Models.IAppIdentity @@ -153,6 +153,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/App/App/help/Start-AzContainerApp.md b/src/App/App/help/Start-AzContainerApp.md index 8f672b750586..9a175d18aceb 100644 --- a/src/App/App/help/Start-AzContainerApp.md +++ b/src/App/App/help/Start-AzContainerApp.md @@ -15,13 +15,14 @@ Start a container app ### Start (Default) ``` Start-AzContainerApp -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### StartViaIdentity ``` -Start-AzContainerApp -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] +Start-AzContainerApp -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -77,7 +78,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.App.Models.IAppIdentity @@ -121,6 +121,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/App/App/help/Start-AzContainerAppJob.md b/src/App/App/help/Start-AzContainerAppJob.md index 28f864c08d25..ec02249b7493 100644 --- a/src/App/App/help/Start-AzContainerAppJob.md +++ b/src/App/App/help/Start-AzContainerAppJob.md @@ -16,40 +16,43 @@ Start a Container Apps Job ``` Start-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] [-Container ] [-InitContainer ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### StartViaJsonString ``` Start-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### StartViaJsonFilePath ``` Start-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### Start ``` Start-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] - -Template [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -Template [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### StartViaIdentityExpanded ``` Start-AzContainerAppJob -InputObject [-Container ] - [-InitContainer ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-InitContainer ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### StartViaIdentity ``` Start-AzContainerAppJob -InputObject -Template - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -90,7 +93,6 @@ Accept wildcard characters: False ### -Container List of container definitions for the Container Apps Job. -To construct, see NOTES section for CONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionContainer[] @@ -122,7 +124,6 @@ Accept wildcard characters: False ### -InitContainer List of specialized containers that run before job containers. -To construct, see NOTES section for INITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionContainer[] @@ -138,7 +139,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.App.Models.IAppIdentity @@ -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 +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -245,7 +260,6 @@ Accept wildcard characters: False ### -Template Job's execution template, containing container configuration for a job's execution -To construct, see NOTES section for TEMPLATE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobExecutionTemplate diff --git a/src/App/App/help/Stop-AzContainerApp.md b/src/App/App/help/Stop-AzContainerApp.md index a74d4f70caa1..f3a64969d2f9 100644 --- a/src/App/App/help/Stop-AzContainerApp.md +++ b/src/App/App/help/Stop-AzContainerApp.md @@ -15,13 +15,14 @@ Stop a container app ### Stop (Default) ``` Stop-AzContainerApp -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### StopViaIdentity ``` -Stop-AzContainerApp -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] +Stop-AzContainerApp -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -77,7 +78,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.App.Models.IAppIdentity @@ -121,6 +121,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/App/App/help/Stop-AzContainerAppJobExecution.md b/src/App/App/help/Stop-AzContainerAppJobExecution.md index a2f4b1bf23da..ee6d9952fc41 100644 --- a/src/App/App/help/Stop-AzContainerAppJobExecution.md +++ b/src/App/App/help/Stop-AzContainerAppJobExecution.md @@ -15,20 +15,20 @@ Terminates execution of a running container apps job ### Stop (Default) ``` Stop-AzContainerAppJobExecution -JobName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### StopViaIdentityJob ``` Stop-AzContainerAppJobExecution -Name -JobInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### StopViaIdentity ``` Stop-AzContainerAppJobExecution -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -82,7 +82,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.App.Models.IAppIdentity @@ -98,7 +97,6 @@ Accept wildcard characters: False ### -JobInputObject Identity Parameter -To construct, see NOTES section for JOBINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -172,6 +170,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/App/App/help/Test-AzContainerAppConnectedEnvNameAvailability.md b/src/App/App/help/Test-AzContainerAppConnectedEnvNameAvailability.md index 60bbb8ffb7ec..863fde6ee5ae 100644 --- a/src/App/App/help/Test-AzContainerAppConnectedEnvNameAvailability.md +++ b/src/App/App/help/Test-AzContainerAppConnectedEnvNameAvailability.md @@ -15,29 +15,29 @@ Checks if resource connectedEnvironmentName is available. ### CheckExpanded (Default) ``` Test-AzContainerAppConnectedEnvNameAvailability -ConnectedEnvironmentName -ResourceGroupName - [-SubscriptionId ] [-Name ] [-Type ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] [-Name ] [-Type ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### Check ``` Test-AzContainerAppConnectedEnvNameAvailability -ConnectedEnvironmentName -ResourceGroupName [-SubscriptionId ] -CheckNameAvailabilityRequest - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CheckViaJsonFilePath ``` Test-AzContainerAppConnectedEnvNameAvailability -ConnectedEnvironmentName -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CheckViaJsonString ``` Test-AzContainerAppConnectedEnvNameAvailability -ConnectedEnvironmentName -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -62,7 +62,6 @@ Checks if resource connectedEnvironmentName is available. ### -CheckNameAvailabilityRequest The check availability request body. -To construct, see NOTES section for CHECKNAMEAVAILABILITYREQUEST properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICheckNameAvailabilityRequest @@ -152,6 +151,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/App/App/help/Test-AzContainerAppNamespaceAvailability.md b/src/App/App/help/Test-AzContainerAppNamespaceAvailability.md index 109d42bd4825..0299ca3adba1 100644 --- a/src/App/App/help/Test-AzContainerAppNamespaceAvailability.md +++ b/src/App/App/help/Test-AzContainerAppNamespaceAvailability.md @@ -15,29 +15,29 @@ Checks if resource name is available. ### CheckExpanded (Default) ``` Test-AzContainerAppNamespaceAvailability -EnvName -ResourceGroupName - [-SubscriptionId ] [-Name ] [-Type ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] [-Name ] [-Type ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### Check ``` Test-AzContainerAppNamespaceAvailability -EnvName -ResourceGroupName [-SubscriptionId ] -CheckNameAvailabilityRequest - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CheckViaJsonFilePath ``` Test-AzContainerAppNamespaceAvailability -EnvName -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CheckViaJsonString ``` Test-AzContainerAppNamespaceAvailability -EnvName -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -62,7 +62,6 @@ Checks if resource name is available. ### -CheckNameAvailabilityRequest The check availability request body. -To construct, see NOTES section for CHECKNAMEAVAILABILITYREQUEST properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ICheckNameAvailabilityRequest @@ -152,6 +151,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/App/App/help/Update-AzContainerApp.md b/src/App/App/help/Update-AzContainerApp.md index c625c56d53c5..664b38edfcae 100644 --- a/src/App/App/help/Update-AzContainerApp.md +++ b/src/App/App/help/Update-AzContainerApp.md @@ -21,20 +21,22 @@ Update-AzContainerApp -Name -ResourceGroupName [-SubscriptionI [-TemplateContainer ] [-TemplateInitContainer ] [-TemplateRevisionSuffix ] [-TemplateServiceBind ] [-TemplateTerminationGracePeriodSecond ] [-TemplateVolume ] [-WorkloadProfileName ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaJsonString ``` Update-AzContainerApp -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonFilePath ``` Update-AzContainerApp -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded @@ -46,7 +48,7 @@ Update-AzContainerApp -InputObject [-Configuration ] [-TemplateRevisionSuffix ] [-TemplateServiceBind ] [-TemplateTerminationGracePeriodSecond ] [-TemplateVolume ] [-WorkloadProfileName ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -107,7 +109,6 @@ Accept wildcard characters: False ### -Configuration Non versioned Container App configuration properties. -To construct, see NOTES section for CONFIGURATION properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IConfiguration @@ -201,7 +202,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.App.Models.IAppIdentity @@ -292,6 +292,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. @@ -343,7 +358,6 @@ Accept wildcard characters: False ### -ScaleRule Scaling rules. -To construct, see NOTES section for SCALERULE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IScaleRule[] @@ -389,7 +403,6 @@ Accept wildcard characters: False ### -TemplateContainer List of container definitions for the Container App. -To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[] @@ -405,7 +418,6 @@ Accept wildcard characters: False ### -TemplateInitContainer List of specialized containers that run before app containers. -To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[] @@ -436,7 +448,6 @@ Accept wildcard characters: False ### -TemplateServiceBind List of container app services bound to the app -To construct, see NOTES section for TEMPLATESERVICEBIND properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IServiceBind[] @@ -472,7 +483,6 @@ Accept wildcard characters: False ### -TemplateVolume List of volume definitions for the Container App. -To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[] diff --git a/src/App/App/help/Update-AzContainerAppAuthConfig.md b/src/App/App/help/Update-AzContainerAppAuthConfig.md index 218bf34b9153..45999520365a 100644 --- a/src/App/App/help/Update-AzContainerAppAuthConfig.md +++ b/src/App/App/help/Update-AzContainerAppAuthConfig.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppAuthConfig ## SYNOPSIS -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. ## SYNTAX @@ -23,7 +23,7 @@ Update-AzContainerAppAuthConfig -ContainerAppName -Name -Resou [-LoginAllowedExternalRedirectUrl ] [-LoginPreserveUrlFragmentsForLogin] [-NonceExpirationInterval ] [-NonceValidateNonce] [-PlatformEnabled] [-PlatformRuntimeVersion ] [-RouteApiPrefix ] [-RouteLogoutEndpoint ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityContainerAppExpanded @@ -37,7 +37,7 @@ Update-AzContainerAppAuthConfig -Name -ContainerAppInputObject ] [-LoginPreserveUrlFragmentsForLogin] [-NonceExpirationInterval ] [-NonceValidateNonce] [-PlatformEnabled] [-PlatformRuntimeVersion ] [-RouteApiPrefix ] [-RouteLogoutEndpoint ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded @@ -50,11 +50,12 @@ Update-AzContainerAppAuthConfig -InputObject [-CookieExpirationCo [-IdentityProvider ] [-LoginAllowedExternalRedirectUrl ] [-LoginPreserveUrlFragmentsForLogin] [-NonceExpirationInterval ] [-NonceValidateNonce] [-PlatformEnabled] [-PlatformRuntimeVersion ] [-RouteApiPrefix ] - [-RouteLogoutEndpoint ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-RouteLogoutEndpoint ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION -Create the AuthConfig for a Container App. +Update the AuthConfig for a Container App. ## EXAMPLES @@ -105,7 +106,6 @@ Create the AuthConfig for a Container App. ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -287,7 +287,6 @@ Accept wildcard characters: False ### -IdentityProvider The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization. -To construct, see NOTES section for IDENTITYPROVIDER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IIdentityProviders @@ -303,7 +302,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.App.Models.IAppIdentity @@ -423,6 +421,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/App/App/help/Update-AzContainerAppConnectedEnvCert.md b/src/App/App/help/Update-AzContainerAppConnectedEnvCert.md index e4b5128d6458..077f7ec6dfc6 100644 --- a/src/App/App/help/Update-AzContainerAppConnectedEnvCert.md +++ b/src/App/App/help/Update-AzContainerAppConnectedEnvCert.md @@ -17,33 +17,34 @@ Currently only patching of tags is supported ``` Update-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonString ``` Update-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonFilePath ``` Update-AzContainerAppConnectedEnvCert -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityConnectedEnvironmentExpanded ``` Update-AzContainerAppConnectedEnvCert -Name -ConnectedEnvironmentInputObject - [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaIdentityExpanded ``` Update-AzContainerAppConnectedEnvCert -InputObject [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -83,7 +84,6 @@ Update certificate. ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -130,7 +130,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.App.Models.IAppIdentity @@ -189,6 +188,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/App/App/help/Update-AzContainerAppConnectedEnvDapr.md b/src/App/App/help/Update-AzContainerAppConnectedEnvDapr.md index a75cd7d7f7ad..5cb7758a5291 100644 --- a/src/App/App/help/Update-AzContainerAppConnectedEnvDapr.md +++ b/src/App/App/help/Update-AzContainerAppConnectedEnvDapr.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppConnectedEnvDapr ## SYNOPSIS -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. ## SYNTAX @@ -17,8 +17,8 @@ Create a Dapr Component in a connected environment. Update-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] - [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityConnectedEnvironmentExpanded @@ -26,19 +26,19 @@ Update-AzContainerAppConnectedEnvDapr -ConnectedEnvironmentName -Name < Update-AzContainerAppConnectedEnvDapr -Name -ConnectedEnvironmentInputObject [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] [-SecretStoreComponent ] [-Version ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzContainerAppConnectedEnvDapr -InputObject [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] - [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a Dapr Component in a connected environment. +Update a Dapr Component in a connected environment. ## EXAMPLES @@ -111,7 +111,6 @@ Accept wildcard characters: False ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -188,7 +187,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.App.Models.IAppIdentity @@ -204,7 +202,6 @@ Accept wildcard characters: False ### -Metadata Component metadata -To construct, see NOTES section for METADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[] @@ -233,6 +230,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. @@ -266,7 +278,6 @@ Accept wildcard characters: False ### -Secret Collection of secrets used by a Dapr component -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] diff --git a/src/App/App/help/Update-AzContainerAppConnectedEnvStorage.md b/src/App/App/help/Update-AzContainerAppConnectedEnvStorage.md index f13c64a992dd..97ec3b09bb13 100644 --- a/src/App/App/help/Update-AzContainerAppConnectedEnvStorage.md +++ b/src/App/App/help/Update-AzContainerAppConnectedEnvStorage.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppConnectedEnvStorage ## SYNOPSIS -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. ## SYNTAX @@ -17,25 +17,26 @@ Create storage for a connectedEnvironment. Update-AzContainerAppConnectedEnvStorage -ConnectedEnvironmentName -Name -ResourceGroupName [-SubscriptionId ] [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] [-AzureFileShareName ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityConnectedEnvironmentExpanded ``` Update-AzContainerAppConnectedEnvStorage -Name -ConnectedEnvironmentInputObject [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] - [-AzureFileShareName ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-AzureFileShareName ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzContainerAppConnectedEnvStorage -InputObject [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] [-AzureFileShareName ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create storage for a connectedEnvironment. +Update storage for a connectedEnvironment. ## EXAMPLES @@ -150,7 +151,6 @@ Accept wildcard characters: False ### -ConnectedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for CONNECTEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -197,7 +197,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.App.Models.IAppIdentity @@ -226,6 +225,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/App/App/help/Update-AzContainerAppJob.md b/src/App/App/help/Update-AzContainerAppJob.md index 4b7b3ed1f234..d029b4a8738d 100644 --- a/src/App/App/help/Update-AzContainerAppJob.md +++ b/src/App/App/help/Update-AzContainerAppJob.md @@ -25,21 +25,22 @@ Update-AzContainerAppJob -Name -ResourceGroupName [-Subscripti [-ScaleRule ] [-ScheduleTriggerConfigCronExpression ] [-ScheduleTriggerConfigParallelism ] [-ScheduleTriggerConfigReplicaCompletionCount ] [-Tag ] [-TemplateContainer ] [-TemplateInitContainer ] - [-TemplateVolume ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-TemplateVolume ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonString ``` Update-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonFilePath ``` Update-AzContainerAppJob -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded @@ -55,8 +56,8 @@ Update-AzContainerAppJob -InputObject [-ConfigurationRegistry ] [-ScheduleTriggerConfigCronExpression ] [-ScheduleTriggerConfigParallelism ] [-ScheduleTriggerConfigReplicaCompletionCount ] [-Tag ] [-TemplateContainer ] [-TemplateInitContainer ] - [-TemplateVolume ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-TemplateVolume ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -101,7 +102,6 @@ Accept wildcard characters: False ### -ConfigurationRegistry Collection of private container registry credentials used by a Container apps job -To construct, see NOTES section for CONFIGURATIONREGISTRY properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IRegistryCredentials[] @@ -147,7 +147,6 @@ Accept wildcard characters: False ### -ConfigurationSecret Collection of secrets used by a Container Apps Job -To construct, see NOTES section for CONFIGURATIONSECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] @@ -286,7 +285,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.App.Models.IAppIdentity @@ -405,6 +403,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. @@ -469,7 +482,6 @@ Accept wildcard characters: False ### -ScaleRule Scaling rules. -To construct, see NOTES section for SCALERULE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IJobScaleRule[] @@ -560,7 +572,6 @@ Accept wildcard characters: False ### -TemplateContainer List of container definitions for the Container App. -To construct, see NOTES section for TEMPLATECONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer[] @@ -576,7 +587,6 @@ Accept wildcard characters: False ### -TemplateInitContainer List of specialized containers that run before app containers. -To construct, see NOTES section for TEMPLATEINITCONTAINER properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IInitContainer[] @@ -592,7 +602,6 @@ Accept wildcard characters: False ### -TemplateVolume List of volume definitions for the Container App. -To construct, see NOTES section for TEMPLATEVOLUME properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IVolume[] diff --git a/src/App/App/help/Update-AzContainerAppManagedCert.md b/src/App/App/help/Update-AzContainerAppManagedCert.md index 654c998e9f07..3b5d60004ed0 100644 --- a/src/App/App/help/Update-AzContainerAppManagedCert.md +++ b/src/App/App/help/Update-AzContainerAppManagedCert.md @@ -16,34 +16,35 @@ Oly patching of tags is supported ### UpdateExpanded (Default) ``` Update-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] [-Tag ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonString ``` Update-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonFilePath ``` Update-AzContainerAppManagedCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityManagedEnvironmentExpanded ``` Update-AzContainerAppManagedCert -Name -ManagedEnvironmentInputObject - [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaIdentityExpanded ``` Update-AzContainerAppManagedCert -InputObject [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -101,7 +102,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.App.Models.IAppIdentity @@ -147,7 +147,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -176,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 +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/App/App/help/Update-AzContainerAppManagedEnv.md b/src/App/App/help/Update-AzContainerAppManagedEnv.md index 3691b870a0f2..0a6246f89b92 100644 --- a/src/App/App/help/Update-AzContainerAppManagedEnv.md +++ b/src/App/App/help/Update-AzContainerAppManagedEnv.md @@ -19,20 +19,21 @@ Update-AzContainerAppManagedEnv -Name -ResourceGroupName [-Sub [-DaprAiConnectionString ] [-DaprAiInstrumentationKey ] [-Kind ] [-LogAnalyticConfigurationCustomerId ] [-LogAnalyticConfigurationSharedKey ] [-MtlEnabled] [-Tag ] [-WorkloadProfile ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonString ``` Update-AzContainerAppManagedEnv -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonFilePath ``` Update-AzContainerAppManagedEnv -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded @@ -41,8 +42,8 @@ Update-AzContainerAppManagedEnv -InputObject [-AppLogConfiguratio [-CustomDomainConfigurationCertificateValueInputFile ] [-DaprAiConnectionString ] [-DaprAiInstrumentationKey ] [-Kind ] [-LogAnalyticConfigurationCustomerId ] [-LogAnalyticConfigurationSharedKey ] [-MtlEnabled] [-Tag ] - [-WorkloadProfile ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-WorkloadProfile ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -173,7 +174,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.App.Models.IAppIdentity @@ -307,6 +307,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. @@ -355,7 +370,6 @@ Accept wildcard characters: False ### -WorkloadProfile Workload profiles configured for the Managed Environment. -To construct, see NOTES section for WORKLOADPROFILE properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IWorkloadProfile[] diff --git a/src/App/App/help/Update-AzContainerAppManagedEnvCert.md b/src/App/App/help/Update-AzContainerAppManagedEnvCert.md index bb04771ef754..59dd62600712 100644 --- a/src/App/App/help/Update-AzContainerAppManagedEnvCert.md +++ b/src/App/App/help/Update-AzContainerAppManagedEnvCert.md @@ -16,34 +16,35 @@ Currently only patching of tags is supported ### UpdateExpanded (Default) ``` Update-AzContainerAppManagedEnvCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] [-Tag ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonString ``` Update-AzContainerAppManagedEnvCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonFilePath ``` Update-AzContainerAppManagedEnvCert -EnvName -Name -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityManagedEnvironmentExpanded ``` Update-AzContainerAppManagedEnvCert -Name -ManagedEnvironmentInputObject - [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaIdentityExpanded ``` Update-AzContainerAppManagedEnvCert -InputObject [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -130,7 +131,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.App.Models.IAppIdentity @@ -176,7 +176,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -205,6 +204,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/App/App/help/Update-AzContainerAppManagedEnvDapr.md b/src/App/App/help/Update-AzContainerAppManagedEnvDapr.md index 6de0f3d5e4c3..d02a792afafa 100644 --- a/src/App/App/help/Update-AzContainerAppManagedEnvDapr.md +++ b/src/App/App/help/Update-AzContainerAppManagedEnvDapr.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppManagedEnvDapr ## SYNOPSIS -Create a Dapr Component in a Managed Environment. +Update a Dapr Component in a Managed Environment. ## SYNTAX @@ -17,7 +17,8 @@ Create a Dapr Component in a Managed Environment. Update-AzContainerAppManagedEnvDapr -EnvName -Name -ResourceGroupName [-SubscriptionId ] [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] [-SecretStoreComponent ] - [-Version ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-Version ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaIdentityManagedEnvironmentExpanded @@ -25,19 +26,19 @@ Update-AzContainerAppManagedEnvDapr -EnvName -Name -ResourceGr Update-AzContainerAppManagedEnvDapr -Name -ManagedEnvironmentInputObject [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] [-SecretStoreComponent ] [-Version ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzContainerAppManagedEnvDapr -InputObject [-ComponentType ] [-IgnoreError] [-InitTimeout ] [-Metadata ] [-Scope ] [-Secret ] - [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SecretStoreComponent ] [-Version ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a Dapr Component in a Managed Environment. +Update a Dapr Component in a Managed Environment. ## EXAMPLES @@ -174,7 +175,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.App.Models.IAppIdentity @@ -190,7 +190,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -206,7 +205,6 @@ Accept wildcard characters: False ### -Metadata Component metadata -To construct, see NOTES section for METADATA properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IDaprMetadata[] @@ -235,6 +233,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. @@ -268,7 +281,6 @@ Accept wildcard characters: False ### -Secret Collection of secrets used by a Dapr component -To construct, see NOTES section for SECRET properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecret[] diff --git a/src/App/App/help/Update-AzContainerAppManagedEnvStorage.md b/src/App/App/help/Update-AzContainerAppManagedEnvStorage.md index c6fba19fc283..9524e9186326 100644 --- a/src/App/App/help/Update-AzContainerAppManagedEnvStorage.md +++ b/src/App/App/help/Update-AzContainerAppManagedEnvStorage.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppManagedEnvStorage ## SYNOPSIS -Create storage for a managedEnvironment. +Update storage for a managedEnvironment. ## SYNTAX @@ -16,26 +16,27 @@ Create storage for a managedEnvironment. ``` Update-AzContainerAppManagedEnvStorage -EnvName -Name -ResourceGroupName [-SubscriptionId ] [-AzureFileAccessMode ] [-AzureFileAccountKey ] - [-AzureFileAccountName ] [-AzureFileShareName ] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] + [-AzureFileAccountName ] [-AzureFileShareName ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityManagedEnvironmentExpanded ``` Update-AzContainerAppManagedEnvStorage -Name -ManagedEnvironmentInputObject [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] - [-AzureFileShareName ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-AzureFileShareName ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzContainerAppManagedEnvStorage -InputObject [-AzureFileAccessMode ] [-AzureFileAccountKey ] [-AzureFileAccountName ] [-AzureFileShareName ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create storage for a managedEnvironment. +Update storage for a managedEnvironment. ## EXAMPLES @@ -181,7 +182,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.App.Models.IAppIdentity @@ -197,7 +197,6 @@ Accept wildcard characters: False ### -ManagedEnvironmentInputObject Identity Parameter -To construct, see NOTES section for MANAGEDENVIRONMENTINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -226,6 +225,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/App/App/help/Update-AzContainerAppSourceControl.md b/src/App/App/help/Update-AzContainerAppSourceControl.md index 6f3bc366b514..6b92e4b55021 100644 --- a/src/App/App/help/Update-AzContainerAppSourceControl.md +++ b/src/App/App/help/Update-AzContainerAppSourceControl.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerAppSourceControl ## SYNOPSIS -Create the SourceControl for a Container App. +Update the SourceControl for a Container App. ## SYNTAX @@ -20,8 +20,8 @@ Update-AzContainerAppSourceControl -ContainerAppName -Name -Re [-GithubAccessToken ] [-GithubConfigurationImage ] [-GithubContextPath ] [-GithubOS ] [-GithubPublishType ] [-GithubRuntimeStack ] [-GithubRuntimeVersion ] [-RegistryPassword ] [-RegistryUrl ] - [-RegistryUserName ] [-RepoUrl ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-RegistryUserName ] [-RepoUrl ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityContainerAppExpanded @@ -32,8 +32,8 @@ Update-AzContainerAppSourceControl -Name -ContainerAppInputObject ] [-GithubConfigurationImage ] [-GithubContextPath ] [-GithubOS ] [-GithubPublishType ] [-GithubRuntimeStack ] [-GithubRuntimeVersion ] [-RegistryPassword ] [-RegistryUrl ] - [-RegistryUserName ] [-RepoUrl ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-RegistryUserName ] [-RepoUrl ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded @@ -44,11 +44,12 @@ Update-AzContainerAppSourceControl -InputObject [-AzureClientId < [-GithubConfigurationImage ] [-GithubContextPath ] [-GithubOS ] [-GithubPublishType ] [-GithubRuntimeStack ] [-GithubRuntimeVersion ] [-RegistryPassword ] [-RegistryUrl ] [-RegistryUserName ] [-RepoUrl ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION -Create the SourceControl for a Container App. +Update the SourceControl for a Container App. ## EXAMPLES @@ -214,7 +215,6 @@ Accept wildcard characters: False ### -ContainerAppInputObject Identity Parameter -To construct, see NOTES section for CONTAINERAPPINPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.IAppIdentity @@ -366,7 +366,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.App.Models.IAppIdentity @@ -410,6 +409,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 +``` + ### -RegistryPassword registry secret. diff --git a/tools/StaticAnalysis/Exceptions/Az.App/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.App/BreakingChangeIssues.csv new file mode 100644 index 000000000000..838ba76e92f4 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.App/BreakingChangeIssues.csv @@ -0,0 +1,19 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.App","Get-AzContainerApp","Get-AzContainerApp","0","2000","The cmdlet 'Get-AzContainerApp' no longer supports the parameter 'PassThru' and no alias was found for the original parameter name.","Add the parameter 'PassThru' back to the cmdlet 'Get-AzContainerApp', or add an alias to the original parameter name." +"Az.App","Get-AzContainerApp","Get-AzContainerApp","0","1050","The parameter set 'Get' for cmdlet 'Get-AzContainerApp' has been removed.","Add parameter set 'Get' back to cmdlet 'Get-AzContainerApp'." +"Az.App","Get-AzContainerApp","Get-AzContainerApp","0","1050","The parameter set 'GetViaIdentity' for cmdlet 'Get-AzContainerApp' has been removed.","Add parameter set 'GetViaIdentity' back to cmdlet 'Get-AzContainerApp'." +"Az.App","Get-AzContainerAppAuthToken","Get-AzContainerAppAuthToken","0","2000","The cmdlet 'Get-AzContainerAppAuthToken' no longer supports the parameter 'PassThru' and no alias was found for the original parameter name.","Add the parameter 'PassThru' back to the cmdlet 'Get-AzContainerAppAuthToken', or add an alias to the original parameter name." +"Az.App","Get-AzContainerAppAuthToken","Get-AzContainerAppAuthToken","0","1050","The parameter set 'Get' for cmdlet 'Get-AzContainerAppAuthToken' has been removed.","Add parameter set 'Get' back to cmdlet 'Get-AzContainerAppAuthToken'." +"Az.App","Get-AzContainerAppAuthToken","Get-AzContainerAppAuthToken","0","1050","The parameter set 'GetViaIdentity' for cmdlet 'Get-AzContainerAppAuthToken' has been removed.","Add parameter set 'GetViaIdentity' back to cmdlet 'Get-AzContainerAppAuthToken'." +"Az.App","Get-AzContainerAppAuthToken","Get-AzContainerAppAuthToken","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzContainerAppAuthToken' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzContainerAppAuthToken'." +"Az.App","Get-AzContainerAppDiagnosticRoot","Get-AzContainerAppDiagnosticRoot","0","2000","The cmdlet 'Get-AzContainerAppDiagnosticRoot' no longer supports the parameter 'PassThru' and no alias was found for the original parameter name.","Add the parameter 'PassThru' back to the cmdlet 'Get-AzContainerAppDiagnosticRoot', or add an alias to the original parameter name." +"Az.App","Get-AzContainerAppDiagnosticRoot","Get-AzContainerAppDiagnosticRoot","0","1050","The parameter set 'Get' for cmdlet 'Get-AzContainerAppDiagnosticRoot' has been removed.","Add parameter set 'Get' back to cmdlet 'Get-AzContainerAppDiagnosticRoot'." +"Az.App","Get-AzContainerAppDiagnosticRoot","Get-AzContainerAppDiagnosticRoot","0","1050","The parameter set 'GetViaIdentity' for cmdlet 'Get-AzContainerAppDiagnosticRoot' has been removed.","Add parameter set 'GetViaIdentity' back to cmdlet 'Get-AzContainerAppDiagnosticRoot'." +"Az.App","Get-AzContainerAppDiagnosticRoot","Get-AzContainerAppDiagnosticRoot","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzContainerAppDiagnosticRoot' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzContainerAppDiagnosticRoot'." +"Az.App","New-AzContainerAppManagedCert","New-AzContainerAppManagedCert","0","2000","The cmdlet 'New-AzContainerAppManagedCert' no longer supports the parameter 'PassThru' and no alias was found for the original parameter name.","Add the parameter 'PassThru' back to the cmdlet 'New-AzContainerAppManagedCert', or add an alias to the original parameter name." +"Az.App","New-AzContainerAppManagedCert","New-AzContainerAppManagedCert","0","1050","The parameter set 'CreateViaJsonString' for cmdlet 'New-AzContainerAppManagedCert' has been removed.","Add parameter set 'CreateViaJsonString' back to cmdlet 'New-AzContainerAppManagedCert'." +"Az.App","New-AzContainerAppManagedCert","New-AzContainerAppManagedCert","0","1050","The parameter set 'CreateViaJsonFilePath' for cmdlet 'New-AzContainerAppManagedCert' has been removed.","Add parameter set 'CreateViaJsonFilePath' back to cmdlet 'New-AzContainerAppManagedCert'." +"Az.App","New-AzContainerAppManagedCert","New-AzContainerAppManagedCert","0","1050","The parameter set 'CreateExpanded' for cmdlet 'New-AzContainerAppManagedCert' has been removed.","Add parameter set 'CreateExpanded' back to cmdlet 'New-AzContainerAppManagedCert'." +"Az.App","New-AzContainerAppManagedCert","New-AzContainerAppManagedCert","0","1050","The parameter set 'CreateViaIdentityManagedEnvironmentExpanded' for cmdlet 'New-AzContainerAppManagedCert' has been removed.","Add parameter set 'CreateViaIdentityManagedEnvironmentExpanded' back to cmdlet 'New-AzContainerAppManagedCert'." +"Az.App","New-AzContainerAppManagedCert","New-AzContainerAppManagedCert","0","1050","The parameter set 'CreateViaIdentityExpanded' for cmdlet 'New-AzContainerAppManagedCert' has been removed.","Add parameter set 'CreateViaIdentityExpanded' back to cmdlet 'New-AzContainerAppManagedCert'." +"Az.App","New-AzContainerAppManagedCert","New-AzContainerAppManagedCert","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzContainerAppManagedCert' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzContainerAppManagedCert'." \ No newline at end of file