diff --git a/source/Public/Copy Job/Get-FabricCopyJob.ps1 b/source/Public/Copy Job/Get-FabricCopyJob.ps1 index 8f616ae7..5d306d65 100644 --- a/source/Public/Copy Job/Get-FabricCopyJob.ps1 +++ b/source/Public/Copy Job/Get-FabricCopyJob.ps1 @@ -42,7 +42,6 @@ function Get-FabricCopyJob { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$CopyJob ) diff --git a/source/Public/Copy Job/New-FabricCopyJob.ps1 b/source/Public/Copy Job/New-FabricCopyJob.ps1 index 6675f6fb..73feb86a 100644 --- a/source/Public/Copy Job/New-FabricCopyJob.ps1 +++ b/source/Public/Copy Job/New-FabricCopyJob.ps1 @@ -39,7 +39,6 @@ function New-FabricCopyJob { [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$CopyJobName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Copy Job/Update-FabricCopyJob.ps1 b/source/Public/Copy Job/Update-FabricCopyJob.ps1 index 7ae97d93..22cfbcc1 100644 --- a/source/Public/Copy Job/Update-FabricCopyJob.ps1 +++ b/source/Public/Copy Job/Update-FabricCopyJob.ps1 @@ -42,7 +42,6 @@ function Update-FabricCopyJob [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$CopyJobName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Data Pipeline/Get-FabricDataPipeline.ps1 b/source/Public/Data Pipeline/Get-FabricDataPipeline.ps1 index 060e2e0d..f5a39bcd 100644 --- a/source/Public/Data Pipeline/Get-FabricDataPipeline.ps1 +++ b/source/Public/Data Pipeline/Get-FabricDataPipeline.ps1 @@ -42,7 +42,6 @@ function Get-FabricDataPipeline { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$DataPipelineName ) diff --git a/source/Public/Data Pipeline/New-FabricDataPipeline.ps1 b/source/Public/Data Pipeline/New-FabricDataPipeline.ps1 index 221de75b..31d67a37 100644 --- a/source/Public/Data Pipeline/New-FabricDataPipeline.ps1 +++ b/source/Public/Data Pipeline/New-FabricDataPipeline.ps1 @@ -37,7 +37,6 @@ function New-FabricDataPipeline [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$DataPipelineName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Data Pipeline/Update-FabricDataPipeline.ps1 b/source/Public/Data Pipeline/Update-FabricDataPipeline.ps1 index c286653f..beac3104 100644 --- a/source/Public/Data Pipeline/Update-FabricDataPipeline.ps1 +++ b/source/Public/Data Pipeline/Update-FabricDataPipeline.ps1 @@ -42,7 +42,6 @@ function Update-FabricDataPipeline [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$DataPipelineName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Domain/New-FabricDomain.ps1 b/source/Public/Domain/New-FabricDomain.ps1 index f07affc8..ee9207f9 100644 --- a/source/Public/Domain/New-FabricDomain.ps1 +++ b/source/Public/Domain/New-FabricDomain.ps1 @@ -33,7 +33,6 @@ function New-FabricDomain param ( [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$DomainName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Domain/Update-FabricDomain.ps1 b/source/Public/Domain/Update-FabricDomain.ps1 index e3ed65d5..849d70b5 100644 --- a/source/Public/Domain/Update-FabricDomain.ps1 +++ b/source/Public/Domain/Update-FabricDomain.ps1 @@ -40,7 +40,6 @@ function Update-FabricDomain [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$DomainName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Environment/Get-FabricEnvironment.ps1 b/source/Public/Environment/Get-FabricEnvironment.ps1 index 05c16161..44a73e7e 100644 --- a/source/Public/Environment/Get-FabricEnvironment.ps1 +++ b/source/Public/Environment/Get-FabricEnvironment.ps1 @@ -46,7 +46,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$EnvironmentName ) @@ -151,4 +150,4 @@ Author: Tiago Balabuch Write-Message -Message "Failed to retrieve environment. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Environment/New-FabricEnvironment.ps1 b/source/Public/Environment/New-FabricEnvironment.ps1 index e91fdc22..f22a920d 100644 --- a/source/Public/Environment/New-FabricEnvironment.ps1 +++ b/source/Public/Environment/New-FabricEnvironment.ps1 @@ -37,7 +37,6 @@ function New-FabricEnvironment [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$EnvironmentName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Environment/Update-FabricEnvironment.ps1 b/source/Public/Environment/Update-FabricEnvironment.ps1 index a69f8962..c686f310 100644 --- a/source/Public/Environment/Update-FabricEnvironment.ps1 +++ b/source/Public/Environment/Update-FabricEnvironment.ps1 @@ -49,7 +49,6 @@ function Update-FabricEnvironment [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$EnvironmentName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Environment/Update-FabricEnvironmentStagingSparkCompute.ps1 b/source/Public/Environment/Update-FabricEnvironmentStagingSparkCompute.ps1 index f2e0cc02..bd1c5150 100644 --- a/source/Public/Environment/Update-FabricEnvironmentStagingSparkCompute.ps1 +++ b/source/Public/Environment/Update-FabricEnvironmentStagingSparkCompute.ps1 @@ -69,7 +69,6 @@ function Update-FabricEnvironmentStagingSparkCompute [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$InstancePoolName, [Parameter(Mandatory = $true)] diff --git a/source/Public/Eventhouse/Get-FabricEventhouse.ps1 b/source/Public/Eventhouse/Get-FabricEventhouse.ps1 index e1a501f6..a9eba8cb 100644 --- a/source/Public/Eventhouse/Get-FabricEventhouse.ps1 +++ b/source/Public/Eventhouse/Get-FabricEventhouse.ps1 @@ -73,7 +73,6 @@ function Get-FabricEventhouse { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$EventhouseName ) try { @@ -177,4 +176,4 @@ function Get-FabricEventhouse { Write-Message -Message "Failed to retrieve Eventhouse. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Eventhouse/New-FabricEventhouse.ps1 b/source/Public/Eventhouse/New-FabricEventhouse.ps1 index 2ab61627..1e346e09 100644 --- a/source/Public/Eventhouse/New-FabricEventhouse.ps1 +++ b/source/Public/Eventhouse/New-FabricEventhouse.ps1 @@ -43,7 +43,6 @@ function New-FabricEventhouse [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$EventhouseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Eventhouse/Update-FabricEventhouse.ps1 b/source/Public/Eventhouse/Update-FabricEventhouse.ps1 index fa23a2a1..4516ff31 100644 --- a/source/Public/Eventhouse/Update-FabricEventhouse.ps1 +++ b/source/Public/Eventhouse/Update-FabricEventhouse.ps1 @@ -43,7 +43,6 @@ function Update-FabricEventhouse [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$EventhouseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Eventstream/Get-FabricEventstream.ps1 b/source/Public/Eventstream/Get-FabricEventstream.ps1 index 74319aed..05c0d758 100644 --- a/source/Public/Eventstream/Get-FabricEventstream.ps1 +++ b/source/Public/Eventstream/Get-FabricEventstream.ps1 @@ -48,7 +48,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$EventstreamName ) @@ -156,4 +155,4 @@ Author: Tiago Balabuch Write-Message -Message "Failed to retrieve Eventstream. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Eventstream/New-FabricEventstream.ps1 b/source/Public/Eventstream/New-FabricEventstream.ps1 index 16b7d189..bc619d33 100644 --- a/source/Public/Eventstream/New-FabricEventstream.ps1 +++ b/source/Public/Eventstream/New-FabricEventstream.ps1 @@ -44,7 +44,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$EventstreamName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Eventstream/Update-FabricEventstream.ps1 b/source/Public/Eventstream/Update-FabricEventstream.ps1 index 9d2883d6..40655ae6 100644 --- a/source/Public/Eventstream/Update-FabricEventstream.ps1 +++ b/source/Public/Eventstream/Update-FabricEventstream.ps1 @@ -49,7 +49,6 @@ function Update-FabricEventstream [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$EventstreamName, [Parameter(Mandatory = $false)] diff --git a/source/Public/KQL Dashboard/Get-FabricKQLDashboard.ps1 b/source/Public/KQL Dashboard/Get-FabricKQLDashboard.ps1 index 754fdd8e..9390c5a6 100644 --- a/source/Public/KQL Dashboard/Get-FabricKQLDashboard.ps1 +++ b/source/Public/KQL Dashboard/Get-FabricKQLDashboard.ps1 @@ -46,7 +46,6 @@ function Get-FabricKQLDashboard { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$KQLDashboardName ) @@ -150,4 +149,4 @@ function Get-FabricKQLDashboard { Write-Message -Message "Failed to retrieve KQLDashboard. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/KQL Dashboard/New-FabricKQLDashboard.ps1 b/source/Public/KQL Dashboard/New-FabricKQLDashboard.ps1 index 1def48a3..202a21fc 100644 --- a/source/Public/KQL Dashboard/New-FabricKQLDashboard.ps1 +++ b/source/Public/KQL Dashboard/New-FabricKQLDashboard.ps1 @@ -43,7 +43,6 @@ function New-FabricKQLDashboard [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$KQLDashboardName, [Parameter(Mandatory = $false)] diff --git a/source/Public/KQL Dashboard/Update-FabricKQLDashboard.ps1 b/source/Public/KQL Dashboard/Update-FabricKQLDashboard.ps1 index 85c6013d..b3a44aef 100644 --- a/source/Public/KQL Dashboard/Update-FabricKQLDashboard.ps1 +++ b/source/Public/KQL Dashboard/Update-FabricKQLDashboard.ps1 @@ -48,7 +48,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$KQLDashboardName, [Parameter(Mandatory = $false)] diff --git a/source/Public/KQL Database/Get-FabricKQLDatabase.ps1 b/source/Public/KQL Database/Get-FabricKQLDatabase.ps1 index 144aa890..51bb9583 100644 --- a/source/Public/KQL Database/Get-FabricKQLDatabase.ps1 +++ b/source/Public/KQL Database/Get-FabricKQLDatabase.ps1 @@ -44,7 +44,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$KQLDatabaseName ) @@ -147,4 +146,4 @@ Author: Tiago Balabuch Write-Message -Message "Failed to retrieve KQLDatabase. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/KQL Database/New-FabricKQLDatabase.ps1 b/source/Public/KQL Database/New-FabricKQLDatabase.ps1 index 4b686982..c4c19906 100644 --- a/source/Public/KQL Database/New-FabricKQLDatabase.ps1 +++ b/source/Public/KQL Database/New-FabricKQLDatabase.ps1 @@ -64,7 +64,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$KQLDatabaseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/KQL Database/Update-FabricKQLDatabase.ps1 b/source/Public/KQL Database/Update-FabricKQLDatabase.ps1 index fe6b1548..67bdcb83 100644 --- a/source/Public/KQL Database/Update-FabricKQLDatabase.ps1 +++ b/source/Public/KQL Database/Update-FabricKQLDatabase.ps1 @@ -49,7 +49,6 @@ function Update-FabricKQLDatabase [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$KQLDatabaseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/KQL Queryset/Get-FabricKQLQueryset.ps1 b/source/Public/KQL Queryset/Get-FabricKQLQueryset.ps1 index 49591b5f..252bce72 100644 --- a/source/Public/KQL Queryset/Get-FabricKQLQueryset.ps1 +++ b/source/Public/KQL Queryset/Get-FabricKQLQueryset.ps1 @@ -44,7 +44,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$KQLQuerysetName ) @@ -147,4 +146,4 @@ Author: Tiago Balabuch Write-Message -Message "Failed to retrieve KQLQueryset. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/KQL Queryset/New-FabricKQLQueryset.ps1 b/source/Public/KQL Queryset/New-FabricKQLQueryset.ps1 index d465e65d..93bde8b7 100644 --- a/source/Public/KQL Queryset/New-FabricKQLQueryset.ps1 +++ b/source/Public/KQL Queryset/New-FabricKQLQueryset.ps1 @@ -42,7 +42,6 @@ function New-FabricKQLQueryset { [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$KQLQuerysetName, [Parameter(Mandatory = $false)] diff --git a/source/Public/KQL Queryset/Update-FabricKQLQueryset.ps1 b/source/Public/KQL Queryset/Update-FabricKQLQueryset.ps1 index f7438a60..b544b501 100644 --- a/source/Public/KQL Queryset/Update-FabricKQLQueryset.ps1 +++ b/source/Public/KQL Queryset/Update-FabricKQLQueryset.ps1 @@ -49,7 +49,6 @@ function Update-FabricKQLQueryset [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$KQLQuerysetName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Lakehouse/Get-FabricLakehouse.ps1 b/source/Public/Lakehouse/Get-FabricLakehouse.ps1 index ad33e1b0..150be763 100644 --- a/source/Public/Lakehouse/Get-FabricLakehouse.ps1 +++ b/source/Public/Lakehouse/Get-FabricLakehouse.ps1 @@ -44,7 +44,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$LakehouseName ) @@ -147,4 +146,4 @@ Author: Tiago Balabuch Write-Message -Message "Failed to retrieve Lakehouse. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Lakehouse/New-FabricLakehouse.ps1 b/source/Public/Lakehouse/New-FabricLakehouse.ps1 index 70393c3a..0ec9e622 100644 --- a/source/Public/Lakehouse/New-FabricLakehouse.ps1 +++ b/source/Public/Lakehouse/New-FabricLakehouse.ps1 @@ -40,7 +40,6 @@ function New-FabricLakehouse [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_]*$')] [string]$LakehouseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Lakehouse/Update-FabricLakehouse.ps1 b/source/Public/Lakehouse/Update-FabricLakehouse.ps1 index 37a439ea..6b740f87 100644 --- a/source/Public/Lakehouse/Update-FabricLakehouse.ps1 +++ b/source/Public/Lakehouse/Update-FabricLakehouse.ps1 @@ -49,7 +49,6 @@ function Update-FabricLakehouse [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_]*$')] [string]$LakehouseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Lakehouse/Write-FabricLakehouseTableData.ps1 b/source/Public/Lakehouse/Write-FabricLakehouseTableData.ps1 index 124f7e3e..153e2245 100644 --- a/source/Public/Lakehouse/Write-FabricLakehouseTableData.ps1 +++ b/source/Public/Lakehouse/Write-FabricLakehouseTableData.ps1 @@ -45,7 +45,6 @@ This example loads data from a folder into the specified table in the Lakehouse, [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_]*$')] [string]$TableName, [Parameter(Mandatory = $true)] diff --git a/source/Public/ML Experiment/Get-FabricMLExperiment.ps1 b/source/Public/ML Experiment/Get-FabricMLExperiment.ps1 index 4e607c4f..4a9b46fb 100644 --- a/source/Public/ML Experiment/Get-FabricMLExperiment.ps1 +++ b/source/Public/ML Experiment/Get-FabricMLExperiment.ps1 @@ -43,7 +43,6 @@ function Get-FabricMLExperiment { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$MLExperimentName ) @@ -147,4 +146,4 @@ function Get-FabricMLExperiment { Write-Message -Message "Failed to retrieve ML Experiment. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/ML Experiment/New-FabricMLExperiment.ps1 b/source/Public/ML Experiment/New-FabricMLExperiment.ps1 index 2e561b7b..d7a1633c 100644 --- a/source/Public/ML Experiment/New-FabricMLExperiment.ps1 +++ b/source/Public/ML Experiment/New-FabricMLExperiment.ps1 @@ -36,7 +36,6 @@ function New-FabricMLExperiment [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_]*$')] [string]$MLExperimentName, [Parameter(Mandatory = $false)] diff --git a/source/Public/ML Experiment/Update-FabricMLExperiment.ps1 b/source/Public/ML Experiment/Update-FabricMLExperiment.ps1 index 2d26ae9e..e24ba6bc 100644 --- a/source/Public/ML Experiment/Update-FabricMLExperiment.ps1 +++ b/source/Public/ML Experiment/Update-FabricMLExperiment.ps1 @@ -43,7 +43,6 @@ function Update-FabricMLExperiment [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_]*$')] [string]$MLExperimentName, [Parameter(Mandatory = $false)] diff --git a/source/Public/ML Model/Get-FabricMLModel.ps1 b/source/Public/ML Model/Get-FabricMLModel.ps1 index e7b728cc..fd8bcc3e 100644 --- a/source/Public/ML Model/Get-FabricMLModel.ps1 +++ b/source/Public/ML Model/Get-FabricMLModel.ps1 @@ -43,7 +43,6 @@ function Get-FabricMLModel { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$MLModelName ) @@ -147,4 +146,4 @@ function Get-FabricMLModel { Write-Message -Message "Failed to retrieve ML Model. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/ML Model/New-FabricMLModel.ps1 b/source/Public/ML Model/New-FabricMLModel.ps1 index 4281dba5..fb5e4ad1 100644 --- a/source/Public/ML Model/New-FabricMLModel.ps1 +++ b/source/Public/ML Model/New-FabricMLModel.ps1 @@ -36,7 +36,6 @@ function New-FabricMLModel [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_]*$')] [string]$MLModelName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Mirrored Database/Get-FabricMirroredDatabase.ps1 b/source/Public/Mirrored Database/Get-FabricMirroredDatabase.ps1 index 0129b89d..1b036839 100644 --- a/source/Public/Mirrored Database/Get-FabricMirroredDatabase.ps1 +++ b/source/Public/Mirrored Database/Get-FabricMirroredDatabase.ps1 @@ -44,7 +44,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$MirroredDatabaseName ) @@ -150,4 +149,4 @@ Author: Tiago Balabuch Write-Message -Message "Failed to retrieve MirroredDatabase. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Mirrored Database/New-FabricMirroredDatabase.ps1 b/source/Public/Mirrored Database/New-FabricMirroredDatabase.ps1 index 98957dad..daa59eae 100644 --- a/source/Public/Mirrored Database/New-FabricMirroredDatabase.ps1 +++ b/source/Public/Mirrored Database/New-FabricMirroredDatabase.ps1 @@ -43,7 +43,6 @@ function New-FabricMirroredDatabase [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$MirroredDatabaseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Mirrored Database/Update-FabricMirroredDatabase.ps1 b/source/Public/Mirrored Database/Update-FabricMirroredDatabase.ps1 index 734bae10..60a7a381 100644 --- a/source/Public/Mirrored Database/Update-FabricMirroredDatabase.ps1 +++ b/source/Public/Mirrored Database/Update-FabricMirroredDatabase.ps1 @@ -49,7 +49,6 @@ function Update-FabricMirroredDatabase [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$MirroredDatabaseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Mirrored Warehouse/Get-FabricMirroredWarehouse.ps1 b/source/Public/Mirrored Warehouse/Get-FabricMirroredWarehouse.ps1 index 8e32b5dc..9cec4dfe 100644 --- a/source/Public/Mirrored Warehouse/Get-FabricMirroredWarehouse.ps1 +++ b/source/Public/Mirrored Warehouse/Get-FabricMirroredWarehouse.ps1 @@ -44,7 +44,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$MirroredWarehouseName ) @@ -150,4 +149,4 @@ Author: Tiago Balabuch Write-Message -Message "Failed to retrieve MirroredWarehouse. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Notebook/Get-FabricNotebook.ps1 b/source/Public/Notebook/Get-FabricNotebook.ps1 index 8f9785ad..5b970e22 100644 --- a/source/Public/Notebook/Get-FabricNotebook.ps1 +++ b/source/Public/Notebook/Get-FabricNotebook.ps1 @@ -44,7 +44,6 @@ Author: Tiago Balabuch [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$NotebookName ) @@ -148,4 +147,4 @@ Author: Tiago Balabuch Write-Message -Message "Failed to retrieve Notebook. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Notebook/New-FabricNotebook.ps1 b/source/Public/Notebook/New-FabricNotebook.ps1 index 96128aea..be9ce2b7 100644 --- a/source/Public/Notebook/New-FabricNotebook.ps1 +++ b/source/Public/Notebook/New-FabricNotebook.ps1 @@ -43,7 +43,6 @@ function New-FabricNotebook [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$NotebookName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Notebook/New-FabricNotebookNEW.ps1 b/source/Public/Notebook/New-FabricNotebookNEW.ps1 index 007ff7e6..9c0e6436 100644 --- a/source/Public/Notebook/New-FabricNotebookNEW.ps1 +++ b/source/Public/Notebook/New-FabricNotebookNEW.ps1 @@ -43,7 +43,6 @@ function New-FabricNotebookNEW [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$NotebookName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Notebook/Update-FabricNotebook.ps1 b/source/Public/Notebook/Update-FabricNotebook.ps1 index bdf39e5e..449e754f 100644 --- a/source/Public/Notebook/Update-FabricNotebook.ps1 +++ b/source/Public/Notebook/Update-FabricNotebook.ps1 @@ -49,7 +49,6 @@ function Update-FabricNotebook [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$NotebookName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Paginated Reports/Get-FabricPaginatedReport.ps1 b/source/Public/Paginated Reports/Get-FabricPaginatedReport.ps1 index 4ffe89b8..2f4e2afc 100644 --- a/source/Public/Paginated Reports/Get-FabricPaginatedReport.ps1 +++ b/source/Public/Paginated Reports/Get-FabricPaginatedReport.ps1 @@ -43,7 +43,6 @@ function Get-FabricPaginatedReport { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$PaginatedReportName ) @@ -146,4 +145,4 @@ function Get-FabricPaginatedReport { $errorDetails = $_.Exception.Message Write-Message -Message "Failed to retrieve Paginated Report. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Paginated Reports/Update-FabricPaginatedReport.ps1 b/source/Public/Paginated Reports/Update-FabricPaginatedReport.ps1 index e8d17474..398565ae 100644 --- a/source/Public/Paginated Reports/Update-FabricPaginatedReport.ps1 +++ b/source/Public/Paginated Reports/Update-FabricPaginatedReport.ps1 @@ -43,7 +43,6 @@ function Update-FabricPaginatedReport [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$PaginatedReportName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Reflex/Get-FabricReflex.ps1 b/source/Public/Reflex/Get-FabricReflex.ps1 index b7d0a707..23966035 100644 --- a/source/Public/Reflex/Get-FabricReflex.ps1 +++ b/source/Public/Reflex/Get-FabricReflex.ps1 @@ -43,7 +43,6 @@ function Get-FabricReflex { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$ReflexName ) try { @@ -147,4 +146,4 @@ function Get-FabricReflex { Write-Message -Message "Failed to retrieve Reflex. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Reflex/New-FabricReflex.ps1 b/source/Public/Reflex/New-FabricReflex.ps1 index f19cc0ad..e7b69bc7 100644 --- a/source/Public/Reflex/New-FabricReflex.ps1 +++ b/source/Public/Reflex/New-FabricReflex.ps1 @@ -42,7 +42,6 @@ function New-FabricReflex [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$ReflexName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Reflex/Update-FabricReflex.ps1 b/source/Public/Reflex/Update-FabricReflex.ps1 index da7b2252..d95ba7ca 100644 --- a/source/Public/Reflex/Update-FabricReflex.ps1 +++ b/source/Public/Reflex/Update-FabricReflex.ps1 @@ -43,7 +43,6 @@ function Update-FabricReflex [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$ReflexName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Report/Get-FabricReport.ps1 b/source/Public/Report/Get-FabricReport.ps1 index ee09cba1..2cd3233f 100644 --- a/source/Public/Report/Get-FabricReport.ps1 +++ b/source/Public/Report/Get-FabricReport.ps1 @@ -43,7 +43,6 @@ function Get-FabricReport { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$ReportName ) try { @@ -147,4 +146,4 @@ function Get-FabricReport { Write-Message -Message "Failed to retrieve Report. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Report/New-FabricReport.ps1 b/source/Public/Report/New-FabricReport.ps1 index c80e4a60..8fbd1bee 100644 --- a/source/Public/Report/New-FabricReport.ps1 +++ b/source/Public/Report/New-FabricReport.ps1 @@ -40,7 +40,6 @@ function New-FabricReport [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$ReportName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Report/Update-FabricReport.ps1 b/source/Public/Report/Update-FabricReport.ps1 index c28725b0..f8b2ab1c 100644 --- a/source/Public/Report/Update-FabricReport.ps1 +++ b/source/Public/Report/Update-FabricReport.ps1 @@ -43,7 +43,6 @@ function Update-FabricReport [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$ReportName, [Parameter(Mandatory = $false)] diff --git a/source/Public/SQL Database/New-FabricSQLDatabase.ps1 b/source/Public/SQL Database/New-FabricSQLDatabase.ps1 index f6fb22db..ae591e07 100644 --- a/source/Public/SQL Database/New-FabricSQLDatabase.ps1 +++ b/source/Public/SQL Database/New-FabricSQLDatabase.ps1 @@ -38,7 +38,6 @@ function New-FabricSQLDatabase [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_]*$')] [string]$Name, [Parameter(Mandatory = $false)] diff --git a/source/Public/SQL Endpoints/Get-FabricSQLEndpoint.ps1 b/source/Public/SQL Endpoints/Get-FabricSQLEndpoint.ps1 index 8639f525..bf3c8335 100644 --- a/source/Public/SQL Endpoints/Get-FabricSQLEndpoint.ps1 +++ b/source/Public/SQL Endpoints/Get-FabricSQLEndpoint.ps1 @@ -42,7 +42,6 @@ function Get-FabricSQLEndpoint { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$SQLEndpointName ) @@ -145,4 +144,4 @@ function Get-FabricSQLEndpoint { $errorDetails = $_.Exception.Message Write-Message -Message "Failed to retrieve Paginated Report. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Semantic Model/Get-FabricSemanticModel.ps1 b/source/Public/Semantic Model/Get-FabricSemanticModel.ps1 index 653dcc22..b0bf5155 100644 --- a/source/Public/Semantic Model/Get-FabricSemanticModel.ps1 +++ b/source/Public/Semantic Model/Get-FabricSemanticModel.ps1 @@ -43,7 +43,6 @@ function Get-FabricSemanticModel { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$SemanticModelName ) try { @@ -147,4 +146,4 @@ function Get-FabricSemanticModel { Write-Message -Message "Failed to retrieve SemanticModel. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Semantic Model/New-FabricSemanticModel.ps1 b/source/Public/Semantic Model/New-FabricSemanticModel.ps1 index fd7fb974..2122447d 100644 --- a/source/Public/Semantic Model/New-FabricSemanticModel.ps1 +++ b/source/Public/Semantic Model/New-FabricSemanticModel.ps1 @@ -39,7 +39,6 @@ function New-FabricSemanticModel [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$SemanticModelName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Semantic Model/Update-FabricSemanticModel.ps1 b/source/Public/Semantic Model/Update-FabricSemanticModel.ps1 index 5fa9ceaa..7d24a52f 100644 --- a/source/Public/Semantic Model/Update-FabricSemanticModel.ps1 +++ b/source/Public/Semantic Model/Update-FabricSemanticModel.ps1 @@ -43,7 +43,6 @@ function Update-FabricSemanticModel [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$SemanticModelName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Spark Job Definition/Get-FabricSparkJobDefinition.ps1 b/source/Public/Spark Job Definition/Get-FabricSparkJobDefinition.ps1 index 13000c7b..6cbcbfe0 100644 --- a/source/Public/Spark Job Definition/Get-FabricSparkJobDefinition.ps1 +++ b/source/Public/Spark Job Definition/Get-FabricSparkJobDefinition.ps1 @@ -43,7 +43,6 @@ function Get-FabricSparkJobDefinition { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$SparkJobDefinitionName ) try { @@ -147,4 +146,4 @@ function Get-FabricSparkJobDefinition { Write-Message -Message "Failed to retrieve SparkJobDefinition. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Spark Job Definition/New-FabricSparkJobDefinition.ps1 b/source/Public/Spark Job Definition/New-FabricSparkJobDefinition.ps1 index deb64c00..1f40185e 100644 --- a/source/Public/Spark Job Definition/New-FabricSparkJobDefinition.ps1 +++ b/source/Public/Spark Job Definition/New-FabricSparkJobDefinition.ps1 @@ -41,7 +41,6 @@ function New-FabricSparkJobDefinition [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$SparkJobDefinitionName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Spark Job Definition/Update-FabricSparkJobDefinition.ps1 b/source/Public/Spark Job Definition/Update-FabricSparkJobDefinition.ps1 index f841d006..cff58abf 100644 --- a/source/Public/Spark Job Definition/Update-FabricSparkJobDefinition.ps1 +++ b/source/Public/Spark Job Definition/Update-FabricSparkJobDefinition.ps1 @@ -42,7 +42,6 @@ function Update-FabricSparkJobDefinition [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$SparkJobDefinitionName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Spark/Get-FabricSparkCustomPool.ps1 b/source/Public/Spark/Get-FabricSparkCustomPool.ps1 index b2e1d221..1bbffe8c 100644 --- a/source/Public/Spark/Get-FabricSparkCustomPool.ps1 +++ b/source/Public/Spark/Get-FabricSparkCustomPool.ps1 @@ -48,7 +48,6 @@ function Get-FabricSparkCustomPool { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$SparkCustomPoolName ) @@ -152,4 +151,4 @@ function Get-FabricSparkCustomPool { Write-Message -Message "Failed to retrieve SparkCustomPool. Error: $errorDetails" -Level Error } -} \ No newline at end of file +} diff --git a/source/Public/Spark/New-FabricSparkCustomPool.ps1 b/source/Public/Spark/New-FabricSparkCustomPool.ps1 index 750c977f..afdf51f2 100644 --- a/source/Public/Spark/New-FabricSparkCustomPool.ps1 +++ b/source/Public/Spark/New-FabricSparkCustomPool.ps1 @@ -58,7 +58,6 @@ function New-FabricSparkCustomPool [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$SparkCustomPoolName, [Parameter(Mandatory = $true)] diff --git a/source/Public/Spark/Update-FabricSparkCustomPool.ps1 b/source/Public/Spark/Update-FabricSparkCustomPool.ps1 index f67013ad..e0e58520 100644 --- a/source/Public/Spark/Update-FabricSparkCustomPool.ps1 +++ b/source/Public/Spark/Update-FabricSparkCustomPool.ps1 @@ -64,7 +64,6 @@ function Update-FabricSparkCustomPool [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$InstancePoolName, [Parameter(Mandatory = $true)] diff --git a/source/Public/Warehouse/Get-FabricWarehouse.ps1 b/source/Public/Warehouse/Get-FabricWarehouse.ps1 index f3f08178..0e29c35b 100644 --- a/source/Public/Warehouse/Get-FabricWarehouse.ps1 +++ b/source/Public/Warehouse/Get-FabricWarehouse.ps1 @@ -42,7 +42,6 @@ function Get-FabricWarehouse { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$WarehouseName ) diff --git a/source/Public/Warehouse/New-FabricWarehouse.ps1 b/source/Public/Warehouse/New-FabricWarehouse.ps1 index 0b9c464c..d71b5436 100644 --- a/source/Public/Warehouse/New-FabricWarehouse.ps1 +++ b/source/Public/Warehouse/New-FabricWarehouse.ps1 @@ -35,7 +35,6 @@ function New-FabricWarehouse [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$WarehouseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Warehouse/Update-FabricWarehouse.ps1 b/source/Public/Warehouse/Update-FabricWarehouse.ps1 index 02c10f3c..6ea42649 100644 --- a/source/Public/Warehouse/Update-FabricWarehouse.ps1 +++ b/source/Public/Warehouse/Update-FabricWarehouse.ps1 @@ -43,7 +43,6 @@ function Update-FabricWarehouse [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$WarehouseName, [Parameter(Mandatory = $false)] diff --git a/source/Public/Workspace/Get-FabricWorkspace.ps1 b/source/Public/Workspace/Get-FabricWorkspace.ps1 index c64078e2..3a6ddf73 100644 --- a/source/Public/Workspace/Get-FabricWorkspace.ps1 +++ b/source/Public/Workspace/Get-FabricWorkspace.ps1 @@ -38,7 +38,6 @@ function Get-FabricWorkspace { [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_\- ]*$')] [string]$WorkspaceName ) diff --git a/source/Public/Workspace/Update-FabricWorkspace.ps1 b/source/Public/Workspace/Update-FabricWorkspace.ps1 index 3dae3ed0..87626009 100644 --- a/source/Public/Workspace/Update-FabricWorkspace.ps1 +++ b/source/Public/Workspace/Update-FabricWorkspace.ps1 @@ -41,7 +41,6 @@ function Update-FabricWorkspace [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[a-zA-Z0-9_ ]*$')] [string]$WorkspaceName, [Parameter(Mandatory = $false)] diff --git a/tests/Unit/Get-FabricWorkspace.Tests.ps1 b/tests/Unit/Get-FabricWorkspace.Tests.ps1 index 19ecc9bc..2cb30b1f 100644 --- a/tests/Unit/Get-FabricWorkspace.Tests.ps1 +++ b/tests/Unit/Get-FabricWorkspace.Tests.ps1 @@ -43,17 +43,4 @@ Describe "Get-FabricWorkspace" -Tag "UnitTests" { Compare-Object -ReferenceObject $expected -DifferenceObject $hasparms | Should -BeNullOrEmpty } } - - Context "WorkspaceName parameter validation" { - It "Throws error when WorkspaceName does not match ValidatePattern" { - # Assuming the ValidatePattern allows only alphanumeric, underscore, space and hyphen - { Get-FabricWorkspace -WorkspaceName "InvalidName!" } | Should -Throw - { Get-FabricWorkspace -WorkspaceName "Another@Invalid" } | Should -Throw - } - - It "Does not throw when WorkspaceName matches ValidatePattern" { - { Get-FabricWorkspace -WorkspaceName "Valid_Name-123" } | Should -Not -Throw - { Get-FabricWorkspace -WorkspaceName "Another Valid Name" } | Should -Not -Throw - } - } }