diff --git a/d365fo.tools/functions/get-d365database.ps1 b/d365fo.tools/functions/get-d365database.ps1 index 8ab1c16b..4e13db94 100644 --- a/d365fo.tools/functions/get-d365database.ps1 +++ b/d365fo.tools/functions/get-d365database.ps1 @@ -19,7 +19,11 @@ If Azure use the full address to the database server, e.g. server.database.windows.net .PARAMETER DatabaseName - The name of the database + The name of the database that you want to connect to, to retrieve the list of databases from + + This is useful if the credentials that you are using only have access to a specific database, and not the default "master" database + + Default value is fetched from the current configuration on the machine .PARAMETER SqlUser The login name for the SQL Server instance @@ -37,6 +41,11 @@ This will show if the AXDB_ORIGINAL database exists on the default SQL Server / Azure SQL Database instance. + .EXAMPLE + PS C:\> Get-D365Database -DatabaseName AXDB + + This will show all databases on the default SQL Server / Azure SQL Database instance, by establishing the connection against the AXDB database instead of the default "master" database. + .NOTES Tags: Database, DB, Servicing @@ -61,7 +70,7 @@ function Get-D365Database { $UseTrustedConnection = Test-TrustedConnection $PSBoundParameters - $SqlParams = @{ DatabaseServer = $DatabaseServer; DatabaseName = "master"; + $SqlParams = @{ DatabaseServer = $DatabaseServer; DatabaseName = $DatabaseName; SqlUser = $SqlUser; SqlPwd = $SqlPwd } @@ -98,4 +107,4 @@ function Get-D365Database { $sqlCommand.Dispose() } -} \ No newline at end of file +} diff --git a/d365fo.tools/functions/invoke-d365sdpinstall.ps1 b/d365fo.tools/functions/invoke-d365sdpinstall.ps1 index 82836660..52577335 100644 --- a/d365fo.tools/functions/invoke-d365sdpinstall.ps1 +++ b/d365fo.tools/functions/invoke-d365sdpinstall.ps1 @@ -9,7 +9,7 @@ https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/deployment/install-deployable-package .PARAMETER Path - Path to the update package that you want to install into the environment + Path to the update package that you want to install into the enhvironment The cmdlet supports a path to a zip-file or directory with the unpacked contents. @@ -38,7 +38,7 @@ Export VersionCheck - The default value is "SetTopology" + .PARAMETER Step The step number that you want to work against @@ -186,7 +186,7 @@ function Invoke-D365SDPInstall { [Parameter(Mandatory = $true, ParameterSetName = 'Manual', Position = 3 )] [ValidateSet('SetTopology', 'Generate', 'Import', 'Execute', 'RunAll', 'ReRunStep', 'SetStepComplete', 'Export', 'VersionCheck')] - [string] $Command = 'SetTopology', + [string] $Command, [Parameter(Mandatory = $false, Position = 4 )] [int] $Step, @@ -455,4 +455,4 @@ function Invoke-D365SDPInstall { Invoke-TimeSignal -End -} \ No newline at end of file +} diff --git a/d365fo.tools/functions/remove-d365lcsassetfile.ps1 b/d365fo.tools/functions/remove-d365lcsassetfile.ps1 index 5797aef8..eef52610 100644 --- a/d365fo.tools/functions/remove-d365lcsassetfile.ps1 +++ b/d365fo.tools/functions/remove-d365lcsassetfile.ps1 @@ -90,7 +90,7 @@ function Remove-D365LcsAssetFile { [int] $ProjectId = $Script:LcsApiProjectId, [Parameter(Mandatory = $true)] - [string] $AssetId = "", + [string] $AssetId, [Alias('Token')] [string] $BearerToken = $Script:LcsApiBearerToken, @@ -113,4 +113,4 @@ function Remove-D365LcsAssetFile { if (Test-PSFFunctionInterrupt) { return } Invoke-TimeSignal -End -} \ No newline at end of file +}