diff --git a/generated/EdgeAction/EdgeAction.Autorest/Az.EdgeAction.format.ps1xml b/generated/EdgeAction/EdgeAction.Autorest/Az.EdgeAction.format.ps1xml
index ea9fbf940ebc..d1536a09c637 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/Az.EdgeAction.format.ps1xml
+++ b/generated/EdgeAction/EdgeAction.Autorest/Az.EdgeAction.format.ps1xml
@@ -101,28 +101,6 @@
-
- Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.EdgeActionAttachmentResponse
-
- Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.EdgeActionAttachmentResponse#Multiple
-
-
-
-
-
-
-
-
-
-
-
- EdgeActionId
-
-
-
-
-
-
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.EdgeActionExecutionFilter
diff --git a/generated/EdgeAction/EdgeAction.Autorest/Az.EdgeAction.psd1 b/generated/EdgeAction/EdgeAction.Autorest/Az.EdgeAction.psd1
index cbf3fd6e54a3..d83eda2b044d 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/Az.EdgeAction.psd1
+++ b/generated/EdgeAction/EdgeAction.Autorest/Az.EdgeAction.psd1
@@ -1,7 +1,7 @@
@{
GUID = 'f5a7ab85-ded8-4ed5-aa41-3c88ab00edb9'
RootModule = './Az.EdgeAction.psm1'
- ModuleVersion = '0.1.0'
+ ModuleVersion = '0.1.1'
CompatiblePSEditions = 'Core', 'Desktop'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
@@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.EdgeAction.private.dll'
FormatsToProcess = './Az.EdgeAction.format.ps1xml'
- FunctionsToExport = 'Add-AzEdgeActionAttachment', 'Deploy-AzEdgeActionVersionCode', 'Get-AzEdgeAction', 'Get-AzEdgeActionExecutionFilter', 'Get-AzEdgeActionVersion', 'Get-AzEdgeActionVersionCode', 'New-AzEdgeAction', 'New-AzEdgeActionExecutionFilter', 'New-AzEdgeActionVersion', 'Remove-AzEdgeAction', 'Remove-AzEdgeActionAttachment', 'Remove-AzEdgeActionExecutionFilter', 'Remove-AzEdgeActionVersion', 'Switch-AzEdgeActionVersionDefault', 'Update-AzEdgeAction', 'Update-AzEdgeActionExecutionFilter', 'Update-AzEdgeActionVersion'
+ FunctionsToExport = 'Deploy-AzEdgeActionVersionCode', 'Get-AzEdgeAction', 'Get-AzEdgeActionExecutionFilter', 'Get-AzEdgeActionVersion', 'Get-AzEdgeActionVersionCode', 'New-AzEdgeAction', 'New-AzEdgeActionExecutionFilter', 'New-AzEdgeActionVersion', 'Remove-AzEdgeAction', 'Remove-AzEdgeActionExecutionFilter', 'Remove-AzEdgeActionVersion', 'Switch-AzEdgeActionVersionDefault', 'Update-AzEdgeAction', 'Update-AzEdgeActionExecutionFilter', 'Update-AzEdgeActionVersion'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'EdgeAction'
diff --git a/generated/EdgeAction/EdgeAction.Autorest/Properties/AssemblyInfo.cs b/generated/EdgeAction/EdgeAction.Autorest/Properties/AssemblyInfo.cs
index 9132b8b08f39..6cd3b4ed6acd 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/EdgeAction/EdgeAction.Autorest/Properties/AssemblyInfo.cs
@@ -26,7 +26,3 @@
[assembly: System.CLSCompliantAttribute(false)]
-
-
-
-
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Add-AzEdgeActionAttachment.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Add-AzEdgeActionAttachment.ps1
deleted file mode 100644
index 4fe5fdc2a17b..000000000000
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Add-AzEdgeActionAttachment.ps1
+++ /dev/null
@@ -1,279 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
-# is regenerated.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-A long-running resource action.
-.Description
-A long-running resource action.
-.Example
-Add-AzEdgeActionAttachment -EdgeActionName "myEdgeAction" -ResourceGroupName "myResourceGroup" -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myAfdProfile/rulesets/myRuleSet/rules/myRule"
-.Example
-Get-AzEdgeAction -Name "myEdgeAction" -ResourceGroupName "myResourceGroup" | Add-AzEdgeActionAttachment -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myAfdProfile/rulesets/myRuleSet/rules/myRule"
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachment
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachmentResponse
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-BODY : Edge action attachment information
- AttachedResourceId : The attached resource Id
-
-INPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/add-azedgeactionattachment
-#>
-function Add-AzEdgeActionAttachment {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachmentResponse])]
-[CmdletBinding(DefaultParameterSetName='AddExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='Add', Mandatory)]
- [Parameter(ParameterSetName='AddExpanded', Mandatory)]
- [Parameter(ParameterSetName='AddViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='AddViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the Edge Action
- ${EdgeActionName},
-
- [Parameter(ParameterSetName='Add', Mandatory)]
- [Parameter(ParameterSetName='AddExpanded', Mandatory)]
- [Parameter(ParameterSetName='AddViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='AddViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Add')]
- [Parameter(ParameterSetName='AddExpanded')]
- [Parameter(ParameterSetName='AddViaJsonFilePath')]
- [Parameter(ParameterSetName='AddViaJsonString')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- # The value must be an UUID.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='AddViaIdentity', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='AddViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='Add', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='AddViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachment]
- # Edge action attachment information
- ${Body},
-
- [Parameter(ParameterSetName='AddExpanded', Mandatory)]
- [Parameter(ParameterSetName='AddViaIdentityExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # The attached resource Id
- ${AttachedResourceId},
-
- [Parameter(ParameterSetName='AddViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Add operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='AddViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Json string supplied to the Add operation
- ${JsonString},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
- ${DefaultProfile},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
-
- $context = Get-AzContext
- if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
- }
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- Add = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_Add';
- AddExpanded = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddExpanded';
- AddViaIdentity = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddViaIdentity';
- AddViaIdentityExpanded = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddViaIdentityExpanded';
- AddViaJsonFilePath = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddViaJsonFilePath';
- AddViaJsonString = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddViaJsonString';
- }
- if (('Add', 'AddExpanded', 'AddViaJsonFilePath', 'AddViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- if ($testPlayback) {
- $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
- } else {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
- }
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- if ($wrappedCmd -eq $null) {
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
- }
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Deploy-AzEdgeActionVersionCode.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Deploy-AzEdgeActionVersionCode.ps1
index 49afeb168186..322f21f94aef 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Deploy-AzEdgeActionVersionCode.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Deploy-AzEdgeActionVersionCode.ps1
@@ -158,8 +158,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeAction.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeAction.ps1
index 29782cf23b7b..6937ec654848 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeAction.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeAction.ps1
@@ -140,8 +140,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionExecutionFilter.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionExecutionFilter.ps1
index 0fbe78c702e2..921c4e6f2b59 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionExecutionFilter.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionExecutionFilter.ps1
@@ -22,7 +22,7 @@ Get a EdgeActionExecutionFilter
.Example
Get-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction"
.Example
-Get-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Name "filter1"
+Get-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -ExecutionFilter "filter1"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
@@ -160,8 +160,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersion.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersion.ps1
index f854cd4f2a6c..d41dfb3c5fb1 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersion.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersion.ps1
@@ -160,8 +160,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersionCode.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersionCode.ps1
index b71832e6c78c..d7e1d37bc470 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersionCode.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersionCode.ps1
@@ -16,92 +16,56 @@
<#
.Synopsis
-A long-running resource action.
+Get Edge Action version code and optionally save to file.
.Description
-A long-running resource action.
+A long-running resource action that retrieves the version code for an Edge Action version.
+When the -OutputPath parameter is specified, the base64-encoded content is decoded and saved
+as a zip file to the specified directory.
+Otherwise, returns the raw response with base64 content.
.Example
Get-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1"
.Example
Get-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -OutputPath "C:\Downloads"
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IVersionCode
.Outputs
System.Management.Automation.PSCustomObject
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-EDGEACTIONINPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-
-INPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
.Link
https://learn.microsoft.com/powershell/module/az.edgeaction/get-azedgeactionversioncode
#>
function Get-AzEdgeActionVersionCode {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IVersionCode], [System.Management.Automation.PSCustomObject])]
-[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='GetCustom', PositionalBinding=$false)]
param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetAndSave', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
${EdgeActionName},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetAndSave', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='GetAndSave')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
- # The ID of the target subscription.
- # The value must be an UUID.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory)]
- [Parameter(ParameterSetName='GetAndSave', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action version
${Version},
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${EdgeActionInputObject},
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
- [Parameter(ParameterSetName='GetAndSave', Mandatory)]
+ [Parameter(ParameterSetName='GetAndSaveCustom', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
[System.String]
# Output directory to save the decoded version code as a zip file.
@@ -112,8 +76,7 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Azure')]
[System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ # The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
[Parameter()]
@@ -181,8 +144,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -203,12 +165,10 @@ begin {
}
$mapping = @{
- Get = 'Az.EdgeAction.private\Get-AzEdgeActionVersionCode_Get';
- GetViaIdentity = 'Az.EdgeAction.private\Get-AzEdgeActionVersionCode_GetViaIdentity';
- GetViaIdentityEdgeAction = 'Az.EdgeAction.private\Get-AzEdgeActionVersionCode_GetViaIdentityEdgeAction';
- GetAndSave = 'Az.EdgeAction.custom\Get-AzEdgeActionVersionCode';
+ GetCustom = 'Az.EdgeAction.custom\Get-AzEdgeActionVersionCode';
+ GetAndSaveCustom = 'Az.EdgeAction.custom\Get-AzEdgeActionVersionCode';
}
- if (('Get', 'GetAndSave') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('GetCustom', 'GetAndSaveCustom') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeAction.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeAction.ps1
index add8fac2b1e0..aaed76ff972f 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeAction.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeAction.ps1
@@ -166,8 +166,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionExecutionFilter.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionExecutionFilter.ps1
index 411bcd003f13..8dbf64d2a8c6 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionExecutionFilter.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionExecutionFilter.ps1
@@ -20,7 +20,7 @@ Create a EdgeActionExecutionFilter
.Description
Create a EdgeActionExecutionFilter
.Example
-New-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Name "myFilter" -Location "global" -Order 1
+New-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -ExecutionFilter "myFilter" -Location "global" -VersionId "/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Cdn/edgeActions/myEdgeAction/versions/v1"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter
@@ -223,8 +223,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionVersion.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionVersion.ps1
index 55c84f8d2f21..a5ed211f777f 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionVersion.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionVersion.ps1
@@ -219,8 +219,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/ProxyCmdletDefinitions.ps1
index 7eeaa3568bc6..1dfff8663eda 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -16,27 +16,30 @@
<#
.Synopsis
-A long-running resource action.
+Get a EdgeActionExecutionFilter
.Description
-A long-running resource action.
+Get a EdgeActionExecutionFilter
.Example
-Add-AzEdgeActionAttachment -EdgeActionName "myEdgeAction" -ResourceGroupName "myResourceGroup" -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myAfdProfile/rulesets/myRuleSet/rules/myRule"
+Get-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction"
.Example
-Get-AzEdgeAction -Name "myEdgeAction" -ResourceGroupName "myResourceGroup" | Add-AzEdgeActionAttachment -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myAfdProfile/rulesets/myRuleSet/rules/myRule"
+Get-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -ExecutionFilter "filter1"
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachment
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachmentResponse
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-BODY : Edge action attachment information
- AttachedResourceId : The attached resource Id
+EDGEACTIONINPUTOBJECT : Identity Parameter
+ [EdgeActionName ]: The name of the Edge Action
+ [ExecutionFilter ]: The name of the execution filter
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [Version ]: The name of the Edge Action version
INPUTOBJECT : Identity Parameter
[EdgeActionName ]: The name of the Edge Action
@@ -46,74 +49,54 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/add-azedgeactionattachment
+https://learn.microsoft.com/powershell/module/az.edgeaction/get-azedgeactionexecutionfilter
#>
-function Add-AzEdgeActionAttachment {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachmentResponse])]
-[CmdletBinding(DefaultParameterSetName='AddExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Get-AzEdgeActionExecutionFilter {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(ParameterSetName='Add', Mandatory)]
- [Parameter(ParameterSetName='AddExpanded', Mandatory)]
- [Parameter(ParameterSetName='AddViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='AddViaJsonString', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
${EdgeActionName},
- [Parameter(ParameterSetName='Add', Mandatory)]
- [Parameter(ParameterSetName='AddExpanded', Mandatory)]
- [Parameter(ParameterSetName='AddViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='AddViaJsonString', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [System.String]
+ # The name of the execution filter
+ ${ExecutionFilter},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Add')]
- [Parameter(ParameterSetName='AddExpanded')]
- [Parameter(ParameterSetName='AddViaJsonFilePath')]
- [Parameter(ParameterSetName='AddViaJsonString')]
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
+ [System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='AddViaIdentity', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='AddViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
# Identity Parameter
${InputObject},
- [Parameter(ParameterSetName='Add', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='AddViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachment]
- # Edge action attachment information
- ${Body},
-
- [Parameter(ParameterSetName='AddExpanded', Mandatory)]
- [Parameter(ParameterSetName='AddViaIdentityExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # The attached resource Id
- ${AttachedResourceId},
-
- [Parameter(ParameterSetName='AddViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Add operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='AddViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Json string supplied to the Add operation
- ${JsonString},
+ [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
+ # Identity Parameter
+ ${EdgeActionInputObject},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -124,12 +107,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -150,12 +127,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
[System.Uri]
@@ -189,8 +160,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -211,14 +181,12 @@ begin {
}
$mapping = @{
- Add = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_Add';
- AddExpanded = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddExpanded';
- AddViaIdentity = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddViaIdentity';
- AddViaIdentityExpanded = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddViaIdentityExpanded';
- AddViaJsonFilePath = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddViaJsonFilePath';
- AddViaJsonString = 'Az.EdgeAction.private\Add-AzEdgeActionAttachment_AddViaJsonString';
+ Get = 'Az.EdgeAction.private\Get-AzEdgeActionExecutionFilter_Get';
+ GetViaIdentity = 'Az.EdgeAction.private\Get-AzEdgeActionExecutionFilter_GetViaIdentity';
+ GetViaIdentityEdgeAction = 'Az.EdgeAction.private\Get-AzEdgeActionExecutionFilter_GetViaIdentityEdgeAction';
+ List = 'Az.EdgeAction.private\Get-AzEdgeActionExecutionFilter_List';
}
- if (('Add', 'AddExpanded', 'AddViaJsonFilePath', 'AddViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -280,18 +248,18 @@ end {
<#
.Synopsis
-Get a EdgeActionExecutionFilter
+Get a EdgeActionVersion
.Description
-Get a EdgeActionExecutionFilter
+Get a EdgeActionVersion
.Example
-Get-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction"
+Get-AzEdgeActionVersion -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1"
.Example
-Get-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Name "filter1"
+Get-AzEdgeActionVersion -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersion
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -313,10 +281,10 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/get-azedgeactionexecutionfilter
+https://learn.microsoft.com/powershell/module/az.edgeaction/get-azedgeactionversion
#>
-function Get-AzEdgeActionExecutionFilter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter])]
+function Get-AzEdgeActionVersion {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersion])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -326,13 +294,6 @@ param(
# The name of the Edge Action
${EdgeActionName},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the execution filter
- ${ExecutionFilter},
-
[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
@@ -350,6 +311,13 @@ param(
# The value must be an UUID.
${SubscriptionId},
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [System.String]
+ # The name of the Edge Action version
+ ${Version},
+
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
@@ -424,8 +392,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -446,10 +413,10 @@ begin {
}
$mapping = @{
- Get = 'Az.EdgeAction.private\Get-AzEdgeActionExecutionFilter_Get';
- GetViaIdentity = 'Az.EdgeAction.private\Get-AzEdgeActionExecutionFilter_GetViaIdentity';
- GetViaIdentityEdgeAction = 'Az.EdgeAction.private\Get-AzEdgeActionExecutionFilter_GetViaIdentityEdgeAction';
- List = 'Az.EdgeAction.private\Get-AzEdgeActionExecutionFilter_List';
+ Get = 'Az.EdgeAction.private\Get-AzEdgeActionVersion_Get';
+ GetViaIdentity = 'Az.EdgeAction.private\Get-AzEdgeActionVersion_GetViaIdentity';
+ GetViaIdentityEdgeAction = 'Az.EdgeAction.private\Get-AzEdgeActionVersion_GetViaIdentityEdgeAction';
+ List = 'Az.EdgeAction.private\Get-AzEdgeActionVersion_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
@@ -513,33 +480,23 @@ end {
<#
.Synopsis
-A long-running resource action.
+Get a EdgeAction
.Description
-A long-running resource action.
+Get a EdgeAction
.Example
-Get-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1"
+Get-AzEdgeAction -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction"
.Example
-Get-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -OutputPath "C:\Downloads"
+Get-AzEdgeAction -ResourceGroupName "myResourceGroup"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IVersionCode
-.Outputs
-System.Management.Automation.PSCustomObject
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeAction
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-EDGEACTIONINPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-
INPUTOBJECT : Identity Parameter
[EdgeActionName ]: The name of the Edge Action
[ExecutionFilter ]: The name of the execution filter
@@ -548,21 +505,21 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/get-azedgeactionversioncode
+https://learn.microsoft.com/powershell/module/az.edgeaction/get-azedgeaction
#>
-function Get-AzEdgeActionVersionCode {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IVersionCode], [System.Management.Automation.PSCustomObject])]
-[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Get-AzEdgeAction {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeAction])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetAndSave', Mandatory)]
+ [Alias('EdgeActionName')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
- ${EdgeActionName},
+ ${Name},
[Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetAndSave', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
@@ -570,7 +527,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='GetAndSave')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
@@ -578,32 +536,12 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory)]
- [Parameter(ParameterSetName='GetAndSave', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the Edge Action version
- ${Version},
-
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
# Identity Parameter
${InputObject},
- [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${EdgeActionInputObject},
-
- [Parameter(ParameterSetName='GetAndSave', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Output directory to save the decoded version code as a zip file.
- ${OutputPath},
-
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -613,12 +551,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -639,12 +571,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
[System.Uri]
@@ -678,8 +604,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -700,12 +625,12 @@ begin {
}
$mapping = @{
- Get = 'Az.EdgeAction.private\Get-AzEdgeActionVersionCode_Get';
- GetViaIdentity = 'Az.EdgeAction.private\Get-AzEdgeActionVersionCode_GetViaIdentity';
- GetViaIdentityEdgeAction = 'Az.EdgeAction.private\Get-AzEdgeActionVersionCode_GetViaIdentityEdgeAction';
- GetAndSave = 'Az.EdgeAction.custom\Get-AzEdgeActionVersionCode';
+ Get = 'Az.EdgeAction.private\Get-AzEdgeAction_Get';
+ GetViaIdentity = 'Az.EdgeAction.private\Get-AzEdgeAction_GetViaIdentity';
+ List = 'Az.EdgeAction.private\Get-AzEdgeAction_List';
+ List1 = 'Az.EdgeAction.private\Get-AzEdgeAction_List1';
}
- if (('Get', 'GetAndSave') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -767,18 +692,18 @@ end {
<#
.Synopsis
-Get a EdgeActionVersion
+Create a EdgeActionExecutionFilter
.Description
-Get a EdgeActionVersion
-.Example
-Get-AzEdgeActionVersion -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1"
+Create a EdgeActionExecutionFilter
.Example
-Get-AzEdgeActionVersion -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction"
+New-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -ExecutionFilter "myFilter" -Location "global" -VersionId "/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Cdn/edgeActions/myEdgeAction/versions/v1"
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersion
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -792,512 +717,66 @@ EDGEACTIONINPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
-INPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
+RESOURCE : Concrete tracked resource types can be created by aliasing this type using a specific property type.
+ [Location ]: The geo-location where the resource lives
+ [Tag ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
+ [ExecutionFilterIdentifierHeaderName ]: Custom Header Key associated with the execution filter
+ [ExecutionFilterIdentifierHeaderValue ]: Custom Header Value associated with the execution filter
+ [VersionId ]: The referenced versionId of the edgeaction version
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/get-azedgeactionversion
+https://learn.microsoft.com/powershell/module/az.edgeaction/new-azedgeactionexecutionfilter
#>
-function Get-AzEdgeActionVersion {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersion])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+function New-AzEdgeActionExecutionFilter {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [System.String]
+ # The name of the execution filter
+ ${ExecutionFilter},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
${EdgeActionName},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
+ [System.String]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the Edge Action version
- ${Version},
-
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='GetViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='CreateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='CreateViaIdentityEdgeActionExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
# Identity Parameter
${EdgeActionInputObject},
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
- ${DefaultProfile},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
-
- $context = Get-AzContext
- if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
- }
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- Get = 'Az.EdgeAction.private\Get-AzEdgeActionVersion_Get';
- GetViaIdentity = 'Az.EdgeAction.private\Get-AzEdgeActionVersion_GetViaIdentity';
- GetViaIdentityEdgeAction = 'Az.EdgeAction.private\Get-AzEdgeActionVersion_GetViaIdentityEdgeAction';
- List = 'Az.EdgeAction.private\Get-AzEdgeActionVersion_List';
- }
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- if ($testPlayback) {
- $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
- } else {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
- }
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- if ($wrappedCmd -eq $null) {
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
- }
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
-
-<#
-.Synopsis
-Get a EdgeAction
-.Description
-Get a EdgeAction
-.Example
-Get-AzEdgeAction -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction"
-.Example
-Get-AzEdgeAction -ResourceGroupName "myResourceGroup"
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeAction
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/get-azedgeaction
-#>
-function Get-AzEdgeAction {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeAction])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
-param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('EdgeActionName')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the Edge Action
- ${Name},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List1', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
- [Parameter(ParameterSetName='List1')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
- # The ID of the target subscription.
- # The value must be an UUID.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
- ${DefaultProfile},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
-
- $context = Get-AzContext
- if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
- }
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- Get = 'Az.EdgeAction.private\Get-AzEdgeAction_Get';
- GetViaIdentity = 'Az.EdgeAction.private\Get-AzEdgeAction_GetViaIdentity';
- List = 'Az.EdgeAction.private\Get-AzEdgeAction_List';
- List1 = 'Az.EdgeAction.private\Get-AzEdgeAction_List1';
- }
- if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- if ($testPlayback) {
- $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
- } else {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
- }
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- if ($wrappedCmd -eq $null) {
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
- }
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
-
-<#
-.Synopsis
-Create a EdgeActionExecutionFilter
-.Description
-Create a EdgeActionExecutionFilter
-.Example
-New-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Name "myFilter" -Location "global" -Order 1
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-EDGEACTIONINPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-
-RESOURCE : Concrete tracked resource types can be created by aliasing this type using a specific property type.
- [Location ]: The geo-location where the resource lives
- [Tag ]: Resource tags.
- [(Any) ]: This indicates any property can be added to this object.
- [ExecutionFilterIdentifierHeaderName ]: Custom Header Key associated with the execution filter
- [ExecutionFilterIdentifierHeaderValue ]: Custom Header Value associated with the execution filter
- [VersionId ]: The referenced versionId of the edgeaction version
-.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/new-azedgeactionexecutionfilter
-#>
-function New-AzEdgeActionExecutionFilter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the execution filter
- ${ExecutionFilter},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the Edge Action
- ${EdgeActionName},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaJsonFilePath')]
- [Parameter(ParameterSetName='CreateViaJsonString')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- # The value must be an UUID.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='CreateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='CreateViaIdentityEdgeActionExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${EdgeActionInputObject},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Parameter(ParameterSetName='CreateViaIdentityEdgeActionExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # The geo-location where the resource lives
- ${Location},
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityEdgeActionExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
[Parameter(ParameterSetName='CreateExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityEdgeActionExpanded')]
@@ -1420,8 +899,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1713,8 +1191,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1953,8 +1430,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2041,16 +1517,12 @@ end {
<#
.Synopsis
-A long-running resource action.
+Delete a EdgeActionExecutionFilter
.Description
-A long-running resource action.
-.Example
-Remove-AzEdgeActionAttachment -EdgeActionName "myEdgeAction" -ResourceGroupName "myResourceGroup" -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myAfdProfile/rulesets/myRuleSet/rules/myRule"
+Delete a EdgeActionExecutionFilter
.Example
-Get-AzEdgeAction -Name "myEdgeAction" -ResourceGroupName "myResourceGroup" | Remove-AzEdgeActionAttachment -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myAfdProfile/rulesets/myRuleSet/rules/myRule"
+Remove-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -ExecutionFilter "myFilter"
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachment
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
@@ -2060,8 +1532,13 @@ 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.
-BODY : Edge action attachment information
- AttachedResourceId : The attached resource Id
+EDGEACTIONINPUTOBJECT : Identity Parameter
+ [EdgeActionName ]: The name of the Edge Action
+ [ExecutionFilter ]: The name of the execution filter
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [Version ]: The name of the Edge Action version
INPUTOBJECT : Identity Parameter
[EdgeActionName ]: The name of the Edge Action
@@ -2071,25 +1548,26 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/remove-azedgeactionattachment
+https://learn.microsoft.com/powershell/module/az.edgeaction/remove-azedgeactionexecutionfilter
#>
-function Remove-AzEdgeActionAttachment {
+function Remove-AzEdgeActionExecutionFilter {
[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Delete', Mandatory)]
- [Parameter(ParameterSetName='DeleteExpanded', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
${EdgeActionName},
[Parameter(ParameterSetName='Delete', Mandatory)]
- [Parameter(ParameterSetName='DeleteExpanded', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaJsonString', Mandatory)]
+ [Parameter(ParameterSetName='DeleteViaIdentityEdgeAction', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [System.String]
+ # The name of the execution filter
+ ${ExecutionFilter},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
@@ -2097,9 +1575,6 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Delete')]
- [Parameter(ParameterSetName='DeleteExpanded')]
- [Parameter(ParameterSetName='DeleteViaJsonFilePath')]
- [Parameter(ParameterSetName='DeleteViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -2108,37 +1583,16 @@ param(
${SubscriptionId},
[Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='DeleteViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
# Identity Parameter
${InputObject},
- [Parameter(ParameterSetName='Delete', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachment]
- # Edge action attachment information
- ${Body},
-
- [Parameter(ParameterSetName='DeleteExpanded', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaIdentityExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # The attached resource Id
- ${AttachedResourceId},
-
- [Parameter(ParameterSetName='DeleteViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Delete operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='DeleteViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Json string supplied to the Delete operation
- ${JsonString},
+ [Parameter(ParameterSetName='DeleteViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
+ # Identity Parameter
+ ${EdgeActionInputObject},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -2220,8 +1674,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2242,14 +1695,11 @@ begin {
}
$mapping = @{
- Delete = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_Delete';
- DeleteExpanded = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteExpanded';
- DeleteViaIdentity = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteViaIdentity';
- DeleteViaIdentityExpanded = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteViaIdentityExpanded';
- DeleteViaJsonFilePath = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteViaJsonFilePath';
- DeleteViaJsonString = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteViaJsonString';
+ Delete = 'Az.EdgeAction.private\Remove-AzEdgeActionExecutionFilter_Delete';
+ DeleteViaIdentity = 'Az.EdgeAction.private\Remove-AzEdgeActionExecutionFilter_DeleteViaIdentity';
+ DeleteViaIdentityEdgeAction = 'Az.EdgeAction.private\Remove-AzEdgeActionExecutionFilter_DeleteViaIdentityEdgeAction';
}
- if (('Delete', 'DeleteExpanded', 'DeleteViaJsonFilePath', 'DeleteViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2311,11 +1761,11 @@ end {
<#
.Synopsis
-Delete a EdgeActionExecutionFilter
+Delete a EdgeActionVersion
.Description
-Delete a EdgeActionExecutionFilter
+Delete a EdgeActionVersion
.Example
-Remove-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Name "myFilter"
+Remove-AzEdgeActionVersion -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
@@ -2342,9 +1792,9 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/remove-azedgeactionexecutionfilter
+https://learn.microsoft.com/powershell/module/az.edgeaction/remove-azedgeactionversion
#>
-function Remove-AzEdgeActionExecutionFilter {
+function Remove-AzEdgeActionVersion {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
@@ -2354,13 +1804,6 @@ param(
# The name of the Edge Action
${EdgeActionName},
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaIdentityEdgeAction', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the execution filter
- ${ExecutionFilter},
-
[Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
@@ -2376,6 +1819,13 @@ param(
# The value must be an UUID.
${SubscriptionId},
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(ParameterSetName='DeleteViaIdentityEdgeAction', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [System.String]
+ # The name of the Edge Action version
+ ${Version},
+
[Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
@@ -2468,8 +1918,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2490,9 +1939,9 @@ begin {
}
$mapping = @{
- Delete = 'Az.EdgeAction.private\Remove-AzEdgeActionExecutionFilter_Delete';
- DeleteViaIdentity = 'Az.EdgeAction.private\Remove-AzEdgeActionExecutionFilter_DeleteViaIdentity';
- DeleteViaIdentityEdgeAction = 'Az.EdgeAction.private\Remove-AzEdgeActionExecutionFilter_DeleteViaIdentityEdgeAction';
+ Delete = 'Az.EdgeAction.private\Remove-AzEdgeActionVersion_Delete';
+ DeleteViaIdentity = 'Az.EdgeAction.private\Remove-AzEdgeActionVersion_DeleteViaIdentity';
+ DeleteViaIdentityEdgeAction = 'Az.EdgeAction.private\Remove-AzEdgeActionVersion_DeleteViaIdentityEdgeAction';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
@@ -2556,11 +2005,11 @@ end {
<#
.Synopsis
-Delete a EdgeActionVersion
+Delete a EdgeAction
.Description
-Delete a EdgeActionVersion
+Delete a EdgeAction
.Example
-Remove-AzEdgeActionVersion -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1"
+Remove-AzEdgeAction -ResourceGroupName "myResourceGroup" -Name "myEdgeAction"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
@@ -2571,14 +2020,6 @@ 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.
-EDGEACTIONINPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-
INPUTOBJECT : Identity Parameter
[EdgeActionName ]: The name of the Edge Action
[ExecutionFilter ]: The name of the execution filter
@@ -2587,17 +2028,18 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/remove-azedgeactionversion
+https://learn.microsoft.com/powershell/module/az.edgeaction/remove-azedgeaction
#>
-function Remove-AzEdgeActionVersion {
+function Remove-AzEdgeAction {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('EdgeActionName')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
- ${EdgeActionName},
+ ${Name},
[Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
@@ -2614,25 +2056,12 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaIdentityEdgeAction', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the Edge Action version
- ${Version},
-
[Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
# Identity Parameter
${InputObject},
- [Parameter(ParameterSetName='DeleteViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${EdgeActionInputObject},
-
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2713,8 +2142,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2735,9 +2163,8 @@ begin {
}
$mapping = @{
- Delete = 'Az.EdgeAction.private\Remove-AzEdgeActionVersion_Delete';
- DeleteViaIdentity = 'Az.EdgeAction.private\Remove-AzEdgeActionVersion_DeleteViaIdentity';
- DeleteViaIdentityEdgeAction = 'Az.EdgeAction.private\Remove-AzEdgeActionVersion_DeleteViaIdentityEdgeAction';
+ Delete = 'Az.EdgeAction.private\Remove-AzEdgeAction_Delete';
+ DeleteViaIdentity = 'Az.EdgeAction.private\Remove-AzEdgeAction_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
@@ -2801,21 +2228,31 @@ end {
<#
.Synopsis
-Delete a EdgeAction
+Update a EdgeActionExecutionFilter
.Description
-Delete a EdgeAction
+Update a EdgeActionExecutionFilter
.Example
-Remove-AzEdgeAction -ResourceGroupName "myResourceGroup" -Name "myEdgeAction"
+Update-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -ExecutionFilter "myFilter" -Tag @{ Environment = "Production" }
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilterUpdate
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
-System.Boolean
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+EDGEACTIONINPUTOBJECT : Identity Parameter
+ [EdgeActionName ]: The name of the Edge Action
+ [ExecutionFilter ]: The name of the execution filter
+ [Id ]: Resource identity path
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [Version ]: The name of the Edge Action version
+
INPUTOBJECT : Identity Parameter
[EdgeActionName ]: The name of the Edge Action
[ExecutionFilter ]: The name of the execution filter
@@ -2823,40 +2260,96 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
+
+PROPERTY : Concrete tracked resource types can be created by aliasing this type using a specific property type.
+ [Tag ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
+ [ExecutionFilterIdentifierHeaderName ]: Custom Header Key associated with the execution filter
+ [ExecutionFilterIdentifierHeaderValue ]: Custom Header Value associated with the execution filter
+ [VersionId ]: The referenced versionId of the edgeaction version
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/remove-azedgeaction
+https://learn.microsoft.com/powershell/module/az.edgeaction/update-azedgeactionexecutionfilter
#>
-function Remove-AzEdgeAction {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Update-AzEdgeActionExecutionFilter {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Alias('EdgeActionName')]
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
- ${Name},
+ ${EdgeActionName},
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [System.String]
+ # The name of the execution filter
+ ${ExecutionFilter},
+
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Delete')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ # The value must be an UUID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
+ # Identity Parameter
+ ${EdgeActionInputObject},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IAzureResourceManagerCommonTypesTrackedResourceUpdateTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilterUpdate]
+ # Concrete tracked resource types can be created by aliasing this type using a specific property type.
+ ${Property},
+
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
[System.String]
- # The ID of the target subscription.
- # The value must be an UUID.
- ${SubscriptionId},
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${InputObject},
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -2899,12 +2392,6 @@ param(
# Run the command asynchronously
${NoWait},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
[System.Uri]
@@ -2938,8 +2425,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2960,10 +2446,14 @@ begin {
}
$mapping = @{
- Delete = 'Az.EdgeAction.private\Remove-AzEdgeAction_Delete';
- DeleteViaIdentity = 'Az.EdgeAction.private\Remove-AzEdgeAction_DeleteViaIdentity';
+ UpdateExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateExpanded';
+ UpdateViaIdentityEdgeAction = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaIdentityEdgeAction';
+ UpdateViaIdentityEdgeActionExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaIdentityEdgeActionExpanded';
+ UpdateViaIdentityExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaJsonString';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3025,16 +2515,18 @@ end {
<#
.Synopsis
-A long-running resource action.
+Update a EdgeActionVersion
.Description
-A long-running resource action.
+Update a EdgeActionVersion
.Example
-Switch-AzEdgeActionVersionDefault -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v2"
+Update-AzEdgeActionVersion -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -Tag @{ Environment = "Production"; Team = "Platform" }
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersionUpdate
.Outputs
-System.Boolean
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersion
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -3055,27 +2547,39 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
+
+PROPERTY : Concrete tracked resource types can be created by aliasing this type using a specific property type.
+ [Tag ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
+ [DeploymentType ]: The deployment type
+ [IsDefaultVersion ]: The active state
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/switch-azedgeactionversiondefault
+https://learn.microsoft.com/powershell/module/az.edgeaction/update-azedgeactionversion
#>
-function Switch-AzEdgeActionVersionDefault {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Swap', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Update-AzEdgeActionVersion {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersion])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Swap', Mandatory)]
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
${EdgeActionName},
- [Parameter(ParameterSetName='Swap', Mandatory)]
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Swap')]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -3083,24 +2587,55 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='Swap', Mandatory)]
- [Parameter(ParameterSetName='SwapViaIdentityEdgeAction', Mandatory)]
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action version
${Version},
- [Parameter(ParameterSetName='SwapViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
# Identity Parameter
- ${InputObject},
+ ${EdgeActionInputObject},
- [Parameter(ParameterSetName='SwapViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
# Identity Parameter
- ${EdgeActionInputObject},
+ ${InputObject},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IAzureResourceManagerCommonTypesTrackedResourceUpdateTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersionUpdate]
+ # Concrete tracked resource types can be created by aliasing this type using a specific property type.
+ ${Property},
+
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -3143,12 +2678,6 @@ param(
# Run the command asynchronously
${NoWait},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
[System.Uri]
@@ -3182,8 +2711,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3204,11 +2732,14 @@ begin {
}
$mapping = @{
- Swap = 'Az.EdgeAction.private\Switch-AzEdgeActionVersionDefault_Swap';
- SwapViaIdentity = 'Az.EdgeAction.private\Switch-AzEdgeActionVersionDefault_SwapViaIdentity';
- SwapViaIdentityEdgeAction = 'Az.EdgeAction.private\Switch-AzEdgeActionVersionDefault_SwapViaIdentityEdgeAction';
+ UpdateExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateExpanded';
+ UpdateViaIdentityEdgeAction = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaIdentityEdgeAction';
+ UpdateViaIdentityEdgeActionExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaIdentityEdgeActionExpanded';
+ UpdateViaIdentityExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaJsonString';
}
- if (('Swap') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3270,31 +2801,21 @@ end {
<#
.Synopsis
-Update a EdgeActionExecutionFilter
+Update a EdgeAction
.Description
-Update a EdgeActionExecutionFilter
+Update a EdgeAction
.Example
-Update-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Name "myFilter" -Tag @{ Environment = "Production" }
+Update-AzEdgeAction -ResourceGroupName "myResourceGroup" -Name "myEdgeAction" -Tag @{ Environment = "Production"; Team = "Platform" }
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilterUpdate
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeAction
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-EDGEACTIONINPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-
INPUTOBJECT : Identity Parameter
[EdgeActionName ]: The name of the Edge Action
[ExecutionFilter ]: The name of the execution filter
@@ -3302,37 +2823,21 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[Version ]: The name of the Edge Action version
-
-PROPERTY : Concrete tracked resource types can be created by aliasing this type using a specific property type.
- [Tag ]: Resource tags.
- [(Any) ]: This indicates any property can be added to this object.
- [ExecutionFilterIdentifierHeaderName ]: Custom Header Key associated with the execution filter
- [ExecutionFilterIdentifierHeaderValue ]: Custom Header Value associated with the execution filter
- [VersionId ]: The referenced versionId of the edgeaction version
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/update-azedgeactionexecutionfilter
+https://learn.microsoft.com/powershell/module/az.edgeaction/update-azedgeaction
#>
-function Update-AzEdgeActionExecutionFilter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter])]
+function Update-AzEdgeAction {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeAction])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
[Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
[Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Alias('EdgeActionName')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
- ${EdgeActionName},
-
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the execution filter
- ${ExecutionFilter},
+ ${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
[Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
@@ -3353,13 +2858,6 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${EdgeActionInputObject},
-
[Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
@@ -3367,7 +2865,20 @@ param(
${InputObject},
[Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [System.String]
+ # The name of the SKU
+ ${SkuName},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
+ [System.String]
+ # The tier of the SKU
+ ${SkuTier},
+
+ [Parameter(ParameterSetName='UpdateExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IAzureResourceManagerCommonTypesTrackedResourceUpdateTags]))]
@@ -3375,12 +2886,6 @@ param(
# Resource tags.
${Tag},
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilterUpdate]
- # Concrete tracked resource types can be created by aliasing this type using a specific property type.
- ${Property},
-
[Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
[System.String]
@@ -3467,8 +2972,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3489,12 +2993,10 @@ begin {
}
$mapping = @{
- UpdateExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateExpanded';
- UpdateViaIdentityEdgeAction = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaIdentityEdgeAction';
- UpdateViaIdentityEdgeActionExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaIdentityEdgeActionExpanded';
- UpdateViaIdentityExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaIdentityExpanded';
- UpdateViaJsonFilePath = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaJsonFilePath';
- UpdateViaJsonString = 'Az.EdgeAction.private\Update-AzEdgeActionExecutionFilter_UpdateViaJsonString';
+ UpdateExpanded = 'Az.EdgeAction.private\Update-AzEdgeAction_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.EdgeAction.private\Update-AzEdgeAction_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.EdgeAction.private\Update-AzEdgeAction_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.EdgeAction.private\Update-AzEdgeAction_UpdateViaJsonString';
}
if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
@@ -3558,135 +3060,81 @@ end {
<#
.Synopsis
-Update a EdgeActionVersion
+Deploy Edge Action version code from a file.
.Description
-Update a EdgeActionVersion
+Deploy Edge Action version code from a JavaScript or zip file.
+This command handles file reading,
+automatic zipping (for JavaScript files when using zip deployment), and base64 encoding.
.Example
-Update-AzEdgeActionVersion -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -Tag @{ Environment = "Production"; Team = "Platform" }
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersionUpdate
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersion
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-EDGEACTIONINPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-
-INPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-
-PROPERTY : Concrete tracked resource types can be created by aliasing this type using a specific property type.
- [Tag ]: Resource tags.
- [(Any) ]: This indicates any property can be added to this object.
- [DeploymentType ]: The deployment type
- [IsDefaultVersion ]: The active state
-.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/update-azedgeactionversion
-#>
-function Update-AzEdgeActionVersion {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersion])]
-[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the Edge Action
- ${EdgeActionName},
+Deploy-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -FilePath "C:\code\handler.js"
+.Example
+Deploy-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -FilePath "C:\code\handler.js" -DeploymentType "zip"
+.Example
+Deploy-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -FilePath "C:\code\package.zip"
+.Example
+Deploy-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -FilePath "C:\code\handler.js" -Name "production-deploy-001"
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+.Outputs
+System.Object
+.Link
+https://learn.microsoft.com/powershell/module/az.edgeaction/deploy-azedgeactionversioncode
+#>
+function Deploy-AzEdgeActionVersionCode {
+[OutputType([System.Object])]
+[CmdletBinding(DefaultParameterSetName='DeployFromFile', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
- [Parameter(ParameterSetName='UpdateViaJsonString')]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # The ID of the target subscription.
- # The value must be an UUID.
- ${SubscriptionId},
+ # The name of the Edge Action
+ ${EdgeActionName},
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
- # The name of the Edge Action version
+ # The version name
${Version},
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${EdgeActionInputObject},
-
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeActionExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IAzureResourceManagerCommonTypesTrackedResourceUpdateTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
- [Parameter(ParameterSetName='UpdateViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionVersionUpdate]
- # Concrete tracked resource types can be created by aliasing this type using a specific property type.
- ${Property},
+ [System.String]
+ # Path to JavaScript (.js) or zip (.zip) file
+ ${FilePath},
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
[System.String]
- # Path of Json file supplied to the Update operation
- ${JsonFilePath},
+ # Deployment type: 'file' for JavaScript files, 'zip' for zip archives.
+ # Auto-detected if not specified.
+ ${DeploymentType},
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
[System.String]
- # Json string supplied to the Update operation
- ${JsonString},
+ # The version code deployment name.
+ # Defaults to the version name if not specified.
+ ${Name},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Azure')]
[System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ # The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
[Parameter()]
@@ -3754,8 +3202,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3776,14 +3223,9 @@ begin {
}
$mapping = @{
- UpdateExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateExpanded';
- UpdateViaIdentityEdgeAction = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaIdentityEdgeAction';
- UpdateViaIdentityEdgeActionExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaIdentityEdgeActionExpanded';
- UpdateViaIdentityExpanded = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaIdentityExpanded';
- UpdateViaJsonFilePath = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaJsonFilePath';
- UpdateViaJsonString = 'Az.EdgeAction.private\Update-AzEdgeActionVersion_UpdateViaJsonString';
+ DeployFromFile = 'Az.EdgeAction.custom\Deploy-AzEdgeActionVersionCode';
}
- if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('DeployFromFile') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -3845,110 +3287,67 @@ end {
<#
.Synopsis
-Update a EdgeAction
+Get Edge Action version code and optionally save to file.
.Description
-Update a EdgeAction
+A long-running resource action that retrieves the version code for an Edge Action version.
+When the -OutputPath parameter is specified, the base64-encoded content is decoded and saved
+as a zip file to the specified directory.
+Otherwise, returns the raw response with base64 content.
.Example
-Update-AzEdgeAction -ResourceGroupName "myResourceGroup" -Name "myEdgeAction" -Tag @{ Environment = "Production"; Team = "Platform" }
+Get-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1"
+.Example
+Get-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -OutputPath "C:\Downloads"
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeAction
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
+Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IVersionCode
+.Outputs
+System.Management.Automation.PSCustomObject
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/update-azedgeaction
+https://learn.microsoft.com/powershell/module/az.edgeaction/get-azedgeactionversioncode
#>
-function Update-AzEdgeAction {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeAction])]
-[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Get-AzEdgeActionVersionCode {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IVersionCode], [System.Management.Automation.PSCustomObject])]
+[CmdletBinding(DefaultParameterSetName='GetCustom', PositionalBinding=$false)]
param(
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
- [Alias('EdgeActionName')]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
- ${Name},
+ ${EdgeActionName},
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
- [Parameter(ParameterSetName='UpdateViaJsonString')]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
+ # The name of the Edge Action version
+ ${Version},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # The name of the SKU
- ${SkuName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # The tier of the SKU
- ${SkuTier},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IAzureResourceManagerCommonTypesTrackedResourceUpdateTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Update operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Parameter(ParameterSetName='GetAndSaveCustom', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
[System.String]
- # Json string supplied to the Update operation
- ${JsonString},
+ # Output directory to save the decoded version code as a zip file.
+ ${OutputPath},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Azure')]
[System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ # The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
[Parameter()]
@@ -4016,8 +3415,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4038,12 +3436,10 @@ begin {
}
$mapping = @{
- UpdateExpanded = 'Az.EdgeAction.private\Update-AzEdgeAction_UpdateExpanded';
- UpdateViaIdentityExpanded = 'Az.EdgeAction.private\Update-AzEdgeAction_UpdateViaIdentityExpanded';
- UpdateViaJsonFilePath = 'Az.EdgeAction.private\Update-AzEdgeAction_UpdateViaJsonFilePath';
- UpdateViaJsonString = 'Az.EdgeAction.private\Update-AzEdgeAction_UpdateViaJsonString';
+ GetCustom = 'Az.EdgeAction.custom\Get-AzEdgeActionVersionCode';
+ GetAndSaveCustom = 'Az.EdgeAction.custom\Get-AzEdgeActionVersionCode';
}
- if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('GetCustom', 'GetAndSaveCustom') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -4105,46 +3501,39 @@ end {
<#
.Synopsis
-Deploy Edge Action version code from a file.
+Swap the default version for an Edge Action.
.Description
-Deploy Edge Action version code from a JavaScript or zip file.
-This command handles file reading,
-automatic zipping (for JavaScript files when using zip deployment), and base64 encoding.
-.Example
-Deploy-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -FilePath "C:\code\handler.js"
-.Example
-Deploy-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -FilePath "C:\code\handler.js" -DeploymentType "zip"
-.Example
-Deploy-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -FilePath "C:\code\package.zip"
+A long-running resource action that swaps the default version for an Edge Action.
+This operation makes the specified version the new default version.
.Example
-Deploy-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -FilePath "C:\code\handler.js" -Name "production-deploy-001"
+Switch-AzEdgeActionVersionDefault -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v2"
.Outputs
-System.Object
+System.Boolean
.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/deploy-azedgeactionversioncode
+https://learn.microsoft.com/powershell/module/az.edgeaction/switch-azedgeactionversiondefault
#>
-function Deploy-AzEdgeActionVersionCode {
-[OutputType([System.Object])]
-[CmdletBinding(DefaultParameterSetName='DeployFromFile', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Switch-AzEdgeActionVersionDefault {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='SwapCustom', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
+ # The name of the Edge Action
+ ${EdgeActionName},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
- # The name of the Edge Action
- ${EdgeActionName},
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
- # The version name
+ # The name of the Edge Action version to make the default
${Version},
[Parameter()]
@@ -4152,28 +3541,9 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Path to JavaScript (.js) or zip (.zip) file
- ${FilePath},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Deployment type: 'file' for JavaScript files, 'zip' for zip archives.
- # Auto-detected if not specified.
- ${DeploymentType},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # The version code deployment name.
- # Defaults to the version name if not specified.
- ${Name},
-
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -4214,6 +3584,12 @@ param(
# Run the command asynchronously
${NoWait},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
[System.Uri]
@@ -4247,8 +3623,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4269,9 +3644,9 @@ begin {
}
$mapping = @{
- DeployFromFile = 'Az.EdgeAction.custom\Deploy-AzEdgeActionVersionCode';
+ SwapCustom = 'Az.EdgeAction.custom\Switch-AzEdgeActionVersionDefault';
}
- if (('DeployFromFile') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('SwapCustom') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeAction.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeAction.ps1
index 5b39801164b2..a1c38cc089b3 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeAction.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeAction.ps1
@@ -153,8 +153,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionAttachment.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionAttachment.ps1
deleted file mode 100644
index 5402f5d6784e..000000000000
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionAttachment.ps1
+++ /dev/null
@@ -1,285 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
-# is regenerated.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-A long-running resource action.
-.Description
-A long-running resource action.
-.Example
-Remove-AzEdgeActionAttachment -EdgeActionName "myEdgeAction" -ResourceGroupName "myResourceGroup" -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myAfdProfile/rulesets/myRuleSet/rules/myRule"
-.Example
-Get-AzEdgeAction -Name "myEdgeAction" -ResourceGroupName "myResourceGroup" | Remove-AzEdgeActionAttachment -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myAfdProfile/rulesets/myRuleSet/rules/myRule"
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachment
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
-.Outputs
-System.Boolean
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-BODY : Edge action attachment information
- AttachedResourceId : The attached resource Id
-
-INPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-.Link
-https://learn.microsoft.com/powershell/module/az.edgeaction/remove-azedgeactionattachment
-#>
-function Remove-AzEdgeActionAttachment {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Parameter(ParameterSetName='DeleteExpanded', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the Edge Action
- ${EdgeActionName},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Parameter(ParameterSetName='DeleteExpanded', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Delete')]
- [Parameter(ParameterSetName='DeleteExpanded')]
- [Parameter(ParameterSetName='DeleteViaJsonFilePath')]
- [Parameter(ParameterSetName='DeleteViaJsonString')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- # The value must be an UUID.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='DeleteViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='Delete', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionAttachment]
- # Edge action attachment information
- ${Body},
-
- [Parameter(ParameterSetName='DeleteExpanded', Mandatory)]
- [Parameter(ParameterSetName='DeleteViaIdentityExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # The attached resource Id
- ${AttachedResourceId},
-
- [Parameter(ParameterSetName='DeleteViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Delete operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='DeleteViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Body')]
- [System.String]
- # Json string supplied to the Delete operation
- ${JsonString},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
- ${DefaultProfile},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
-
- $context = Get-AzContext
- if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
- }
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- Delete = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_Delete';
- DeleteExpanded = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteExpanded';
- DeleteViaIdentity = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteViaIdentity';
- DeleteViaIdentityExpanded = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteViaIdentityExpanded';
- DeleteViaJsonFilePath = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteViaJsonFilePath';
- DeleteViaJsonString = 'Az.EdgeAction.private\Remove-AzEdgeActionAttachment_DeleteViaJsonString';
- }
- if (('Delete', 'DeleteExpanded', 'DeleteViaJsonFilePath', 'DeleteViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
- if ($testPlayback) {
- $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
- } else {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
- }
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- if ($wrappedCmd -eq $null) {
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
- }
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionExecutionFilter.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionExecutionFilter.ps1
index e601df28e816..fccff2aa7844 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionExecutionFilter.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionExecutionFilter.ps1
@@ -20,7 +20,7 @@ Delete a EdgeActionExecutionFilter
.Description
Delete a EdgeActionExecutionFilter
.Example
-Remove-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Name "myFilter"
+Remove-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -ExecutionFilter "myFilter"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
@@ -173,8 +173,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionVersion.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionVersion.ps1
index 944268605c4c..a13c69e8947e 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionVersion.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionVersion.ps1
@@ -173,8 +173,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Switch-AzEdgeActionVersionDefault.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Switch-AzEdgeActionVersionDefault.ps1
index 27f690b579b7..92ffb21be6ac 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Switch-AzEdgeActionVersionDefault.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Switch-AzEdgeActionVersionDefault.ps1
@@ -16,57 +16,42 @@
<#
.Synopsis
-A long-running resource action.
+Swap the default version for an Edge Action.
.Description
-A long-running resource action.
+A long-running resource action that swaps the default version for an Edge Action.
+This operation makes the specified version the new default version.
.Example
Switch-AzEdgeActionVersionDefault -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v2"
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity
.Outputs
System.Boolean
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-EDGEACTIONINPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
-
-INPUTOBJECT : Identity Parameter
- [EdgeActionName ]: The name of the Edge Action
- [ExecutionFilter ]: The name of the execution filter
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [Version ]: The name of the Edge Action version
.Link
https://learn.microsoft.com/powershell/module/az.edgeaction/switch-azedgeactionversiondefault
#>
function Switch-AzEdgeActionVersionDefault {
[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Swap', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='SwapCustom', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Swap', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the Edge Action
${EdgeActionName},
- [Parameter(ParameterSetName='Swap', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Swap')]
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
+ [System.String]
+ # The name of the Edge Action version to make the default
+ ${Version},
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -74,32 +59,12 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='Swap', Mandatory)]
- [Parameter(ParameterSetName='SwapViaIdentityEdgeAction', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [System.String]
- # The name of the Edge Action version
- ${Version},
-
- [Parameter(ParameterSetName='SwapViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${InputObject},
-
- [Parameter(ParameterSetName='SwapViaIdentityEdgeAction', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionIdentity]
- # Identity Parameter
- ${EdgeActionInputObject},
-
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Category('Azure')]
[System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ # The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
[Parameter()]
@@ -173,8 +138,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -195,11 +159,9 @@ begin {
}
$mapping = @{
- Swap = 'Az.EdgeAction.private\Switch-AzEdgeActionVersionDefault_Swap';
- SwapViaIdentity = 'Az.EdgeAction.private\Switch-AzEdgeActionVersionDefault_SwapViaIdentity';
- SwapViaIdentityEdgeAction = 'Az.EdgeAction.private\Switch-AzEdgeActionVersionDefault_SwapViaIdentityEdgeAction';
+ SwapCustom = 'Az.EdgeAction.custom\Switch-AzEdgeActionVersionDefault';
}
- if (('Swap') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('SwapCustom') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeAction.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeAction.ps1
index d9b2b7e91ee3..7b69f30baf73 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeAction.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeAction.ps1
@@ -187,8 +187,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionExecutionFilter.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionExecutionFilter.ps1
index 6a3f1601968d..476eb74c581c 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionExecutionFilter.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionExecutionFilter.ps1
@@ -20,7 +20,7 @@ Update a EdgeActionExecutionFilter
.Description
Update a EdgeActionExecutionFilter
.Example
-Update-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Name "myFilter" -Tag @{ Environment = "Production" }
+Update-AzEdgeActionExecutionFilter -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -ExecutionFilter "myFilter" -Tag @{ Environment = "Production" }
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilterUpdate
@@ -213,8 +213,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionVersion.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionVersion.ps1
index 622db72d8757..7a17b95fced1 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionVersion.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionVersion.ps1
@@ -212,8 +212,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/generate-info.json b/generated/EdgeAction/EdgeAction.Autorest/generate-info.json
index f053f7cc2a03..5e83ec1afcee 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/generate-info.json
+++ b/generated/EdgeAction/EdgeAction.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "9072b342-800a-4c15-9e5e-0295d0db4460"
+ "generate_Id": "e0c3553a-d09f-42c0-8162-fd878decc211"
}
diff --git a/generated/EdgeAction/EdgeAction.Autorest/generated/api/EdgeAction.cs b/generated/EdgeAction/EdgeAction.Autorest/generated/api/EdgeAction.cs
index c872f45d9a1f..2b0ac58cf929 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/generated/api/EdgeAction.cs
+++ b/generated/EdgeAction/EdgeAction.Autorest/generated/api/EdgeAction.cs
@@ -30,7 +30,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersCreate(string subscriptionId, string resourceGroupName, string edgeActionName, string executionFilter, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeUpdate)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -79,7 +79,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeUpdate)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -139,7 +139,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter body, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeUpdate)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -203,7 +203,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersCreateViaJsonString(string subscriptionId, string resourceGroupName, string edgeActionName, string executionFilter, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -252,7 +252,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string edgeActionName, string executionFilter, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -302,7 +302,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersCreateWithResult(string subscriptionId, string resourceGroupName, string edgeActionName, string executionFilter, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilter body, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeUpdate)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -682,7 +682,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersDelete(string subscriptionId, string resourceGroupName, string edgeActionName, string executionFilter, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -726,7 +726,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -965,7 +965,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersGet(string subscriptionId, string resourceGroupName, string edgeActionName, string executionFilter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1008,7 +1008,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1062,7 +1062,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1119,7 +1119,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersGetWithResult(string subscriptionId, string resourceGroupName, string edgeActionName, string executionFilter, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1306,7 +1306,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersListByEdgeAction(string subscriptionId, string resourceGroupName, string edgeActionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1348,7 +1348,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersListByEdgeActionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1400,7 +1400,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersListByEdgeActionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1454,7 +1454,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersListByEdgeActionWithResult(string subscriptionId, string resourceGroupName, string edgeActionName, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1641,7 +1641,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersUpdate(string subscriptionId, string resourceGroupName, string edgeActionName, string executionFilter, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeUpdate)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1690,7 +1690,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeUpdate)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1750,7 +1750,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Models.IEdgeActionExecutionFilterUpdate body, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EdgeAction.Runtime.SerializationMode.IncludeUpdate)
{
- var apiVersion = @"2025-09-01-preview";
+ var apiVersion = @"2025-12-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1814,7 +1814,7 @@ public partial class EdgeAction
///
public async global::System.Threading.Tasks.Task EdgeActionExecutionFiltersUpdateViaJsonString(string subscriptionId, string resourceGroupName, string edgeActionName, string executionFilter, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func