Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions d365fo.tools/functions/get-d365database.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
}

Expand Down Expand Up @@ -98,4 +107,4 @@ function Get-D365Database {

$sqlCommand.Dispose()
}
}
}
8 changes: 4 additions & 4 deletions d365fo.tools/functions/invoke-d365sdpinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -38,7 +38,7 @@
Export
VersionCheck

The default value is "SetTopology"


.PARAMETER Step
The step number that you want to work against
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -455,4 +455,4 @@ function Invoke-D365SDPInstall {

Invoke-TimeSignal -End

}
}
4 changes: 2 additions & 2 deletions d365fo.tools/functions/remove-d365lcsassetfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function Remove-D365LcsAssetFile {
[int] $ProjectId = $Script:LcsApiProjectId,

[Parameter(Mandatory = $true)]
[string] $AssetId = "",
[string] $AssetId,

[Alias('Token')]
[string] $BearerToken = $Script:LcsApiBearerToken,
Expand All @@ -113,4 +113,4 @@ function Remove-D365LcsAssetFile {
if (Test-PSFFunctionInterrupt) { return }

Invoke-TimeSignal -End
}
}
Loading