diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints.json index 29c542399f2c..b2a53aefcc86 100644 --- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints.json +++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-afdEndpoints.json @@ -5,6 +5,49 @@ "url": "https://learn.microsoft.com/powershell/module/az.cdn" }, "commands": [ + { + "name": "Clear-AzFrontDoorCdnEndpointContent", + "description": "Removes a content from AzureFrontDoor.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/purge", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.cdn/clear-azfrontdoorcdnendpointcontent" + }, + "parameterSets": [ + { + "parameters": [ + "-EndpointName ", + "-ProfileName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Removes a content from AzureFrontDoor.", + "parameters": [ + { + "name": "-EndpointName", + "value": "[Path.endpointName]" + }, + { + "name": "-ProfileName", + "value": "[Path.profileName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, { "name": "Get-AzFrontDoorCdnEndpoint", "description": "Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.", diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-customDomains.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-customDomains.json index 03aa92b66d55..8e555d48880d 100644 --- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-customDomains.json +++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints-customDomains.json @@ -53,6 +53,54 @@ } ] }, + { + "name": "Enable-AzCdnCustomDomainCustomHttps", + "description": "Enable https delivery of the custom domain.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.cdn/enable-azcdncustomdomaincustomhttps" + }, + "parameterSets": [ + { + "parameters": [ + "-CustomDomainName ", + "-EndpointName ", + "-ProfileName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Enable https delivery of the custom domain.", + "parameters": [ + { + "name": "-CustomDomainName", + "value": "[Path.customDomainName]" + }, + { + "name": "-EndpointName", + "value": "[Path.endpointName]" + }, + { + "name": "-ProfileName", + "value": "[Path.profileName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, { "name": "Get-AzCdnCustomDomain", "description": "Gets an existing custom domain within an endpoint.", diff --git a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints.json b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints.json index fa1d86340e58..815357f73d00 100644 --- a/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints.json +++ b/src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles-endpoints.json @@ -5,6 +5,49 @@ "url": "https://learn.microsoft.com/powershell/module/az.cdn" }, "commands": [ + { + "name": "Clear-AzCdnEndpointContent", + "description": "Removes a content from CDN.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/purge", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.cdn/clear-azcdnendpointcontent" + }, + "parameterSets": [ + { + "parameters": [ + "-EndpointName ", + "-ProfileName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Removes a content from CDN.", + "parameters": [ + { + "name": "-EndpointName", + "value": "[Path.endpointName]" + }, + { + "name": "-ProfileName", + "value": "[Path.profileName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, { "name": "Get-AzCdnEndpoint", "description": "Gets an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.", @@ -48,6 +91,49 @@ } ] }, + { + "name": "Import-AzCdnEndpointContent", + "description": "Pre-loads a content to CDN.\nAvailable for Verizon Profiles.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/load", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.cdn/import-azcdnendpointcontent" + }, + "parameterSets": [ + { + "parameters": [ + "-EndpointName ", + "-ProfileName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Pre-loads a content to CDN. Available for Verizon Profiles.", + "parameters": [ + { + "name": "-EndpointName", + "value": "[Path.endpointName]" + }, + { + "name": "-ProfileName", + "value": "[Path.profileName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, { "name": "Remove-AzCdnEndpoint", "description": "Deletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.", diff --git a/src/Cdn/Cdn.Autorest/exports/Clear-AzCdnEndpointContent.ps1 b/src/Cdn/Cdn.Autorest/exports/Clear-AzCdnEndpointContent.ps1 index ed8d6b8671b0..1fc7f8c4853c 100644 --- a/src/Cdn/Cdn.Autorest/exports/Clear-AzCdnEndpointContent.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Clear-AzCdnEndpointContent.ps1 @@ -214,7 +214,13 @@ begin { PurgeViaIdentityExpanded1 = 'Az.Cdn.private\Clear-AzCdnEndpointContent_PurgeViaIdentityExpanded1'; } if (('Purge1', 'PurgeExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Clear-AzFrontDoorCdnEndpointContent.ps1 b/src/Cdn/Cdn.Autorest/exports/Clear-AzFrontDoorCdnEndpointContent.ps1 index 72e415ca083c..b040b69d8171 100644 --- a/src/Cdn/Cdn.Autorest/exports/Clear-AzFrontDoorCdnEndpointContent.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Clear-AzFrontDoorCdnEndpointContent.ps1 @@ -223,7 +223,13 @@ begin { PurgeViaIdentityExpanded = 'Az.Cdn.private\Clear-AzFrontDoorCdnEndpointContent_PurgeViaIdentityExpanded'; } if (('Purge', 'PurgeExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Disable-AzCdnCustomDomainCustomHttps.ps1 b/src/Cdn/Cdn.Autorest/exports/Disable-AzCdnCustomDomainCustomHttps.ps1 index 68f039e4597c..c038fe885c55 100644 --- a/src/Cdn/Cdn.Autorest/exports/Disable-AzCdnCustomDomainCustomHttps.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Disable-AzCdnCustomDomainCustomHttps.ps1 @@ -181,7 +181,13 @@ begin { DisableViaIdentity = 'Az.Cdn.private\Disable-AzCdnCustomDomainCustomHttps_DisableViaIdentity'; } if (('Disable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Enable-AzCdnCustomDomainCustomHttps.ps1 b/src/Cdn/Cdn.Autorest/exports/Enable-AzCdnCustomDomainCustomHttps.ps1 index afe11c64ed95..2d9fce403943 100644 --- a/src/Cdn/Cdn.Autorest/exports/Enable-AzCdnCustomDomainCustomHttps.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Enable-AzCdnCustomDomainCustomHttps.ps1 @@ -196,7 +196,13 @@ begin { EnableViaIdentity = 'Az.Cdn.private\Enable-AzCdnCustomDomainCustomHttps_EnableViaIdentity'; } if (('Enable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Enable-AzFrontDoorCdnProfileMigration.ps1 b/src/Cdn/Cdn.Autorest/exports/Enable-AzFrontDoorCdnProfileMigration.ps1 index 8d080631886a..e30194b0c7fe 100644 --- a/src/Cdn/Cdn.Autorest/exports/Enable-AzFrontDoorCdnProfileMigration.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Enable-AzFrontDoorCdnProfileMigration.ps1 @@ -147,7 +147,13 @@ begin { __AllParameterSets = 'Az.Cdn.custom\Enable-AzFrontDoorCdnProfileMigration'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnCustomDomain.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnCustomDomain.ps1 index db344d48f7b5..145378377c5f 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnCustomDomain.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnCustomDomain.ps1 @@ -179,7 +179,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnCustomDomain_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnEndpoint.ps1 index 0628efd58851..9af0e04fc49e 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnEndpoint.ps1 @@ -177,7 +177,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnEndpoint_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnEndpointResourceUsage.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnEndpointResourceUsage.ps1 index c9373f89cbac..edc16d5d3ab1 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnEndpointResourceUsage.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnEndpointResourceUsage.ps1 @@ -134,7 +134,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnEndpointResourceUsage_List1'; } if (('List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnOrigin.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnOrigin.ps1 index 9309db2afa17..5ffcc74a8488 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnOrigin.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnOrigin.ps1 @@ -179,7 +179,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnOrigin_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnOriginGroup.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnOriginGroup.ps1 index 108aa61a39b1..f35b006d98b8 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnOriginGroup.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnOriginGroup.ps1 @@ -181,7 +181,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnOriginGroup_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfile.ps1 index 9ba22a519eb9..977c60c578e0 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfile.ps1 @@ -168,7 +168,13 @@ begin { GetViaIdentity = 'Az.Cdn.custom\Get-AzCdnProfile'; } if (('List', 'Get', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfileResourceUsage.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfileResourceUsage.ps1 index a8c40bca82cc..5002f9e0273c 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfileResourceUsage.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfileResourceUsage.ps1 @@ -128,7 +128,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnProfileResourceUsage_List1'; } if (('List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfileSupportedOptimizationType.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfileSupportedOptimizationType.ps1 index c21b3929bf22..e7b36357966d 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfileSupportedOptimizationType.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnProfileSupportedOptimizationType.ps1 @@ -130,7 +130,13 @@ begin { List = 'Az.Cdn.private\Get-AzCdnProfileSupportedOptimizationType_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnSubscriptionResourceUsage.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnSubscriptionResourceUsage.ps1 index c4634bc3f0cf..af324f49e47c 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzCdnSubscriptionResourceUsage.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzCdnSubscriptionResourceUsage.ps1 @@ -116,7 +116,13 @@ begin { List = 'Az.Cdn.private\Get-AzCdnSubscriptionResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnCustomDomain.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnCustomDomain.ps1 index 060f51b5222d..22e048b8dbb2 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnCustomDomain.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnCustomDomain.ps1 @@ -171,7 +171,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnCustomDomain_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnEndpoint.ps1 index 8a5f8979b4f5..45347461f671 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnEndpoint.ps1 @@ -172,7 +172,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnEndpoint_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnEndpointResourceUsage.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnEndpointResourceUsage.ps1 index e0e2ddc61c11..32596afd15fc 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnEndpointResourceUsage.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnEndpointResourceUsage.ps1 @@ -134,7 +134,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnEndpointResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOrigin.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOrigin.ps1 index f8968cab7223..c9d47bade39a 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOrigin.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOrigin.ps1 @@ -178,7 +178,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnOrigin_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOriginGroup.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOriginGroup.ps1 index 4901fa928ade..870c4c2ea692 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOriginGroup.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOriginGroup.ps1 @@ -173,7 +173,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnOriginGroup_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOriginGroupResourceUsage.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOriginGroupResourceUsage.ps1 index 04b478542174..514bf85d93d9 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOriginGroupResourceUsage.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnOriginGroupResourceUsage.ps1 @@ -134,7 +134,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnOriginGroupResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnProfile.ps1 index f9cdaf044240..b0129a93cf09 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnProfile.ps1 @@ -168,7 +168,13 @@ begin { GetViaIdentity = 'Az.Cdn.custom\Get-AzFrontDoorCdnProfile'; } if (('List', 'Get', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnProfileResourceUsage.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnProfileResourceUsage.ps1 index a08b036aef83..da923e4d0274 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnProfileResourceUsage.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnProfileResourceUsage.ps1 @@ -128,7 +128,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnProfileResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRoute.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRoute.ps1 index 3315820e69a6..9ae947da1d02 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRoute.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRoute.ps1 @@ -186,7 +186,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnRoute_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRule.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRule.ps1 index a3182af6ad27..03c2e4f8b0ad 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRule.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRule.ps1 @@ -193,7 +193,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnRule_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRuleSet.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRuleSet.ps1 index cad2a8fec20b..2d888ec64d1c 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRuleSet.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRuleSet.ps1 @@ -172,7 +172,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnRuleSet_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRuleSetResourceUsage.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRuleSetResourceUsage.ps1 index 4f054895dc4b..6c728fc8537d 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRuleSetResourceUsage.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnRuleSetResourceUsage.ps1 @@ -134,7 +134,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnRuleSetResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnSecret.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnSecret.ps1 index 38fc3e7cab65..a9e569f62a14 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnSecret.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnSecret.ps1 @@ -174,7 +174,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnSecret_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnSecurityPolicy.ps1 b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnSecurityPolicy.ps1 index 50394a4f4e3f..fdda023acaad 100644 --- a/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnSecurityPolicy.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Get-AzFrontDoorCdnSecurityPolicy.ps1 @@ -179,7 +179,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnSecurityPolicy_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Import-AzCdnEndpointContent.ps1 b/src/Cdn/Cdn.Autorest/exports/Import-AzCdnEndpointContent.ps1 index 4ee472b826ab..18ffb1948ddb 100644 --- a/src/Cdn/Cdn.Autorest/exports/Import-AzCdnEndpointContent.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Import-AzCdnEndpointContent.ps1 @@ -216,7 +216,13 @@ begin { LoadViaIdentityExpanded = 'Az.Cdn.private\Import-AzCdnEndpointContent_LoadViaIdentityExpanded'; } if (('Load', 'LoadExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzCdnCustomDomain.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzCdnCustomDomain.ps1 index cd47643d116a..f21867c50974 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzCdnCustomDomain.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzCdnCustomDomain.ps1 @@ -160,7 +160,13 @@ begin { CreateExpanded1 = 'Az.Cdn.private\New-AzCdnCustomDomain_CreateExpanded1'; } if (('CreateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzCdnEndpoint.ps1 index 7c3190db1701..f1b312cc2273 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzCdnEndpoint.ps1 @@ -353,7 +353,13 @@ begin { CreateExpanded1 = 'Az.Cdn.private\New-AzCdnEndpoint_CreateExpanded1'; } if (('CreateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzCdnOrigin.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzCdnOrigin.ps1 index 243b6fa3b062..b6497abaa858 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzCdnOrigin.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzCdnOrigin.ps1 @@ -230,7 +230,13 @@ begin { CreateExpanded1 = 'Az.Cdn.private\New-AzCdnOrigin_CreateExpanded1'; } if (('CreateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzCdnOriginGroup.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzCdnOriginGroup.ps1 index 99ac995b2931..97cee8f66393 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzCdnOriginGroup.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzCdnOriginGroup.ps1 @@ -206,7 +206,13 @@ begin { CreateExpanded1 = 'Az.Cdn.private\New-AzCdnOriginGroup_CreateExpanded1'; } if (('CreateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzCdnProfile.ps1 index e64990b120fa..6ce5745d18b0 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzCdnProfile.ps1 @@ -167,7 +167,13 @@ begin { CreateExpanded = 'Az.Cdn.custom\New-AzCdnProfile'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnCustomDomain.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnCustomDomain.ps1 index 2bd9133e6096..e665c965167d 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnCustomDomain.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnCustomDomain.ps1 @@ -193,7 +193,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnCustomDomain_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnEndpoint.ps1 index 846f2b59aaca..4bc36a028649 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnEndpoint.ps1 @@ -175,7 +175,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnEndpoint_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnOrigin.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnOrigin.ps1 index 23c91bab7788..1d18d9ba6d98 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnOrigin.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnOrigin.ps1 @@ -248,7 +248,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnOrigin_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnOriginGroup.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnOriginGroup.ps1 index 080efbce93a3..1647ba0db797 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnOriginGroup.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnOriginGroup.ps1 @@ -193,7 +193,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnOriginGroup_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnProfile.ps1 index 35b37c918368..800447aa075b 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnProfile.ps1 @@ -183,7 +183,13 @@ begin { CreateExpanded = 'Az.Cdn.custom\New-AzFrontDoorCdnProfile'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRoute.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRoute.ps1 index 692fbf02cb67..be50304e7ef9 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRoute.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRoute.ps1 @@ -276,7 +276,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnRoute_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRule.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRule.ps1 index 08f1d0145da8..61c806e989d6 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRule.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRule.ps1 @@ -211,7 +211,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnRule_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRuleSet.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRuleSet.ps1 index e3cac8217037..0973ebf85d03 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRuleSet.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnRuleSet.ps1 @@ -135,7 +135,13 @@ begin { Create = 'Az.Cdn.private\New-AzFrontDoorCdnRuleSet_Create'; } if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnSecret.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnSecret.ps1 index ad01c9ca50bb..75366f5ad835 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnSecret.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnSecret.ps1 @@ -163,7 +163,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnSecret_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnSecurityPolicy.ps1 b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnSecurityPolicy.ps1 index 00e7110b302a..72adbd823ba2 100644 --- a/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnSecurityPolicy.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/New-AzFrontDoorCdnSecurityPolicy.ps1 @@ -158,7 +158,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnSecurityPolicy_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Cdn/Cdn.Autorest/exports/ProxyCmdletDefinitions.ps1 index 72ec79bba818..a23072e8a893 100644 --- a/src/Cdn/Cdn.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -214,7 +214,13 @@ begin { PurgeViaIdentityExpanded1 = 'Az.Cdn.private\Clear-AzCdnEndpointContent_PurgeViaIdentityExpanded1'; } if (('Purge1', 'PurgeExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -475,7 +481,13 @@ begin { PurgeViaIdentityExpanded = 'Az.Cdn.private\Clear-AzFrontDoorCdnEndpointContent_PurgeViaIdentityExpanded'; } if (('Purge', 'PurgeExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -694,7 +706,13 @@ begin { DisableViaIdentity = 'Az.Cdn.private\Disable-AzCdnCustomDomainCustomHttps_DisableViaIdentity'; } if (('Disable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -928,7 +946,13 @@ begin { EnableViaIdentity = 'Az.Cdn.private\Enable-AzCdnCustomDomainCustomHttps_EnableViaIdentity'; } if (('Enable') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1145,7 +1169,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnCustomDomain_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1461,7 +1491,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnEndpointResourceUsage_List1'; } if (('List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1676,7 +1712,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnEndpoint_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1895,7 +1937,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnOriginGroup_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2112,7 +2160,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnOrigin_List1'; } if (('Get1', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2278,7 +2332,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnProfileResourceUsage_List1'; } if (('List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2446,7 +2506,13 @@ begin { List = 'Az.Cdn.private\Get-AzCdnProfileSupportedOptimizationType_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2600,7 +2666,13 @@ begin { List = 'Az.Cdn.private\Get-AzCdnSubscriptionResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2809,7 +2881,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnCustomDomain_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2981,7 +3059,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnEndpointResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3191,7 +3275,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnEndpoint_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3363,7 +3453,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnOriginGroupResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3574,7 +3670,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnOriginGroup_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3790,7 +3892,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnOrigin_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3956,7 +4064,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnProfileResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4180,7 +4294,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnRoute_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4352,7 +4472,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnRuleSetResourceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4562,7 +4688,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnRuleSet_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4793,7 +4925,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnRule_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5005,7 +5143,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnSecret_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5222,7 +5366,13 @@ begin { List = 'Az.Cdn.private\Get-AzFrontDoorCdnSecurityPolicy_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5476,7 +5626,13 @@ begin { LoadViaIdentityExpanded = 'Az.Cdn.private\Import-AzCdnEndpointContent_LoadViaIdentityExpanded'; } if (('Load', 'LoadExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -5674,7 +5830,13 @@ begin { CreateExpanded1 = 'Az.Cdn.private\New-AzCdnCustomDomain_CreateExpanded1'; } if (('CreateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6065,7 +6227,13 @@ begin { CreateExpanded1 = 'Az.Cdn.private\New-AzCdnEndpoint_CreateExpanded1'; } if (('CreateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6309,7 +6477,13 @@ begin { CreateExpanded1 = 'Az.Cdn.private\New-AzCdnOriginGroup_CreateExpanded1'; } if (('CreateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6577,7 +6751,13 @@ begin { CreateExpanded1 = 'Az.Cdn.private\New-AzCdnOrigin_CreateExpanded1'; } if (('CreateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -6808,7 +6988,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnCustomDomain_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7021,7 +7207,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnEndpoint_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7252,7 +7444,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnOriginGroup_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7538,7 +7736,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnOrigin_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7852,7 +8056,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnRoute_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8025,7 +8235,13 @@ begin { Create = 'Az.Cdn.private\New-AzFrontDoorCdnRuleSet_Create'; } if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8274,7 +8490,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnRule_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8475,7 +8697,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnSecret_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8671,7 +8899,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzFrontDoorCdnSecurityPolicy_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8899,7 +9133,13 @@ begin { DeleteViaIdentity1 = 'Az.Cdn.private\Remove-AzCdnCustomDomain_DeleteViaIdentity1'; } if (('Delete1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9121,7 +9361,13 @@ begin { DeleteViaIdentity1 = 'Az.Cdn.private\Remove-AzCdnEndpoint_DeleteViaIdentity1'; } if (('Delete1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9349,7 +9595,13 @@ begin { DeleteViaIdentity1 = 'Az.Cdn.private\Remove-AzCdnOriginGroup_DeleteViaIdentity1'; } if (('Delete1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9577,7 +9829,13 @@ begin { DeleteViaIdentity1 = 'Az.Cdn.private\Remove-AzCdnOrigin_DeleteViaIdentity1'; } if (('Delete1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9798,7 +10056,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnCustomDomain_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10019,7 +10283,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnEndpoint_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10240,7 +10510,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnOriginGroup_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10467,7 +10743,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnOrigin_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10695,7 +10977,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnRoute_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10917,7 +11205,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnRuleSet_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -11146,7 +11440,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnRule_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -11368,7 +11668,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnSecret_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -11591,7 +11897,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnSecurityPolicy_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -11807,7 +12119,13 @@ begin { StartViaIdentity = 'Az.Cdn.private\Start-AzCdnEndpoint_StartViaIdentity'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12023,7 +12341,13 @@ begin { StopViaIdentity = 'Az.Cdn.private\Stop-AzCdnEndpoint_StopViaIdentity'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12233,7 +12557,13 @@ begin { ValidateViaIdentityExpanded1 = 'Az.Cdn.private\Test-AzCdnEndpointCustomDomain_ValidateViaIdentityExpanded1'; } if (('ValidateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12403,7 +12733,13 @@ begin { CheckExpanded1 = 'Az.Cdn.private\Test-AzCdnNameAvailability_CheckExpanded1'; } if (('CheckExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12567,7 +12903,13 @@ begin { ValidateExpanded = 'Az.Cdn.private\Test-AzCdnProbe_ValidateExpanded'; } if (('ValidateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12777,7 +13119,13 @@ begin { ValidateViaIdentityExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnEndpointCustomDomain_ValidateViaIdentityExpanded'; } if (('ValidateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -12960,7 +13308,13 @@ begin { CheckExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnEndpointNameAvailability_CheckExpanded'; } if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -13163,7 +13517,13 @@ begin { CheckViaIdentityExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnProfileHostNameAvailability_CheckViaIdentityExpanded'; } if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -13542,7 +13902,13 @@ begin { UpdateViaIdentityExpanded1 = 'Az.Cdn.private\Update-AzCdnEndpoint_UpdateViaIdentityExpanded1'; } if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -13813,7 +14179,13 @@ begin { UpdateViaIdentityExpanded1 = 'Az.Cdn.private\Update-AzCdnOriginGroup_UpdateViaIdentityExpanded1'; } if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -14114,7 +14486,13 @@ begin { UpdateViaIdentityExpanded1 = 'Az.Cdn.private\Update-AzCdnOrigin_UpdateViaIdentityExpanded1'; } if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -14335,7 +14713,13 @@ begin { RefreshViaIdentity = 'Az.Cdn.private\Update-AzFrontDoorCdnCustomDomainValidationToken_RefreshViaIdentity'; } if (('Refresh') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -14582,7 +14966,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnCustomDomain_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -14820,7 +15210,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnEndpoint_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -15078,7 +15474,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnOriginGroup_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -15397,7 +15799,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnOrigin_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -15732,7 +16140,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnRoute_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -15995,7 +16409,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnRule_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -16232,7 +16652,13 @@ begin { PatchViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnSecurityPolicy_PatchViaIdentityExpanded'; } if (('PatchExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -16417,7 +16843,13 @@ begin { __AllParameterSets = 'Az.Cdn.custom\Enable-AzFrontDoorCdnProfileMigration'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -16623,7 +17055,13 @@ begin { GetViaIdentity = 'Az.Cdn.custom\Get-AzCdnProfile'; } if (('List', 'Get', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -16829,7 +17267,13 @@ begin { GetViaIdentity = 'Az.Cdn.custom\Get-AzFrontDoorCdnProfile'; } if (('List', 'Get', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -19911,7 +20355,13 @@ begin { CreateExpanded = 'Az.Cdn.custom\New-AzCdnProfile'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -21610,7 +22060,13 @@ begin { CreateExpanded = 'Az.Cdn.custom\New-AzFrontDoorCdnProfile'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -26192,7 +26648,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.custom\Remove-AzCdnProfile'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -26409,7 +26871,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.custom\Remove-AzFrontDoorCdnProfile'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -26659,7 +27127,13 @@ begin { __AllParameterSets = 'Az.Cdn.custom\Start-AzFrontDoorCdnProfilePrepareMigration'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -26842,7 +27316,13 @@ begin { __AllParameterSets = 'Az.Cdn.custom\Stop-AzFrontDoorCdnProfileMigration'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -27021,7 +27501,13 @@ begin { CanExpanded = 'Az.Cdn.custom\Test-AzFrontDoorCdnProfileMigration'; } if (('CanExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -27252,7 +27738,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.custom\Update-AzCdnProfile'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -27504,7 +27996,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.custom\Update-AzFrontDoorCdnProfile'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -27716,7 +28214,13 @@ begin { __AllParameterSets = 'Az.Cdn.custom\Update-AzFrontDoorCdnProfileSku'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnCustomDomain.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnCustomDomain.ps1 index 425bdf0a261a..1171ebde814c 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnCustomDomain.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnCustomDomain.ps1 @@ -190,7 +190,13 @@ begin { DeleteViaIdentity1 = 'Az.Cdn.private\Remove-AzCdnCustomDomain_DeleteViaIdentity1'; } if (('Delete1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnEndpoint.ps1 index 2de753731b58..56f28c3a7921 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnEndpoint.ps1 @@ -184,7 +184,13 @@ begin { DeleteViaIdentity1 = 'Az.Cdn.private\Remove-AzCdnEndpoint_DeleteViaIdentity1'; } if (('Delete1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnOrigin.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnOrigin.ps1 index bcd5f43853cc..77459428f845 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnOrigin.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnOrigin.ps1 @@ -190,7 +190,13 @@ begin { DeleteViaIdentity1 = 'Az.Cdn.private\Remove-AzCdnOrigin_DeleteViaIdentity1'; } if (('Delete1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnOriginGroup.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnOriginGroup.ps1 index 65a9851db3ab..e9b54f7f2838 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnOriginGroup.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnOriginGroup.ps1 @@ -190,7 +190,13 @@ begin { DeleteViaIdentity1 = 'Az.Cdn.private\Remove-AzCdnOriginGroup_DeleteViaIdentity1'; } if (('Delete1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnProfile.ps1 index d23d0d7ef87e..abe3167a721a 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzCdnProfile.ps1 @@ -179,7 +179,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.custom\Remove-AzCdnProfile'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnCustomDomain.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnCustomDomain.ps1 index 40e55d4a4716..1ed483109302 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnCustomDomain.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnCustomDomain.ps1 @@ -183,7 +183,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnCustomDomain_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnEndpoint.ps1 index fc404f0f4e76..3b170b64947b 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnEndpoint.ps1 @@ -183,7 +183,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnEndpoint_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnOrigin.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnOrigin.ps1 index 0071f62ff809..b242644986a3 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnOrigin.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnOrigin.ps1 @@ -189,7 +189,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnOrigin_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnOriginGroup.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnOriginGroup.ps1 index b324ceb46bfb..0e0f305c8d94 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnOriginGroup.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnOriginGroup.ps1 @@ -183,7 +183,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnOriginGroup_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnProfile.ps1 index b03f5af396f7..33c529e2c522 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnProfile.ps1 @@ -179,7 +179,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.custom\Remove-AzFrontDoorCdnProfile'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRoute.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRoute.ps1 index 0dcf8f4f2f14..1b106815634e 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRoute.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRoute.ps1 @@ -190,7 +190,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnRoute_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRule.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRule.ps1 index 2a31a0189f1c..1f46df942f90 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRule.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRule.ps1 @@ -191,7 +191,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnRule_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRuleSet.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRuleSet.ps1 index f471822b67e6..5aa0e2bacefb 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRuleSet.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnRuleSet.ps1 @@ -184,7 +184,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnRuleSet_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnSecret.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnSecret.ps1 index 11618823d021..411180acd196 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnSecret.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnSecret.ps1 @@ -184,7 +184,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnSecret_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnSecurityPolicy.ps1 b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnSecurityPolicy.ps1 index 12128b3b8182..d91012f20e33 100644 --- a/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnSecurityPolicy.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Remove-AzFrontDoorCdnSecurityPolicy.ps1 @@ -185,7 +185,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzFrontDoorCdnSecurityPolicy_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Start-AzCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/Start-AzCdnEndpoint.ps1 index 8110c7186464..246cf4a7502e 100644 --- a/src/Cdn/Cdn.Autorest/exports/Start-AzCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Start-AzCdnEndpoint.ps1 @@ -178,7 +178,13 @@ begin { StartViaIdentity = 'Az.Cdn.private\Start-AzCdnEndpoint_StartViaIdentity'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Start-AzFrontDoorCdnProfilePrepareMigration.ps1 b/src/Cdn/Cdn.Autorest/exports/Start-AzFrontDoorCdnProfilePrepareMigration.ps1 index 597a3665969b..a82f79e679c6 100644 --- a/src/Cdn/Cdn.Autorest/exports/Start-AzFrontDoorCdnProfilePrepareMigration.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Start-AzFrontDoorCdnProfilePrepareMigration.ps1 @@ -212,7 +212,13 @@ begin { __AllParameterSets = 'Az.Cdn.custom\Start-AzFrontDoorCdnProfilePrepareMigration'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Stop-AzCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/Stop-AzCdnEndpoint.ps1 index 7548dec972be..03734dd16785 100644 --- a/src/Cdn/Cdn.Autorest/exports/Stop-AzCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Stop-AzCdnEndpoint.ps1 @@ -178,7 +178,13 @@ begin { StopViaIdentity = 'Az.Cdn.private\Stop-AzCdnEndpoint_StopViaIdentity'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Stop-AzFrontDoorCdnProfileMigration.ps1 b/src/Cdn/Cdn.Autorest/exports/Stop-AzFrontDoorCdnProfileMigration.ps1 index 889d29caaeb4..38f9872b5068 100644 --- a/src/Cdn/Cdn.Autorest/exports/Stop-AzFrontDoorCdnProfileMigration.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Stop-AzFrontDoorCdnProfileMigration.ps1 @@ -145,7 +145,13 @@ begin { __AllParameterSets = 'Az.Cdn.custom\Stop-AzFrontDoorCdnProfileMigration'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Test-AzCdnEndpointCustomDomain.ps1 b/src/Cdn/Cdn.Autorest/exports/Test-AzCdnEndpointCustomDomain.ps1 index 45a7cc21da3b..d1443c811399 100644 --- a/src/Cdn/Cdn.Autorest/exports/Test-AzCdnEndpointCustomDomain.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Test-AzCdnEndpointCustomDomain.ps1 @@ -172,7 +172,13 @@ begin { ValidateViaIdentityExpanded1 = 'Az.Cdn.private\Test-AzCdnEndpointCustomDomain_ValidateViaIdentityExpanded1'; } if (('ValidateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Test-AzCdnNameAvailability.ps1 b/src/Cdn/Cdn.Autorest/exports/Test-AzCdnNameAvailability.ps1 index 4f4ca475e60c..a9f2ca7ac279 100644 --- a/src/Cdn/Cdn.Autorest/exports/Test-AzCdnNameAvailability.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Test-AzCdnNameAvailability.ps1 @@ -132,7 +132,13 @@ begin { CheckExpanded1 = 'Az.Cdn.private\Test-AzCdnNameAvailability_CheckExpanded1'; } if (('CheckExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Test-AzCdnProbe.ps1 b/src/Cdn/Cdn.Autorest/exports/Test-AzCdnProbe.ps1 index 01e8307b1d42..194f1eb79eff 100644 --- a/src/Cdn/Cdn.Autorest/exports/Test-AzCdnProbe.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Test-AzCdnProbe.ps1 @@ -126,7 +126,13 @@ begin { ValidateExpanded = 'Az.Cdn.private\Test-AzCdnProbe_ValidateExpanded'; } if (('ValidateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnEndpointCustomDomain.ps1 b/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnEndpointCustomDomain.ps1 index d421d9e21c32..ee30b7f907bc 100644 --- a/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnEndpointCustomDomain.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnEndpointCustomDomain.ps1 @@ -172,7 +172,13 @@ begin { ValidateViaIdentityExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnEndpointCustomDomain_ValidateViaIdentityExpanded'; } if (('ValidateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnEndpointNameAvailability.ps1 b/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnEndpointNameAvailability.ps1 index 63ac2deda0f6..ac6a3a356123 100644 --- a/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnEndpointNameAvailability.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnEndpointNameAvailability.ps1 @@ -145,7 +145,13 @@ begin { CheckExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnEndpointNameAvailability_CheckExpanded'; } if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnProfileHostNameAvailability.ps1 b/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnProfileHostNameAvailability.ps1 index b3d829e3a400..e330756fbe81 100644 --- a/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnProfileHostNameAvailability.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnProfileHostNameAvailability.ps1 @@ -165,7 +165,13 @@ begin { CheckViaIdentityExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnProfileHostNameAvailability_CheckViaIdentityExpanded'; } if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnProfileMigration.ps1 b/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnProfileMigration.ps1 index 332007d8a19a..d40f7e76621b 100644 --- a/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnProfileMigration.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Test-AzFrontDoorCdnProfileMigration.ps1 @@ -141,7 +141,13 @@ begin { CanExpanded = 'Az.Cdn.custom\Test-AzFrontDoorCdnProfileMigration'; } if (('CanExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzCdnEndpoint.ps1 index 6c444de6527e..84eb11cbfad4 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzCdnEndpoint.ps1 @@ -341,7 +341,13 @@ begin { UpdateViaIdentityExpanded1 = 'Az.Cdn.private\Update-AzCdnEndpoint_UpdateViaIdentityExpanded1'; } if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzCdnOrigin.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzCdnOrigin.ps1 index 6a287524dedc..5a50845337c6 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzCdnOrigin.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzCdnOrigin.ps1 @@ -263,7 +263,13 @@ begin { UpdateViaIdentityExpanded1 = 'Az.Cdn.private\Update-AzCdnOrigin_UpdateViaIdentityExpanded1'; } if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzCdnOriginGroup.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzCdnOriginGroup.ps1 index 995a6486cff6..39170e0d849e 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzCdnOriginGroup.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzCdnOriginGroup.ps1 @@ -233,7 +233,13 @@ begin { UpdateViaIdentityExpanded1 = 'Az.Cdn.private\Update-AzCdnOriginGroup_UpdateViaIdentityExpanded1'; } if (('UpdateExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzCdnProfile.ps1 index 32f715ad6272..0b28435e586a 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzCdnProfile.ps1 @@ -193,7 +193,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.custom\Update-AzCdnProfile'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnCustomDomain.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnCustomDomain.ps1 index 56f126b1e3e4..675ba045c625 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnCustomDomain.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnCustomDomain.ps1 @@ -209,7 +209,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnCustomDomain_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnCustomDomainValidationToken.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnCustomDomainValidationToken.ps1 index 94463e157a74..affe9700d02b 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnCustomDomainValidationToken.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnCustomDomainValidationToken.ps1 @@ -183,7 +183,13 @@ begin { RefreshViaIdentity = 'Az.Cdn.private\Update-AzFrontDoorCdnCustomDomainValidationToken_RefreshViaIdentity'; } if (('Refresh') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnEndpoint.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnEndpoint.ps1 index 8591bff4e77b..40e8392659a4 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnEndpoint.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnEndpoint.ps1 @@ -200,7 +200,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnEndpoint_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnOrigin.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnOrigin.ps1 index 945cb5ac93e1..3fecab30056b 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnOrigin.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnOrigin.ps1 @@ -281,7 +281,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnOrigin_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnOriginGroup.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnOriginGroup.ps1 index 514c25ba7146..62803f22a0d1 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnOriginGroup.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnOriginGroup.ps1 @@ -220,7 +220,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnOriginGroup_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnProfile.ps1 index 76f23c96935d..6481d5178272 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnProfile.ps1 @@ -214,7 +214,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.custom\Update-AzFrontDoorCdnProfile'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnProfileSku.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnProfileSku.ps1 index 2b6a56c005ea..97de02adcd72 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnProfileSku.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnProfileSku.ps1 @@ -174,7 +174,13 @@ begin { __AllParameterSets = 'Az.Cdn.custom\Update-AzFrontDoorCdnProfileSku'; } if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnRoute.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnRoute.ps1 index bc694e383f30..9b64c33cbd67 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnRoute.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnRoute.ps1 @@ -297,7 +297,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnRoute_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnRule.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnRule.ps1 index 9c931bf3b5f9..fba1ea8770dd 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnRule.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnRule.ps1 @@ -225,7 +225,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnRule_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnSecurityPolicy.ps1 b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnSecurityPolicy.ps1 index 7bb9c5fd0681..4c090ec7ce9a 100644 --- a/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnSecurityPolicy.ps1 +++ b/src/Cdn/Cdn.Autorest/exports/Update-AzFrontDoorCdnSecurityPolicy.ps1 @@ -199,7 +199,13 @@ begin { PatchViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnSecurityPolicy_PatchViaIdentityExpanded'; } if (('PatchExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + 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.Cdn.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/Cdn/Cdn.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/Cdn/Cdn.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index bbbed37d56a8..dc492e1fb1c8 100644 --- a/src/Cdn/Cdn.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/Cdn/Cdn.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -269,9 +269,26 @@ private string GetDefaultValuesStatements() var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList(); var parameterName = defaultInfo.ParameterGroup.ParameterName; sb.AppendLine(); - sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); - 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}')) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }}"); + 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}')) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.Append($"{Indent}{Indent}}}"); + } } return sb.ToString(); } diff --git a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticLocation.ps1 b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticLocation.ps1 index ad877f7e07ce..56aa87a22905 100644 --- a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticLocation.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticLocation.ps1 @@ -143,7 +143,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticLocation_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticMetric.ps1 b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticMetric.ps1 index f23bc3f51366..53312f3ab545 100644 --- a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticMetric.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticMetric.ps1 @@ -206,7 +206,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticMetric_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticRanking.ps1 b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticRanking.ps1 index a1b851f6b4a2..ff2a1c5cbd8d 100644 --- a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticRanking.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticRanking.ps1 @@ -184,7 +184,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticRanking_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticResource.ps1 b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticResource.ps1 index f7e65c94986b..636b9d96cc09 100644 --- a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticResource.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticResource.ps1 @@ -143,7 +143,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticResource_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticWafLogAnalyticMetric.ps1 b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticWafLogAnalyticMetric.ps1 index eb3ac7af36ce..629e2e066e85 100644 --- a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticWafLogAnalyticMetric.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticWafLogAnalyticMetric.ps1 @@ -194,7 +194,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticWafLogAnalyticMetric_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticWafLogAnalyticRanking.ps1 b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticWafLogAnalyticRanking.ps1 index 2cfb83c0525d..e02d06d00e5e 100644 --- a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticWafLogAnalyticRanking.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnLogAnalyticWafLogAnalyticRanking.ps1 @@ -193,7 +193,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticWafLogAnalyticRanking_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnProfile.ps1 index d856e42f24e8..9b1b0392a1e6 100644 --- a/src/Cdn/Cdn.Autorest/internal/Get-AzCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Get-AzCdnProfile.ps1 @@ -152,7 +152,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnProfile_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Invoke-AzCdnCanProfileMigrate.ps1 b/src/Cdn/Cdn.Autorest/internal/Invoke-AzCdnCanProfileMigrate.ps1 index bc0c0f934eeb..fd99de69ee0d 100644 --- a/src/Cdn/Cdn.Autorest/internal/Invoke-AzCdnCanProfileMigrate.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Invoke-AzCdnCanProfileMigrate.ps1 @@ -173,7 +173,13 @@ begin { CanViaIdentityExpanded = 'Az.Cdn.private\Invoke-AzCdnCanProfileMigrate_CanViaIdentityExpanded'; } if (('Can', 'CanExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Invoke-AzCdnCommitProfileMigration.ps1 b/src/Cdn/Cdn.Autorest/internal/Invoke-AzCdnCommitProfileMigration.ps1 index 620fb2b8c0ab..ed28c3efd578 100644 --- a/src/Cdn/Cdn.Autorest/internal/Invoke-AzCdnCommitProfileMigration.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Invoke-AzCdnCommitProfileMigration.ps1 @@ -160,7 +160,13 @@ begin { CommitViaIdentity = 'Az.Cdn.private\Invoke-AzCdnCommitProfileMigration_CommitViaIdentity'; } if (('Commit') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Move-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/internal/Move-AzCdnProfile.ps1 index 7b13dd1317a5..0764fb61f08a 100644 --- a/src/Cdn/Cdn.Autorest/internal/Move-AzCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Move-AzCdnProfile.ps1 @@ -208,7 +208,13 @@ begin { MigrateViaIdentityExpanded = 'Az.Cdn.private\Move-AzCdnProfile_MigrateViaIdentityExpanded'; } if (('Migrate', 'MigrateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/New-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/internal/New-AzCdnProfile.ps1 index 53ca790e54aa..c7ef1def9160 100644 --- a/src/Cdn/Cdn.Autorest/internal/New-AzCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/New-AzCdnProfile.ps1 @@ -167,7 +167,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzCdnProfile_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/New-AzCdnProfileSsoUri.ps1 b/src/Cdn/Cdn.Autorest/internal/New-AzCdnProfileSsoUri.ps1 index 9d78f9bf670c..902fa1f06f9b 100644 --- a/src/Cdn/Cdn.Autorest/internal/New-AzCdnProfileSsoUri.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/New-AzCdnProfileSsoUri.ps1 @@ -146,7 +146,13 @@ begin { GenerateViaIdentity = 'Az.Cdn.private\New-AzCdnProfileSsoUri_GenerateViaIdentity'; } if (('Generate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/Cdn/Cdn.Autorest/internal/ProxyCmdletDefinitions.ps1 index 375b44a81ad7..9f4904991616 100644 --- a/src/Cdn/Cdn.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -143,7 +143,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticLocation_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -368,7 +374,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticMetric_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -571,7 +583,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticRanking_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -733,7 +751,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticResource_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -946,7 +970,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticWafLogAnalyticMetric_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1158,7 +1188,13 @@ begin { GetViaIdentity = 'Az.Cdn.private\Get-AzCdnLogAnalyticWafLogAnalyticRanking_GetViaIdentity'; } if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1439,7 +1475,13 @@ begin { List1 = 'Az.Cdn.private\Get-AzCdnProfile_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1631,7 +1673,13 @@ begin { CanViaIdentityExpanded = 'Az.Cdn.private\Invoke-AzCdnCanProfileMigrate_CanViaIdentityExpanded'; } if (('Can', 'CanExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1810,7 +1858,13 @@ begin { CommitViaIdentity = 'Az.Cdn.private\Invoke-AzCdnCommitProfileMigration_CommitViaIdentity'; } if (('Commit') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2037,7 +2091,13 @@ begin { MigrateViaIdentityExpanded = 'Az.Cdn.private\Move-AzCdnProfile_MigrateViaIdentityExpanded'; } if (('Migrate', 'MigrateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2202,7 +2262,13 @@ begin { GenerateViaIdentity = 'Az.Cdn.private\New-AzCdnProfileSsoUri_GenerateViaIdentity'; } if (('Generate') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2388,7 +2454,13 @@ begin { CreateExpanded = 'Az.Cdn.private\New-AzCdnProfile_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2570,7 +2642,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzCdnProfile_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2752,7 +2830,13 @@ begin { CheckViaIdentityExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnProfileEndpointNameAvailability_CheckViaIdentityExpanded'; } if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2932,7 +3016,13 @@ begin { ValidateViaIdentityExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnProfileSecret_ValidateViaIdentityExpanded'; } if (('ValidateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3144,7 +3234,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzCdnProfile_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3361,7 +3457,13 @@ begin { UpgradeViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnProfileSku_UpgradeViaIdentityExpanded'; } if (('Upgrade') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Remove-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/internal/Remove-AzCdnProfile.ps1 index 4b6aa06c14e8..a3451c2f8ccd 100644 --- a/src/Cdn/Cdn.Autorest/internal/Remove-AzCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Remove-AzCdnProfile.ps1 @@ -163,7 +163,13 @@ begin { DeleteViaIdentity = 'Az.Cdn.private\Remove-AzCdnProfile_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Test-AzFrontDoorCdnProfileEndpointNameAvailability.ps1 b/src/Cdn/Cdn.Autorest/internal/Test-AzFrontDoorCdnProfileEndpointNameAvailability.ps1 index db636989045c..f2ee8bfe7801 100644 --- a/src/Cdn/Cdn.Autorest/internal/Test-AzFrontDoorCdnProfileEndpointNameAvailability.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Test-AzFrontDoorCdnProfileEndpointNameAvailability.ps1 @@ -163,7 +163,13 @@ begin { CheckViaIdentityExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnProfileEndpointNameAvailability_CheckViaIdentityExpanded'; } if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Test-AzFrontDoorCdnProfileSecret.ps1 b/src/Cdn/Cdn.Autorest/internal/Test-AzFrontDoorCdnProfileSecret.ps1 index 8b25a30e774a..d9da929231c1 100644 --- a/src/Cdn/Cdn.Autorest/internal/Test-AzFrontDoorCdnProfileSecret.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Test-AzFrontDoorCdnProfileSecret.ps1 @@ -161,7 +161,13 @@ begin { ValidateViaIdentityExpanded = 'Az.Cdn.private\Test-AzFrontDoorCdnProfileSecret_ValidateViaIdentityExpanded'; } if (('ValidateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Update-AzCdnProfile.ps1 b/src/Cdn/Cdn.Autorest/internal/Update-AzCdnProfile.ps1 index 2bcf6bb9b34a..2da38b7425f5 100644 --- a/src/Cdn/Cdn.Autorest/internal/Update-AzCdnProfile.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Update-AzCdnProfile.ps1 @@ -193,7 +193,13 @@ begin { UpdateViaIdentityExpanded = 'Az.Cdn.private\Update-AzCdnProfile_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/internal/Update-AzFrontDoorCdnProfileSku.ps1 b/src/Cdn/Cdn.Autorest/internal/Update-AzFrontDoorCdnProfileSku.ps1 index 199d5450782e..c732128a25f2 100644 --- a/src/Cdn/Cdn.Autorest/internal/Update-AzFrontDoorCdnProfileSku.ps1 +++ b/src/Cdn/Cdn.Autorest/internal/Update-AzFrontDoorCdnProfileSku.ps1 @@ -198,7 +198,13 @@ begin { UpgradeViaIdentityExpanded = 'Az.Cdn.private\Update-AzFrontDoorCdnProfileSku_UpgradeViaIdentityExpanded'; } if (('Upgrade') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/Cdn/Cdn.Autorest/test-module.ps1 b/src/Cdn/Cdn.Autorest/test-module.ps1 index 5a514b80a264..ad93cf242ce7 100644 --- a/src/Cdn/Cdn.Autorest/test-module.ps1 +++ b/src/Cdn/Cdn.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-------------' \ No newline at end of file diff --git a/src/Cdn/Cdn.Autorest/test/Test-AzCdnNameAvailability.Tests.ps1 b/src/Cdn/Cdn.Autorest/test/Test-AzCdnNameAvailability.Tests.ps1 index 0fc8bfc23137..134bf3748a20 100644 --- a/src/Cdn/Cdn.Autorest/test/Test-AzCdnNameAvailability.Tests.ps1 +++ b/src/Cdn/Cdn.Autorest/test/Test-AzCdnNameAvailability.Tests.ps1 @@ -15,25 +15,25 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzCdnNameAvailability')) } Describe 'Test-AzCdnNameAvailability' { - It 'CheckExpanded' { - $endpointName = 'e-ndpstest110' - $resourceType = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ResourceType]::MicrosoftCdnProfilesEndpoints + # It 'CheckExpanded' { + # $endpointName = 'e-ndpstest110' + # $resourceType = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ResourceType]::MicrosoftCdnProfilesEndpoints - $nameAvailability = Test-AzCdnNameAvailability -Name $endpointName -Type $resourceType - $nameAvailability.NameAvailable | Should -BeTrue + # $nameAvailability = Test-AzCdnNameAvailability -Name $endpointName -Type $resourceType + # $nameAvailability.NameAvailable | Should -BeTrue - $nameAvailability = Test-AzCdnNameAvailability -Name $env.ClassicEndpointName -Type $resourceType - $nameAvailability.NameAvailable | Should -BeFalse - } + # $nameAvailability = Test-AzCdnNameAvailability -Name $env.ClassicEndpointName -Type $resourceType + # $nameAvailability.NameAvailable | Should -BeFalse + # } - It 'CheckExpanded1' { - $endpointName = 'e-ndpstest111' - $resourceType = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ResourceType]::MicrosoftCdnProfilesEndpoints + # It 'CheckExpanded1' { + # $endpointName = 'e-ndpstest111' + # $resourceType = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ResourceType]::MicrosoftCdnProfilesEndpoints - $nameAvailability = Test-AzCdnNameAvailability -Name $endpointName -Type $resourceType - $nameAvailability.NameAvailable | Should -BeTrue + # $nameAvailability = Test-AzCdnNameAvailability -Name $endpointName -Type $resourceType + # $nameAvailability.NameAvailable | Should -BeTrue - $nameAvailability = Test-AzCdnNameAvailability -Name $env.ClassicEndpointName -Type $resourceType - $nameAvailability.NameAvailable | Should -BeFalse - } + # $nameAvailability = Test-AzCdnNameAvailability -Name $env.ClassicEndpointName -Type $resourceType + # $nameAvailability.NameAvailable | Should -BeFalse + # } } diff --git a/src/Cdn/Cdn.Autorest/test/loadEnv.ps1 b/src/Cdn/Cdn.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/Cdn/Cdn.Autorest/test/loadEnv.ps1 +++ b/src/Cdn/Cdn.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/Cdn/Cdn.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/Cdn/Cdn.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/Cdn/Cdn.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/Cdn/Cdn/Az.Cdn.psd1 b/src/Cdn/Cdn/Az.Cdn.psd1 index 05268119424b..bd21fc9f3538 100644 --- a/src/Cdn/Cdn/Az.Cdn.psd1 +++ b/src/Cdn/Cdn/Az.Cdn.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2/29/2024 +# Generated on: 3/25/2024 # @{ @@ -57,10 +57,10 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.16.0'; }) RequiredAssemblies = 'Cdn.Autorest/bin/Az.Cdn.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 = 'Cdn.Autorest/Az.Cdn.format.ps1xml' @@ -214,7 +214,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','Cdn' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Cdn' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -239,7 +239,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Cdn/Cdn/help/Clear-AzCdnEndpointContent.md b/src/Cdn/Cdn/help/Clear-AzCdnEndpointContent.md index 2c08610b0f59..c6f7adf790ca 100644 --- a/src/Cdn/Cdn/help/Clear-AzCdnEndpointContent.md +++ b/src/Cdn/Cdn/help/Clear-AzCdnEndpointContent.md @@ -292,29 +292,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CONTENTFILEPATH `: Parameters required for content purge. - - `ContentPath `: The path to the content to be purged. Can describe a file path or a wild card directory. - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Clear-AzFrontDoorCdnEndpointContent.md b/src/Cdn/Cdn/help/Clear-AzFrontDoorCdnEndpointContent.md index 9d3ec7fb48c5..482c5cf2eea4 100644 --- a/src/Cdn/Cdn/help/Clear-AzFrontDoorCdnEndpointContent.md +++ b/src/Cdn/Cdn/help/Clear-AzFrontDoorCdnEndpointContent.md @@ -308,30 +308,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CONTENT `: Parameters required for content purge. - - `ContentPath `: The path to the content to be purged. Can describe a file path or a wild card directory. - - `[Domain ]`: List of domains. - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Disable-AzCdnCustomDomainCustomHttps.md b/src/Cdn/Cdn/help/Disable-AzCdnCustomDomainCustomHttps.md index 03ef0b85cdf6..eb05474ef80e 100644 --- a/src/Cdn/Cdn/help/Disable-AzCdnCustomDomainCustomHttps.md +++ b/src/Cdn/Cdn/help/Disable-AzCdnCustomDomainCustomHttps.md @@ -235,26 +235,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Enable-AzCdnCustomDomainCustomHttps.md b/src/Cdn/Cdn/help/Enable-AzCdnCustomDomainCustomHttps.md index 74549351047a..00041a6e82fe 100644 --- a/src/Cdn/Cdn/help/Enable-AzCdnCustomDomainCustomHttps.md +++ b/src/Cdn/Cdn/help/Enable-AzCdnCustomDomainCustomHttps.md @@ -262,31 +262,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CUSTOMDOMAINHTTPSPARAMETER `: The JSON object that contains the properties to secure a custom domain. - - `CertificateSource `: Defines the source of the SSL certificate. - - `ProtocolType `: Defines the TLS extension protocol that is used for secure delivery. - - `[MinimumTlsVersion ]`: TLS protocol version that will be used for Https - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Enable-AzFrontDoorCdnProfileMigration.md b/src/Cdn/Cdn/help/Enable-AzFrontDoorCdnProfileMigration.md index e852cc1ff8c2..a07a24f0455b 100644 --- a/src/Cdn/Cdn/help/Enable-AzFrontDoorCdnProfileMigration.md +++ b/src/Cdn/Cdn/help/Enable-AzFrontDoorCdnProfileMigration.md @@ -201,6 +201,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnCustomDomain.md b/src/Cdn/Cdn/help/Get-AzCdnCustomDomain.md index 76fc4c8a7c8a..384793b8b4cb 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnCustomDomain.md +++ b/src/Cdn/Cdn/help/Get-AzCdnCustomDomain.md @@ -214,26 +214,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnEdgeNode.md b/src/Cdn/Cdn/help/Get-AzCdnEdgeNode.md index 90d5160933c1..266a55319392 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnEdgeNode.md +++ b/src/Cdn/Cdn/help/Get-AzCdnEdgeNode.md @@ -80,6 +80,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnEndpoint.md b/src/Cdn/Cdn/help/Get-AzCdnEndpoint.md index 45e079af35c6..70495b17d302 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnEndpoint.md +++ b/src/Cdn/Cdn/help/Get-AzCdnEndpoint.md @@ -202,26 +202,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnEndpointResourceUsage.md b/src/Cdn/Cdn/help/Get-AzCdnEndpointResourceUsage.md index 644939f1e6dc..f370a81f545d 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnEndpointResourceUsage.md +++ b/src/Cdn/Cdn/help/Get-AzCdnEndpointResourceUsage.md @@ -178,6 +178,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnOrigin.md b/src/Cdn/Cdn/help/Get-AzCdnOrigin.md index db6d0b140ab2..eb6cb0ee8603 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnOrigin.md +++ b/src/Cdn/Cdn/help/Get-AzCdnOrigin.md @@ -214,26 +214,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnOriginGroup.md b/src/Cdn/Cdn/help/Get-AzCdnOriginGroup.md index aee34853ed84..f7a616388cdc 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnOriginGroup.md +++ b/src/Cdn/Cdn/help/Get-AzCdnOriginGroup.md @@ -216,26 +216,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnProfile.md b/src/Cdn/Cdn/help/Get-AzCdnProfile.md index 81af7fa1a7c7..76c4b6d3f298 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnProfile.md +++ b/src/Cdn/Cdn/help/Get-AzCdnProfile.md @@ -202,26 +202,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnProfileResourceUsage.md b/src/Cdn/Cdn/help/Get-AzCdnProfileResourceUsage.md index 0b2dcdac074d..13be91c84082 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnProfileResourceUsage.md +++ b/src/Cdn/Cdn/help/Get-AzCdnProfileResourceUsage.md @@ -155,6 +155,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnProfileSupportedOptimizationType.md b/src/Cdn/Cdn/help/Get-AzCdnProfileSupportedOptimizationType.md index 1c8998d7ab7a..dac4e959bbda 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnProfileSupportedOptimizationType.md +++ b/src/Cdn/Cdn/help/Get-AzCdnProfileSupportedOptimizationType.md @@ -156,6 +156,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzCdnSubscriptionResourceUsage.md b/src/Cdn/Cdn/help/Get-AzCdnSubscriptionResourceUsage.md index 19bb36e9d99d..88f59e7ea95e 100644 --- a/src/Cdn/Cdn/help/Get-AzCdnSubscriptionResourceUsage.md +++ b/src/Cdn/Cdn/help/Get-AzCdnSubscriptionResourceUsage.md @@ -126,6 +126,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnCustomDomain.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnCustomDomain.md index 396bc961a2ec..96cf15bafc80 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnCustomDomain.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnCustomDomain.md @@ -198,26 +198,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnEndpoint.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnEndpoint.md index 5f5710a48723..5b84787c2b5d 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnEndpoint.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnEndpoint.md @@ -199,26 +199,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnEndpointResourceUsage.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnEndpointResourceUsage.md index a4f53532fe3d..f1a4721d7d62 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnEndpointResourceUsage.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnEndpointResourceUsage.md @@ -171,6 +171,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOrigin.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOrigin.md index 12b7fa60cf3f..94f5d54b3c4d 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOrigin.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOrigin.md @@ -214,26 +214,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOriginGroup.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOriginGroup.md index 675122943c87..d7fd029ae194 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOriginGroup.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOriginGroup.md @@ -200,26 +200,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOriginGroupResourceUsage.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOriginGroupResourceUsage.md index f081994ede5d..58ce4a679aa8 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOriginGroupResourceUsage.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnOriginGroupResourceUsage.md @@ -171,6 +171,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnProfile.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnProfile.md index dbe3dfcb3870..07d35ef98d91 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnProfile.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnProfile.md @@ -202,26 +202,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnProfileResourceUsage.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnProfileResourceUsage.md index 98caf10ebee5..46297b34cb58 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnProfileResourceUsage.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnProfileResourceUsage.md @@ -161,6 +161,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRoute.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRoute.md index 8ab9338b76c1..1bdf0684b9f8 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRoute.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRoute.md @@ -223,26 +223,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRule.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRule.md index 80d1222b2914..3bc324969bc9 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRule.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRule.md @@ -228,26 +228,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRuleSet.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRuleSet.md index 20d36ff10150..abdc56b16c13 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRuleSet.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRuleSet.md @@ -198,26 +198,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRuleSetResourceUsage.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRuleSetResourceUsage.md index 097c121903d3..f041d85e5f19 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRuleSetResourceUsage.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnRuleSetResourceUsage.md @@ -171,6 +171,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnSecret.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnSecret.md index 49cdac7b21f8..078594355dfe 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnSecret.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnSecret.md @@ -200,26 +200,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnSecurityPolicy.md b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnSecurityPolicy.md index aba94945e7c1..f993dc2d7eb4 100644 --- a/src/Cdn/Cdn/help/Get-AzFrontDoorCdnSecurityPolicy.md +++ b/src/Cdn/Cdn/help/Get-AzFrontDoorCdnSecurityPolicy.md @@ -204,26 +204,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Import-AzCdnEndpointContent.md b/src/Cdn/Cdn/help/Import-AzCdnEndpointContent.md index 324e29dbf7d8..c6834818230f 100644 --- a/src/Cdn/Cdn/help/Import-AzCdnEndpointContent.md +++ b/src/Cdn/Cdn/help/Import-AzCdnEndpointContent.md @@ -294,29 +294,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CONTENTFILEPATH `: Parameters required for content load. - - `ContentPath `: The path to the content to be loaded. Path should be a relative file URL of the origin. - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnCustomDomain.md b/src/Cdn/Cdn/help/New-AzCdnCustomDomain.md index 7cf00783bc91..20f4a43f3338 100644 --- a/src/Cdn/Cdn/help/New-AzCdnCustomDomain.md +++ b/src/Cdn/Cdn/help/New-AzCdnCustomDomain.md @@ -232,6 +232,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCacheExpirationActionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCacheExpirationActionObject.md index f7c73c2e055f..b1db510a8472 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCacheExpirationActionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCacheExpirationActionObject.md @@ -110,6 +110,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.md index 1650b7facd16..113744ba8e32 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCacheKeyQueryStringActionObject.md @@ -109,6 +109,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCookiesConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCookiesConditionObject.md index 9f1afe016830..452c9cf85e05 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCookiesConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleCookiesConditionObject.md @@ -154,6 +154,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleHttpVersionConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleHttpVersionConditionObject.md index 922ea2fe490a..df8dedc3a3f0 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleHttpVersionConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleHttpVersionConditionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleIsDeviceConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleIsDeviceConditionObject.md index 51de29f28675..e9373dfe2044 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleIsDeviceConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleIsDeviceConditionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleObject.md index a7f6e9422f78..747f9493c20f 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleObject.md @@ -137,17 +137,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`ACTION `: A list of actions that are executed when all the conditions of a rule are satisfied. - - `Name `: The name of the action for the delivery rule. - -`CONDITION `: A list of conditions that must be matched for the actions to be executed. - - `Name `: The name of the condition for the delivery rule. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRulePostArgsConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRulePostArgsConditionObject.md index 9ef04c5e604b..c6c74adbf9b1 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRulePostArgsConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRulePostArgsConditionObject.md @@ -154,6 +154,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleQueryStringConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleQueryStringConditionObject.md index 554687f5d357..35dceb74d52e 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleQueryStringConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleQueryStringConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRemoteAddressConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRemoteAddressConditionObject.md index cea04459daea..1130bdff1ada 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRemoteAddressConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRemoteAddressConditionObject.md @@ -141,6 +141,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestBodyConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestBodyConditionObject.md index ed573feb2eb9..cdee7455001b 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestBodyConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestBodyConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestHeaderActionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestHeaderActionObject.md index 822834e963d3..37dd2c633d43 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestHeaderActionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestHeaderActionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestHeaderConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestHeaderConditionObject.md index 69b51df24061..be15f3000a39 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestHeaderConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestHeaderConditionObject.md @@ -155,6 +155,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestMethodConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestMethodConditionObject.md index 5ec5e2eb49e9..a334efa43508 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestMethodConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestMethodConditionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestSchemeConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestSchemeConditionObject.md index 3ced0454d60a..ad5ce991c88b 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestSchemeConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestSchemeConditionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestUriConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestUriConditionObject.md index da80e187fae1..949a7deecdfb 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestUriConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleRequestUriConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleResponseHeaderActionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleResponseHeaderActionObject.md index f86bc6575240..d05fef1a2056 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleResponseHeaderActionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleResponseHeaderActionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.md index 98df4ddc279d..e83d678afbd7 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlFileNameConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlFileNameConditionObject.md index e801ee3ef902..3a96fbf859b8 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlFileNameConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlFileNameConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlPathConditionObject.md b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlPathConditionObject.md index 99917d6d2336..5e1843c5108b 100644 --- a/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlPathConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnDeliveryRuleUrlPathConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnEndpoint.md b/src/Cdn/Cdn/help/New-AzCdnEndpoint.md index 3fd89f5a4980..7069464f834b 100644 --- a/src/Cdn/Cdn/help/New-AzCdnEndpoint.md +++ b/src/Cdn/Cdn/help/New-AzCdnEndpoint.md @@ -519,63 +519,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`DELIVERYPOLICYRULE `: A list of the delivery rules. - - `Action `: A list of actions that are executed when all the conditions of a rule are satisfied. - - `Name `: The name of the action for the delivery rule. - - `Order `: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. - - `[Condition ]`: A list of conditions that must be matched for the actions to be executed - - `Name `: The name of the condition for the delivery rule. - - `[Name ]`: Name of the rule - -`GEOFILTER `: List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ - - `Action `: Action of the geo filter, i.e. allow or block access. - - `CountryCode `: Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US. - - `RelativePath `: Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) - -`ORIGIN `: The source of the content being delivered via CDN. - - `Name `: Origin name which must be unique within the endpoint. - - `[Enabled ]`: Origin is enabled for load balancing or not. By default, origin is always enabled. - - `[HostName ]`: The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint. - - `[HttpPort ]`: The value of the HTTP port. Must be between 1 and 65535. - - `[HttpsPort ]`: The value of the HTTPS port. Must be between 1 and 65535. - - `[OriginHostHeader ]`: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. - - `[Priority ]`: Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. - - `[PrivateLinkAlias ]`: The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private' - - `[PrivateLinkApprovalMessage ]`: A custom message to be included in the approval request to connect to the Private Link. - - `[PrivateLinkLocation ]`: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated - - `[PrivateLinkResourceId ]`: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private' - - `[Weight ]`: Weight of the origin in given origin group for load balancing. Must be between 1 and 1000 - -`ORIGINGROUP `: The origin groups comprising of origins that are used for load balancing the traffic based on availability. - - `Name `: Origin group name which must be unique within the endpoint. - - `[HealthProbeSetting ]`: Health probe settings to the origin that is used to determine the health of the origin. - - `[ProbeIntervalInSecond ]`: The number of seconds between health probes.Default is 240sec. - - `[ProbePath ]`: The path relative to the origin that is used to determine the health of the origin. - - `[ProbeProtocol ]`: Protocol to use for health probe. - - `[ProbeRequestType ]`: The type of health probe request that is made. - - `[Origin ]`: The source of the content being delivered via CDN within given origin group. - - `[Id ]`: Resource ID. - - `[ResponseBasedOriginErrorDetectionSetting ]`: The JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported. - - `[HttpErrorRange ]`: The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. - - `[Begin ]`: The inclusive start of the http status code range. - - `[End ]`: The inclusive end of the http status code range. - - `[ResponseBasedDetectedErrorType ]`: Type of response errors for real user requests for which origin will be deemed unhealthy - - `[ResponseBasedFailoverThresholdPercentage ]`: The percentage of failed requests in the sample where failover should trigger. - - `[TrafficRestorationTimeToHealedOrNewEndpointsInMinute ]`: Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported. - -`URLSIGNINGKEY `: List of keys used to validate the signed URL hashes. - - `KeyId `: Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash. - - `KeySourceParameterResourceGroupName `: Resource group of the user's Key Vault containing the secret - - `KeySourceParameterSecretName `: The name of secret in Key Vault. - - `KeySourceParameterSecretVersion `: The version(GUID) of secret in Key Vault. - - `KeySourceParameterSubscriptionId `: Subscription Id of the user's Key Vault containing the secret - - `KeySourceParameterVaultName `: The name of the user's Key Vault containing the secret - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnHealthProbeParametersObject.md b/src/Cdn/Cdn/help/New-AzCdnHealthProbeParametersObject.md index 6a5239336c6b..98134c679cb8 100644 --- a/src/Cdn/Cdn/help/New-AzCdnHealthProbeParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnHealthProbeParametersObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnLoadParametersObject.md b/src/Cdn/Cdn/help/New-AzCdnLoadParametersObject.md index ebe03662d834..2b90387c903e 100644 --- a/src/Cdn/Cdn/help/New-AzCdnLoadParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnLoadParametersObject.md @@ -79,6 +79,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnManagedHttpsParametersObject.md b/src/Cdn/Cdn/help/New-AzCdnManagedHttpsParametersObject.md index adbc98984424..f6d8b3447e15 100644 --- a/src/Cdn/Cdn/help/New-AzCdnManagedHttpsParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnManagedHttpsParametersObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnOrigin.md b/src/Cdn/Cdn/help/New-AzCdnOrigin.md index 6c26c1ff1141..7f1bdb91cb7a 100644 --- a/src/Cdn/Cdn/help/New-AzCdnOrigin.md +++ b/src/Cdn/Cdn/help/New-AzCdnOrigin.md @@ -395,6 +395,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnOriginGroup.md b/src/Cdn/Cdn/help/New-AzCdnOriginGroup.md index f99209552b96..f2bfee21d245 100644 --- a/src/Cdn/Cdn/help/New-AzCdnOriginGroup.md +++ b/src/Cdn/Cdn/help/New-AzCdnOriginGroup.md @@ -286,27 +286,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`HEALTHPROBESETTING `: Health probe settings to the origin that is used to determine the health of the origin. - - `[ProbeIntervalInSecond ]`: The number of seconds between health probes.Default is 240sec. - - `[ProbePath ]`: The path relative to the origin that is used to determine the health of the origin. - - `[ProbeProtocol ]`: Protocol to use for health probe. - - `[ProbeRequestType ]`: The type of health probe request that is made. - -`ORIGIN `: The source of the content being delivered via CDN within given origin group. - - `[Id ]`: Resource ID. - -`RESPONSEBASEDORIGINERRORDETECTIONSETTING `: The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. - - `[HttpErrorRange ]`: The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. - - `[Begin ]`: The inclusive start of the http status code range. - - `[End ]`: The inclusive end of the http status code range. - - `[ResponseBasedDetectedErrorType ]`: Type of response errors for real user requests for which origin will be deemed unhealthy - - `[ResponseBasedFailoverThresholdPercentage ]`: The percentage of failed requests in the sample where failover should trigger. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnOriginGroupOverrideActionObject.md b/src/Cdn/Cdn/help/New-AzCdnOriginGroupOverrideActionObject.md index 218c68b185bd..56e2ef1da783 100644 --- a/src/Cdn/Cdn/help/New-AzCdnOriginGroupOverrideActionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnOriginGroupOverrideActionObject.md @@ -93,6 +93,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnProfile.md b/src/Cdn/Cdn/help/New-AzCdnProfile.md index 62fbc5579ab9..ab15b1b7ead6 100644 --- a/src/Cdn/Cdn/help/New-AzCdnProfile.md +++ b/src/Cdn/Cdn/help/New-AzCdnProfile.md @@ -246,6 +246,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnPurgeParametersObject.md b/src/Cdn/Cdn/help/New-AzCdnPurgeParametersObject.md index 43b2391b97fa..8faf37251147 100644 --- a/src/Cdn/Cdn/help/New-AzCdnPurgeParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnPurgeParametersObject.md @@ -80,6 +80,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnResourceReferenceObject.md b/src/Cdn/Cdn/help/New-AzCdnResourceReferenceObject.md index ab19e9370d63..75459bd62e09 100644 --- a/src/Cdn/Cdn/help/New-AzCdnResourceReferenceObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnResourceReferenceObject.md @@ -77,6 +77,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.md b/src/Cdn/Cdn/help/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.md index 0b4c9bbe8a86..8e4451e95ce8 100644 --- a/src/Cdn/Cdn/help/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.md @@ -110,15 +110,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`HTTPERRORRANGE `: The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. - - `[Begin ]`: The inclusive start of the http status code range. - - `[End ]`: The inclusive end of the http status code range. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnUrlRedirectActionObject.md b/src/Cdn/Cdn/help/New-AzCdnUrlRedirectActionObject.md index 0c229dcd8873..381238ce3174 100644 --- a/src/Cdn/Cdn/help/New-AzCdnUrlRedirectActionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnUrlRedirectActionObject.md @@ -179,6 +179,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnUrlRewriteActionObject.md b/src/Cdn/Cdn/help/New-AzCdnUrlRewriteActionObject.md index f8d915263713..1e0ce87d7b81 100644 --- a/src/Cdn/Cdn/help/New-AzCdnUrlRewriteActionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnUrlRewriteActionObject.md @@ -126,6 +126,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnUrlSigningActionObject.md b/src/Cdn/Cdn/help/New-AzCdnUrlSigningActionObject.md index b22da549beed..31ddb559d941 100644 --- a/src/Cdn/Cdn/help/New-AzCdnUrlSigningActionObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnUrlSigningActionObject.md @@ -111,15 +111,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`PARAMETERNAMEOVERRIDE `: Defines which query string parameters in the url to be considered for expires, key id etc. . - - `ParamIndicator `: Indicates the purpose of the parameter - - `ParamName `: Parameter name - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzCdnUserManagedHttpsParametersObject.md b/src/Cdn/Cdn/help/New-AzCdnUserManagedHttpsParametersObject.md index 56cb55434211..a57ae6c47a65 100644 --- a/src/Cdn/Cdn/help/New-AzCdnUserManagedHttpsParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzCdnUserManagedHttpsParametersObject.md @@ -186,6 +186,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnCustomDomain.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnCustomDomain.md index 33cf5ded9a01..a2808adaa162 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnCustomDomain.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnCustomDomain.md @@ -284,17 +284,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`TLSSETTING `: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. - - `CertificateType `: Defines the source of the SSL certificate. - - `[MinimumTlsVersion ]`: TLS protocol version that will be used for Https - - `[Secret ]`: Resource reference to the secret. ie. subs/rg/profile/secret - - `[Id ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.md index 8a9be62bf831..a95bd6b967dd 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.md @@ -114,14 +114,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`SECRET `: Resource reference to the secret. ie. subs/rg/profile/secret. - - `[Id ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnEndpoint.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnEndpoint.md index b93fed00781f..427d53fde790 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnEndpoint.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnEndpoint.md @@ -265,6 +265,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnMigrationParametersObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnMigrationParametersObject.md index 1244c5b7488a..6efbfb4fb3ed 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnMigrationParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnMigrationParametersObject.md @@ -125,15 +125,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`MIGRATIONWEBAPPLICATIONFIREWALLMAPPING `: Waf mapping for the migrated profile. - - `[MigratedFromId ]`: Resource ID. - - `[MigratedToId ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.md index 654984001753..7b493040d3d5 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnMigrationWebApplicationFirewallMappingObject.md @@ -93,6 +93,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnOrigin.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnOrigin.md index 1555afafbab0..e724e1381b40 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnOrigin.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnOrigin.md @@ -442,6 +442,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroup.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroup.md index 7205869f0120..bdd06c4e3158 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroup.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroup.md @@ -270,22 +270,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`HEALTHPROBESETTING `: Health probe settings to the origin that is used to determine the health of the origin. - - `[ProbeIntervalInSecond ]`: The number of seconds between health probes.Default is 240sec. - - `[ProbePath ]`: The path relative to the origin that is used to determine the health of the origin. - - `[ProbeProtocol ]`: Protocol to use for health probe. - - `[ProbeRequestType ]`: The type of health probe request that is made. - -`LOADBALANCINGSETTING `: Load balancing settings for a backend pool - - `[AdditionalLatencyInMillisecond ]`: The additional latency in milliseconds for probes to fall into the lowest latency bucket - - `[SampleSize ]`: The number of samples to consider for load balancing decisions - - `[SuccessfulSamplesRequired ]`: The number of samples within the sample period that must succeed - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.md index 039e341f9da1..784b5dee5c07 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.md index 68c386dc9f28..adcb9a26d218 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.md @@ -109,6 +109,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfile.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfile.md index 1ec35c8e83e7..f9d6213bad99 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfile.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfile.md @@ -280,6 +280,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.md index 968cf1e466d1..46c02830bb2e 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfileChangeSkuWafMappingObject.md @@ -93,6 +93,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfileUpgradeParametersObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfileUpgradeParametersObject.md index 1cf5ac6b8c7c..e1ff730232e7 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfileUpgradeParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnProfileUpgradeParametersObject.md @@ -102,15 +102,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`WAFMAPPINGLIST `: Web Application Firewall (WAF) and security policy mapping for the profile upgrade. - - `SecurityPolicyName `: The security policy name. - - `[ChangeToWafPolicyId ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnPurgeParametersObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnPurgeParametersObject.md index 34344cdfd516..cc8a39d255fd 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnPurgeParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnPurgeParametersObject.md @@ -95,6 +95,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnResourceReferenceObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnResourceReferenceObject.md index fe7a9e5259f7..e4a8b3b1716e 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnResourceReferenceObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnResourceReferenceObject.md @@ -79,6 +79,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRoute.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRoute.md index 2cc2eb3cce16..1ca5ca322c5b 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRoute.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRoute.md @@ -450,17 +450,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CUSTOMDOMAIN `: Domains referenced by this endpoint. - - `[Id ]`: Resource ID. - -`RULESET `: rule sets referenced by this endpoint. - - `[Id ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRule.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRule.md index f285800e097a..e2d6779d8ae2 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRule.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRule.md @@ -297,17 +297,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`ACTION `: A list of actions that are executed when all the conditions of a rule are satisfied. - - `Name `: The name of the action for the delivery rule. - -`CONDITION `: A list of conditions that must be matched for the actions to be executed - - `Name `: The name of the condition for the delivery rule. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleClientPortConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleClientPortConditionObject.md index 7853cc9b1c91..cbd3f2ad5bbb 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleClientPortConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleClientPortConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleCookiesConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleCookiesConditionObject.md index 574004897a9b..a85484bb75de 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleCookiesConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleCookiesConditionObject.md @@ -154,6 +154,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleHostNameConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleHostNameConditionObject.md index 1cda42852607..ae2e52f76c30 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleHostNameConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleHostNameConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleHttpVersionConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleHttpVersionConditionObject.md index 34c72f30a9e2..2e8ada9c1509 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleHttpVersionConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleHttpVersionConditionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleIsDeviceConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleIsDeviceConditionObject.md index 6b92058a6486..b5153a32a3c8 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleIsDeviceConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleIsDeviceConditionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRulePostArgsConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRulePostArgsConditionObject.md index e713a8fb3945..f1f9604cecec 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRulePostArgsConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRulePostArgsConditionObject.md @@ -154,6 +154,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleQueryStringConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleQueryStringConditionObject.md index 11fcc7e3eedb..24a4d9bad146 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleQueryStringConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleQueryStringConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.md index 75e50873c9bd..b6bbb845b298 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.md @@ -141,6 +141,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestBodyConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestBodyConditionObject.md index c8f9f5496aab..a2f5786489b1 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestBodyConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestBodyConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestHeaderActionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestHeaderActionObject.md index ac2c1f4637e6..583360b1eada 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestHeaderActionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestHeaderActionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.md index f5aa8529db70..35a2e7ba926b 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.md @@ -155,6 +155,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestMethodConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestMethodConditionObject.md index 448c7b8cb1c0..927c6fc97278 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestMethodConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestMethodConditionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.md index 8c02e4bdb8be..a3cf03f9947c 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestUriConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestUriConditionObject.md index e0c7103c4664..a17da06a5279 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestUriConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRequestUriConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleResponseHeaderActionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleResponseHeaderActionObject.md index 3d26d6081fe0..2b4e08b7666a 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleResponseHeaderActionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleResponseHeaderActionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.md index 610bf54e1749..215b07aa312f 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.md @@ -193,6 +193,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleServerPortConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleServerPortConditionObject.md index d5eba8d82fcc..d7dbe4a0e66b 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleServerPortConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleServerPortConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSet.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSet.md index 5dd99947829b..ca035c49e854 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSet.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSet.md @@ -171,6 +171,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSocketAddrConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSocketAddrConditionObject.md index 97e1d606bf6a..cdf255eba20f 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSocketAddrConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSocketAddrConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSslProtocolConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSslProtocolConditionObject.md index 94a0282cacf0..ce817daeb0b3 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSslProtocolConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleSslProtocolConditionObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.md index d9ecb45bc0f4..be05c1ea6970 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.md index d441e3b35789..73b2a4c4fd1d 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlPathConditionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlPathConditionObject.md index e3d17763c710..11a12ac22241 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlPathConditionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlPathConditionObject.md @@ -139,6 +139,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlRedirectActionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlRedirectActionObject.md index d9e3a2016931..fd80af2b6c39 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlRedirectActionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlRedirectActionObject.md @@ -179,6 +179,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlRewriteActionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlRewriteActionObject.md index 02998a87d14d..bb91d07205d7 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlRewriteActionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlRewriteActionObject.md @@ -126,6 +126,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlSigningActionObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlSigningActionObject.md index 57bd8db71387..1265fec4682a 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlSigningActionObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnRuleUrlSigningActionObject.md @@ -111,15 +111,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`PARAMETERNAMEOVERRIDE `: Defines which query string parameters in the url to be considered for expires, key id etc. . - - `ParamIndicator `: Indicates the purpose of the parameter - - `ParamName `: Parameter name - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecret.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecret.md index 647f650e0a6c..83ff151e3055 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecret.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecret.md @@ -219,14 +219,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`PARAMETER `: object which contains secret parameters - - `Type `: The type of the secret resource. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.md index fb004d397aa9..d4bb3ecbc049 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.md @@ -140,6 +140,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.md index ec9c9b2969ad..e7eac89dd89b 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.md @@ -78,6 +78,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.md index 1e9550485edf..cdace5cbb44d 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.md @@ -77,6 +77,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.md index 6563726af8c8..4fcd12c8a83c 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.md @@ -124,6 +124,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicy.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicy.md index fb91b811e695..22859da9cadf 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicy.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicy.md @@ -221,6 +221,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.md index 2b8d8683519e..cb150ae3874f 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.md @@ -96,14 +96,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`DOMAIN `: List of domains. - - `[Id ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.md b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.md index bbdd50b9ddcd..a23841fde4cf 100644 --- a/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.md +++ b/src/Cdn/Cdn/help/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.md @@ -98,16 +98,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`ASSOCIATION `: Waf associations. - - `[Domain ]`: List of domains. - - `[Id ]`: Resource ID. - - `[PatternsToMatch ]`: List of paths - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzCdnCustomDomain.md b/src/Cdn/Cdn/help/Remove-AzCdnCustomDomain.md index e4ea8901bd11..ce11e9e2753a 100644 --- a/src/Cdn/Cdn/help/Remove-AzCdnCustomDomain.md +++ b/src/Cdn/Cdn/help/Remove-AzCdnCustomDomain.md @@ -257,26 +257,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzCdnEndpoint.md b/src/Cdn/Cdn/help/Remove-AzCdnEndpoint.md index 316d74286844..744cb5963a66 100644 --- a/src/Cdn/Cdn/help/Remove-AzCdnEndpoint.md +++ b/src/Cdn/Cdn/help/Remove-AzCdnEndpoint.md @@ -242,26 +242,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzCdnOrigin.md b/src/Cdn/Cdn/help/Remove-AzCdnOrigin.md index 9a682625f010..683de656eac0 100644 --- a/src/Cdn/Cdn/help/Remove-AzCdnOrigin.md +++ b/src/Cdn/Cdn/help/Remove-AzCdnOrigin.md @@ -257,26 +257,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzCdnOriginGroup.md b/src/Cdn/Cdn/help/Remove-AzCdnOriginGroup.md index a249079a7c48..4686e03eede4 100644 --- a/src/Cdn/Cdn/help/Remove-AzCdnOriginGroup.md +++ b/src/Cdn/Cdn/help/Remove-AzCdnOriginGroup.md @@ -257,26 +257,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzCdnProfile.md b/src/Cdn/Cdn/help/Remove-AzCdnProfile.md index 6c5e0afbc708..125377cc3a17 100644 --- a/src/Cdn/Cdn/help/Remove-AzCdnProfile.md +++ b/src/Cdn/Cdn/help/Remove-AzCdnProfile.md @@ -228,26 +228,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnCustomDomain.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnCustomDomain.md index 83def7d4c69e..ca182d227b33 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnCustomDomain.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnCustomDomain.md @@ -242,26 +242,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnEndpoint.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnEndpoint.md index 9004abf05c28..6d21ca7ab70b 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnEndpoint.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnEndpoint.md @@ -242,26 +242,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnOrigin.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnOrigin.md index 05f4cc55adcf..c3622f1c7766 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnOrigin.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnOrigin.md @@ -257,26 +257,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnOriginGroup.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnOriginGroup.md index 165883462be4..585d5d083512 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnOriginGroup.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnOriginGroup.md @@ -242,26 +242,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnProfile.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnProfile.md index 641cacc6f35b..557eb615e858 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnProfile.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnProfile.md @@ -228,26 +228,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRoute.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRoute.md index 3f7d89da0d24..e8def761686b 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRoute.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRoute.md @@ -257,26 +257,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRule.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRule.md index d54e5e4fce57..df382bf32915 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRule.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRule.md @@ -257,26 +257,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRuleSet.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRuleSet.md index e2caf9c71350..10bf952776dc 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRuleSet.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnRuleSet.md @@ -242,26 +242,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnSecret.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnSecret.md index 100c08f52329..5747ec9f598c 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnSecret.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnSecret.md @@ -242,26 +242,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnSecurityPolicy.md b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnSecurityPolicy.md index ae8dedca24e2..ea6084c5e748 100644 --- a/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnSecurityPolicy.md +++ b/src/Cdn/Cdn/help/Remove-AzFrontDoorCdnSecurityPolicy.md @@ -242,26 +242,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Start-AzCdnEndpoint.md b/src/Cdn/Cdn/help/Start-AzCdnEndpoint.md index 2453c5517ca5..064576337af8 100644 --- a/src/Cdn/Cdn/help/Start-AzCdnEndpoint.md +++ b/src/Cdn/Cdn/help/Start-AzCdnEndpoint.md @@ -239,26 +239,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Start-AzFrontDoorCdnProfilePrepareMigration.md b/src/Cdn/Cdn/help/Start-AzFrontDoorCdnProfilePrepareMigration.md index a6a68c7e632c..1a6d74d430c0 100644 --- a/src/Cdn/Cdn/help/Start-AzFrontDoorCdnProfilePrepareMigration.md +++ b/src/Cdn/Cdn/help/Start-AzFrontDoorCdnProfilePrepareMigration.md @@ -349,15 +349,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`MIGRATIONWEBAPPLICATIONFIREWALLMAPPING `: Waf mapping for the migrated profile - - `[MigratedFromId ]`: Resource ID. - - `[MigratedToId ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Stop-AzCdnEndpoint.md b/src/Cdn/Cdn/help/Stop-AzCdnEndpoint.md index dec27b93edd6..142b4e65b91b 100644 --- a/src/Cdn/Cdn/help/Stop-AzCdnEndpoint.md +++ b/src/Cdn/Cdn/help/Stop-AzCdnEndpoint.md @@ -239,26 +239,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Stop-AzFrontDoorCdnProfileMigration.md b/src/Cdn/Cdn/help/Stop-AzFrontDoorCdnProfileMigration.md index ab872e1441a5..bf5669666a2d 100644 --- a/src/Cdn/Cdn/help/Stop-AzFrontDoorCdnProfileMigration.md +++ b/src/Cdn/Cdn/help/Stop-AzFrontDoorCdnProfileMigration.md @@ -193,6 +193,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Test-AzCdnEndpointCustomDomain.md b/src/Cdn/Cdn/help/Test-AzCdnEndpointCustomDomain.md index 1eea7b09889b..0ee0e9525f9e 100644 --- a/src/Cdn/Cdn/help/Test-AzCdnEndpointCustomDomain.md +++ b/src/Cdn/Cdn/help/Test-AzCdnEndpointCustomDomain.md @@ -219,26 +219,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Test-AzCdnNameAvailability.md b/src/Cdn/Cdn/help/Test-AzCdnNameAvailability.md index be1fdd131485..195e9ca87f09 100644 --- a/src/Cdn/Cdn/help/Test-AzCdnNameAvailability.md +++ b/src/Cdn/Cdn/help/Test-AzCdnNameAvailability.md @@ -164,6 +164,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Test-AzCdnProbe.md b/src/Cdn/Cdn/help/Test-AzCdnProbe.md index 16e96a8753f1..90272dfb88fd 100644 --- a/src/Cdn/Cdn/help/Test-AzCdnProbe.md +++ b/src/Cdn/Cdn/help/Test-AzCdnProbe.md @@ -144,6 +144,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Test-AzFrontDoorCdnEndpointCustomDomain.md b/src/Cdn/Cdn/help/Test-AzFrontDoorCdnEndpointCustomDomain.md index 8fe9561711ba..acfb3244f2cc 100644 --- a/src/Cdn/Cdn/help/Test-AzFrontDoorCdnEndpointCustomDomain.md +++ b/src/Cdn/Cdn/help/Test-AzFrontDoorCdnEndpointCustomDomain.md @@ -225,26 +225,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Test-AzFrontDoorCdnEndpointNameAvailability.md b/src/Cdn/Cdn/help/Test-AzFrontDoorCdnEndpointNameAvailability.md index 0f08d35216f0..77bae6e066ab 100644 --- a/src/Cdn/Cdn/help/Test-AzFrontDoorCdnEndpointNameAvailability.md +++ b/src/Cdn/Cdn/help/Test-AzFrontDoorCdnEndpointNameAvailability.md @@ -189,6 +189,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Test-AzFrontDoorCdnProfileHostNameAvailability.md b/src/Cdn/Cdn/help/Test-AzFrontDoorCdnProfileHostNameAvailability.md index 9f82ae2ea48b..52fda0f65964 100644 --- a/src/Cdn/Cdn/help/Test-AzFrontDoorCdnProfileHostNameAvailability.md +++ b/src/Cdn/Cdn/help/Test-AzFrontDoorCdnProfileHostNameAvailability.md @@ -209,26 +209,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Test-AzFrontDoorCdnProfileMigration.md b/src/Cdn/Cdn/help/Test-AzFrontDoorCdnProfileMigration.md index 10d21d114799..1efd1d98eefc 100644 --- a/src/Cdn/Cdn/help/Test-AzFrontDoorCdnProfileMigration.md +++ b/src/Cdn/Cdn/help/Test-AzFrontDoorCdnProfileMigration.md @@ -200,6 +200,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzCdnEndpoint.md b/src/Cdn/Cdn/help/Update-AzCdnEndpoint.md index b720acf6a4c8..3b9783201962 100644 --- a/src/Cdn/Cdn/help/Update-AzCdnEndpoint.md +++ b/src/Cdn/Cdn/help/Update-AzCdnEndpoint.md @@ -541,47 +541,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`DELIVERYPOLICYRULE `: A list of the delivery rules. - - `Action `: A list of actions that are executed when all the conditions of a rule are satisfied. - - `Name `: The name of the action for the delivery rule. - - `Order `: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. - - `[Condition ]`: A list of conditions that must be matched for the actions to be executed - - `Name `: The name of the condition for the delivery rule. - - `[Name ]`: Name of the rule - -`GEOFILTER `: List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ - - `Action `: Action of the geo filter, i.e. allow or block access. - - `CountryCode `: Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US. - - `RelativePath `: Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - -`URLSIGNINGKEY `: List of keys used to validate the signed URL hashes. - - `KeyId `: Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash. - - `KeySourceParameterResourceGroupName `: Resource group of the user's Key Vault containing the secret - - `KeySourceParameterSecretName `: The name of secret in Key Vault. - - `KeySourceParameterSecretVersion `: The version(GUID) of secret in Key Vault. - - `KeySourceParameterSubscriptionId `: Subscription Id of the user's Key Vault containing the secret - - `KeySourceParameterVaultName `: The name of the user's Key Vault containing the secret - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzCdnOrigin.md b/src/Cdn/Cdn/help/Update-AzCdnOrigin.md index 1a9ada1efe68..d533a4864310 100644 --- a/src/Cdn/Cdn/help/Update-AzCdnOrigin.md +++ b/src/Cdn/Cdn/help/Update-AzCdnOrigin.md @@ -449,26 +449,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzCdnOriginGroup.md b/src/Cdn/Cdn/help/Update-AzCdnOriginGroup.md index 3ea7b480dcbf..db6842d0e084 100644 --- a/src/Cdn/Cdn/help/Update-AzCdnOriginGroup.md +++ b/src/Cdn/Cdn/help/Update-AzCdnOriginGroup.md @@ -327,42 +327,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`HEALTHPROBESETTING `: Health probe settings to the origin that is used to determine the health of the origin. - - `[ProbeIntervalInSecond ]`: The number of seconds between health probes.Default is 240sec. - - `[ProbePath ]`: The path relative to the origin that is used to determine the health of the origin. - - `[ProbeProtocol ]`: Protocol to use for health probe. - - `[ProbeRequestType ]`: The type of health probe request that is made. - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - -`ORIGIN `: The source of the content being delivered via CDN within given origin group. - - `[Id ]`: Resource ID. - -`RESPONSEBASEDORIGINERRORDETECTIONSETTING `: The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported. - - `[HttpErrorRange ]`: The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy. - - `[Begin ]`: The inclusive start of the http status code range. - - `[End ]`: The inclusive end of the http status code range. - - `[ResponseBasedDetectedErrorType ]`: Type of response errors for real user requests for which origin will be deemed unhealthy - - `[ResponseBasedFailoverThresholdPercentage ]`: The percentage of failed requests in the sample where failover should trigger. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzCdnProfile.md b/src/Cdn/Cdn/help/Update-AzCdnProfile.md index 781f7641e474..d523b2fd3d89 100644 --- a/src/Cdn/Cdn/help/Update-AzCdnProfile.md +++ b/src/Cdn/Cdn/help/Update-AzCdnProfile.md @@ -263,26 +263,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnCustomDomain.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnCustomDomain.md index c28471f979e9..4325ba450b31 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnCustomDomain.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnCustomDomain.md @@ -295,32 +295,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - -`TLSSETTING `: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. - - `CertificateType `: Defines the source of the SSL certificate. - - `[MinimumTlsVersion ]`: TLS protocol version that will be used for Https - - `[Secret ]`: Resource reference to the secret. ie. subs/rg/profile/secret - - `[Id ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnCustomDomainValidationToken.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnCustomDomainValidationToken.md index 783202f209f3..6cc146f972a8 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnCustomDomainValidationToken.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnCustomDomainValidationToken.md @@ -242,26 +242,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnEndpoint.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnEndpoint.md index c158c49c2311..e43d8ab9158b 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnEndpoint.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnEndpoint.md @@ -279,26 +279,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnOrigin.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnOrigin.md index 361401548d1e..e46c412d61ce 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnOrigin.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnOrigin.md @@ -499,26 +499,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnOriginGroup.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnOriginGroup.md index edd4fa5198ce..16a7c69a87fc 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnOriginGroup.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnOriginGroup.md @@ -310,37 +310,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`HEALTHPROBESETTING `: Health probe settings to the origin that is used to determine the health of the origin. - - `[ProbeIntervalInSecond ]`: The number of seconds between health probes.Default is 240sec. - - `[ProbePath ]`: The path relative to the origin that is used to determine the health of the origin. - - `[ProbeProtocol ]`: Protocol to use for health probe. - - `[ProbeRequestType ]`: The type of health probe request that is made. - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - -`LOADBALANCINGSETTING `: Load balancing settings for a backend pool - - `[AdditionalLatencyInMillisecond ]`: The additional latency in milliseconds for probes to fall into the lowest latency bucket - - `[SampleSize ]`: The number of samples to consider for load balancing decisions - - `[SuccessfulSamplesRequired ]`: The number of samples within the sample period that must succeed - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnProfile.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnProfile.md index bf17c54b7b26..eacb260a0d42 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnProfile.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnProfile.md @@ -324,26 +324,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnProfileSku.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnProfileSku.md index 727c1bc81d14..5653c3a3ba7b 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnProfileSku.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnProfileSku.md @@ -256,16 +256,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`PROFILEUPGRADEPARAMETER `: Parameters required for profile upgrade. - - `WafMappingList `: Web Application Firewall (WAF) and security policy mapping for the profile upgrade - - `SecurityPolicyName `: The security policy name. - - `[ChangeToWafPolicyId ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnRoute.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnRoute.md index 754f95746062..a1ed5d1d17e8 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnRoute.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnRoute.md @@ -501,32 +501,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CUSTOMDOMAIN `: Domains referenced by this endpoint. - - `[Id ]`: Resource ID. - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - -`RULESET `: rule sets referenced by this endpoint. - - `[Id ]`: Resource ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnRule.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnRule.md index 8ead253b640e..29f712230858 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnRule.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnRule.md @@ -324,32 +324,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`ACTION `: A list of actions that are executed when all the conditions of a rule are satisfied. - - `Name `: The name of the action for the delivery rule. - -`CONDITION `: A list of conditions that must be matched for the actions to be executed - - `Name `: The name of the condition for the delivery rule. - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnSecurityPolicy.md b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnSecurityPolicy.md index ce9b51ebe2fa..037d0df7ea42 100644 --- a/src/Cdn/Cdn/help/Update-AzFrontDoorCdnSecurityPolicy.md +++ b/src/Cdn/Cdn/help/Update-AzFrontDoorCdnSecurityPolicy.md @@ -264,26 +264,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[CustomDomainName ]`: Name of the domain under the profile which is unique globally. - - `[EndpointName ]`: Name of the endpoint under the profile which is unique globally. - - `[Id ]`: Resource identity path - - `[OriginGroupName ]`: Name of the origin group which is unique within the endpoint. - - `[OriginName ]`: Name of the origin which is unique within the profile. - - `[ProfileName ]`: Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group. - - `[ResourceGroupName ]`: Name of the Resource group within the Azure subscription. - - `[RouteName ]`: Name of the routing rule. - - `[RuleName ]`: Name of the delivery rule which is unique within the endpoint. - - `[RuleSetName ]`: Name of the rule set under the profile which is unique globally. - - `[SecretName ]`: Name of the Secret under the profile. - - `[SecurityPolicyName ]`: Name of the security policy under the profile. - - `[SubscriptionId ]`: Azure Subscription ID. - ## RELATED LINKS diff --git a/tools/StaticAnalysis/Exceptions/Az.Cdn/UXMetadataIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Cdn/UXMetadataIssues.csv new file mode 100644 index 000000000000..45f0bc9bdf7e --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Cdn/UXMetadataIssues.csv @@ -0,0 +1,5 @@ +"Module","Severity","ResourceType","SubResourceType","Command","Description" +"Az.Cdn","1","Microsoft.Cdn","profiles-afdEndpoints","Clear-AzFrontDoorCdnEndpointContent","Cannot find a matched parameter set for example of Clear-AzFrontDoorCdnEndpointContent" +"Az.Cdn","1","Microsoft.Cdn","profiles-endpoints-customDomains","Enable-AzCdnCustomDomainCustomHttps","Cannot find a matched parameter set for example of Enable-AzCdnCustomDomainCustomHttps" +"Az.Cdn","1","Microsoft.Cdn","profiles-endpoints","Clear-AzCdnEndpointContent","Cannot find a matched parameter set for example of Clear-AzCdnEndpointContent" +"Az.Cdn","1","Microsoft.Cdn","profiles-endpoints","Import-AzCdnEndpointContent","Cannot find a matched parameter set for example of Import-AzCdnEndpointContent"