Skip to content

Commit ec5a861

Browse files
potatoqualiteegithub-actions[bot]
authored andcommitted
refreshing docs pages
1 parent f5737fd commit ec5a861

File tree

6 files changed

+715
-709
lines changed

6 files changed

+715
-709
lines changed

Connect-DbaInstance.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,13 +622,24 @@ <h5 id="example-15">Example: 15</h5>
622622
PS C:\&gt; Invoke-DbaQuery -SqlInstance $server -Query &quot;select 1 as test&quot;
623623
</code></pre>
624624
<p>Connect to an Azure SQL Database or an Azure SQL Managed Instance with an AccessToken.<br>
625+
Works with both Azure PowerShell v13 (string tokens) and v14+ (SecureString tokens).<br>
625626
Note that the token is valid for only one hour and cannot be renewed automatically.<br></p>
626627
<h5 id="example-16">Example: 16</h5>
628+
<pre><code>PS C:\&gt; # Azure PowerShell v14+ with SecureString token support
629+
PS C:\&gt; Connect-AzAccount
630+
PS C:\&gt; $azureToken = (Get-AzAccessToken -ResourceUrl https://database.windows.net).Token
631+
PS C:\&gt; $azureInstance = &quot;YOUR-AZURE-SQL-MANAGED-INSTANCE.database.windows.net&quot;
632+
PS C:\&gt; $server = Connect-DbaInstance -SqlInstance $azureInstance -Database &quot;YOURDATABASE&quot; -AccessToken $azureToken
633+
PS C:\&gt; Invoke-DbaQuery -SqlInstance $server -Query &quot;select 1 as test&quot;
634+
</code></pre>
635+
<p>Connect to an Azure SQL Managed Instance using Azure PowerShell v14+ where Get-AzAccessToken returns a SecureString.<br>
636+
The function automatically detects and converts the SecureString token to the required format.<br></p>
637+
<h5 id="example-17">Example: 17</h5>
627638
<pre><code>PS C:\&gt; $token = New-DbaAzAccessToken -Type RenewableServicePrincipal -Subtype AzureSqlDb -Tenant $tenantid -Credential $cred
628639
PS C:\&gt; Connect-DbaInstance -SqlInstance sample.database.windows.net -Accesstoken $token
629640
</code></pre>
630641
<p>Uses dbatools to generate the access token for an Azure SQL Database, then logs in using that AccessToken.<br></p>
631-
<h5 id="example-17">Example: 17</h5>
642+
<h5 id="example-18">Example: 18</h5>
632643
<pre><code>PS C:\&gt; $server = Connect-DbaInstance -SqlInstance srv1 -DedicatedAdminConnection
633644
PS C:\&gt; $dbaProcess = Get-DbaProcess -SqlInstance $server -ExcludeSystemSpids
634645
PS C:\&gt; $killedProcess = $dbaProcess | Out-GridView -OutputMode Multiple | Stop-DbaProcess
@@ -1492,6 +1503,8 @@ <h5 id="tenant">-Tenant</h5>
14921503
</table>
14931504
<h5 id="accesstoken">-AccessToken</h5>
14941505
<p>Connect to an Azure SQL Database or an Azure SQL Managed Instance with an AccessToken, that has to be generated with Get-AzAccessToken or New-DbaAzAccessToken.<br />
1506+
Supports both String (Azure PowerShell v13 and earlier) and SecureString (Azure PowerShell v14+) token formats.<br />
1507+
The function automatically detects the token type and converts SecureString tokens to the required plain text format internally.<br />
14951508
Note that the token is valid for only one hour and cannot be renewed automatically.<br />
14961509
Note that the returned SMO is not a fully functional SMO. It can only be used in a limited list of commands like Invoke-DbaQuery, Import-DbaCsv or Write-DbaDbTableData.<br></p>
14971510
<table>

Get-DbaDeprecatedFeature.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,10 @@ <h1 id="get-dbadeprecatedfeature">Get-DbaDeprecatedFeature</h1>
485485
<br>
486486
Want to see the Bill Of Health for this command? Check out <a href="https://dataplat.github.io/boh#Get-DbaDeprecatedFeature">Get-DbaDeprecatedFeature</a>.</p>
487487
<h2 id="synopsis">Synopsis</h2>
488-
<p>Displays information relating to deprecated features for SQL Server 2005 and above.</p>
488+
<p>Displays usage information relating to deprecated features for SQL Server 2005 and above.</p>
489489
<h2 id="description">Description</h2>
490-
<p>Displays information relating to deprecated features for SQL Server 2005 and above.</p>
490+
<p>Displays usage information relating to deprecated features for SQL Server 2005 and above.<br />
491+
More information: <a href="https://learn.microsoft.com/en-us/sql/relational-databases/performance-monitor/sql-server-deprecated-features-object">https://learn.microsoft.com/en-us/sql/relational-databases/performance-monitor/sql-server-deprecated-features-object</a></p>
491492
<h2 id="syntax">Syntax</h2>
492493
<pre><code>Get-DbaDeprecatedFeature
493494
[-SqlInstance] &lt;DbaInstanceParameter[]&gt;
@@ -502,11 +503,11 @@ <h2 id="examples">Examples</h2>
502503
<h5 id="example-1">Example: 1</h5>
503504
<pre><code>PS C:\&gt; Get-DbaDeprecatedFeature -SqlInstance sql2008, sqlserver2012
504505
</code></pre>
505-
<p>Check deprecated features for all databases on the servers sql2008 and sqlserver2012.<br></p>
506+
<p>Get usage information relating to deprecated features on the servers sql2008 and sqlserver2012.<br></p>
506507
<h5 id="example-2">Example: 2</h5>
507508
<pre><code>PS C:\&gt; Get-DbaDeprecatedFeature -SqlInstance sql2008
508509
</code></pre>
509-
<p>Check deprecated features on server sql2008.<br></p>
510+
<p>Get usage information relating to deprecated features on server sql2008.<br></p>
510511
<h3 id="required-parameters">Required Parameters</h3>
511512
<h5 id="sqlinstance">-SqlInstance</h5>
512513
<p>The target SQL Server instance <br></p>

New-DbaConnectionString.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,10 +837,6 @@ <h5 id="encryptconnection">-EncryptConnection</h5>
837837
<td>Default Value</td>
838838
<td>(Get-DbatoolsConfigValue -FullName 'sql.connection.encrypt')</td>
839839
</tr>
840-
<tr>
841-
<td>Accepted Values</td>
842-
<td>Mandatory,Optional,Strict,True,False</td>
843-
</tr>
844840
</tbody>
845841
</table>
846842
<h5 id="failoverpartner">-FailoverPartner</h5>

assets/dbatools-index.json

-6.72 KB
Binary file not shown.

assets/external.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.5.1",
2+
"version": "2.5.5",
33
"external_links": [
44
{
55
"name": "offline installs of dbatools",

0 commit comments

Comments
 (0)