Skip to content

Commit

Permalink
use API v2.19 (#3314)
Browse files Browse the repository at this point in the history
Fixed #3313

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
  • Loading branch information
freddydk and freddydk committed Jan 26, 2024
1 parent 45f8232 commit a598036
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
6.0.5
Issue 3313 Strange error in Copy-BcEnvironment

6.0.4
Rename AppInfoCache.json to cache_AppInfo.json (which by default is covered by .gitignore in AL-Go for GitHub)
Expand Down
2 changes: 1 addition & 1 deletion Saas/Copy-BcEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Copy-BcEnvironment {
[ValidateSet('Sandbox', 'Production')]
[string] $environmentType = "Sandbox",
[string] $applicationInsightsKey = "",
[string] $apiVersion = "v2.15",
[string] $apiversion = "v2.19",
[switch] $force,
[switch] $doNotWait
)
Expand Down
2 changes: 1 addition & 1 deletion Saas/Get-BcEnvironmentAvailableRestorePeriods.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Get-BcEnvironmentAvailableRestorePeriods {
[string] $applicationFamily = "BusinessCentral",
[Parameter(Mandatory = $true)]
[string] $environment = "",
[string] $apiVersion = "v2.15"
[string] $apiversion = "v2.19"
)

$telemetryScope = InitTelemetryScope -name $MyInvocation.InvocationName -parameterValues $PSBoundParameters -includeParameters @()
Expand Down
2 changes: 1 addition & 1 deletion Saas/Get-BcEnvironmentOperations.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Get-BcEnvironmentOperations {
[Hashtable] $bcAuthContext,
[string] $applicationFamily = ('', 'BusinessCentral')[$PSBoundParameters.ContainsKey('environment')],
[string] $environment = "",
[string] $apiVersion = "v2.15"
[string] $apiversion = "v2.19"
)

$telemetryScope = InitTelemetryScope -name $MyInvocation.InvocationName -parameterValues $PSBoundParameters -includeParameters @()
Expand Down
2 changes: 1 addition & 1 deletion Saas/Get-BcEnvironmentUpdateWindow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Get-BcEnvironmentUpdateWindow {
[string] $applicationFamily = "BusinessCentral",
[Parameter(Mandatory = $true)]
[string] $environment,
[string] $apiVersion = "v2.18"
[string] $apiversion = "v2.19"
)

$telemetryScope = InitTelemetryScope -name $MyInvocation.InvocationName -parameterValues $PSBoundParameters -includeParameters @()
Expand Down
2 changes: 1 addition & 1 deletion Saas/Get-BcEnvironmentUsedStorage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Get-BcEnvironmentUsedStorage {
[Hashtable] $bcAuthContext,
[string] $applicationFamily = ('', 'BusinessCentral')[$PSBoundParameters.ContainsKey('environment')],
[string] $environment = "",
[string] $apiVersion = "v2.15"
[string] $apiversion = "v2.19"
)

$telemetryScope = InitTelemetryScope -name $MyInvocation.InvocationName -parameterValues $PSBoundParameters -includeParameters @()
Expand Down
2 changes: 1 addition & 1 deletion Saas/Get-BcEnvironments.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Get-BcEnvironments {
[Hashtable] $bcAuthContext,
[string] $applicationFamily = "BusinessCentral",
[string] $environment = "",
[string] $apiVersion = "v2.15"
[string] $apiversion = "v2.19"
)

$telemetryScope = InitTelemetryScope -name $MyInvocation.InvocationName -parameterValues $PSBoundParameters -includeParameters @()
Expand Down
2 changes: 1 addition & 1 deletion Saas/New-BcEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function New-BcEnvironment {
[string] $ringName = "PROD",
[string] $applicationVersion = "",
[string] $applicationInsightsKey = "",
[string] $apiVersion = "v2.18",
[string] $apiversion = "v2.19",
[switch] $doNotWait,
[switch] $doNotGetCompanyInfo
)
Expand Down
2 changes: 1 addition & 1 deletion Saas/Remove-BcEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Remove-BcEnvironment {
[string] $applicationFamily = "BusinessCentral",
[Parameter(Mandatory = $true)]
[string] $environment,
[string] $apiVersion = "v2.18",
[string] $apiversion = "v2.19",
[switch] $doNotWait
)

Expand Down
2 changes: 1 addition & 1 deletion Saas/Rename-BcEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Rename-BcEnvironment {
[string] $environment,
[Parameter(Mandatory = $true)]
[string] $newEnvironmentName,
[string] $apiVersion = "v2.15",
[string] $apiversion = "v2.19",
[switch] $force,
[switch] $doNotWait
)
Expand Down
2 changes: 1 addition & 1 deletion Saas/Restore-BcEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Restore-BcEnvironment {
[ValidateSet('Sandbox', 'Production')]
[string] $environmentType = "Sandbox",
[string] $pointInTime = "",
[string] $apiVersion = "v2.15",
[string] $apiversion = "v2.19",
[switch] $force,
[switch] $doNotWait
)
Expand Down
2 changes: 1 addition & 1 deletion Saas/Set-BcEnvironmentUpdateWindow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Set-BcEnvironmentUpdateWindow {
[string] $applicationFamily = "BusinessCentral",
[Parameter(Mandatory = $true)]
[string] $environment,
[string] $apiVersion = "v2.18",
[string] $apiversion = "v2.19",
[Parameter(Mandatory = $true)]
[ValidatePattern("^([0-1]?[0-9]|2[0-3]):(00|30)$")]
[string] $preferredStartTime,
Expand Down
2 changes: 1 addition & 1 deletion Saas/Wait-BcEnvironmentReady.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Wait-BcEnvironmentsReady {
[string] $applicationFamily = "BusinessCentral",
[Parameter(Mandatory = $true)]
[string[]] $environments = @(),
[string] $apiVersion = "v2.15"
[string] $apiversion = "v2.19"
)

$telemetryScope = InitTelemetryScope -name $MyInvocation.InvocationName -parameterValues $PSBoundParameters -includeParameters @()
Expand Down

0 comments on commit a598036

Please sign in to comment.