Skip to content

Commit 6b4b163

Browse files
Migrate SqlVirtualMachine from generation to main (#25101)
* Move SqlVirtualMachine to main * Update ChangeLog.md --------- Co-authored-by: NoriZC <[email protected]>
1 parent e820710 commit 6b4b163

34 files changed

+2178
-62
lines changed

src/SqlVirtualMachine/SqlVirtualMachine.Autorest/Az.SqlVirtualMachine.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.SqlVirtualMachine.private.dll'
1313
FormatsToProcess = './Az.SqlVirtualMachine.format.ps1xml'
14-
FunctionsToExport = 'Get-AzAvailabilityGroupListener', 'Get-AzSqlVM', 'Get-AzSqlVMGroup', 'Invoke-AzRedeploySqlVM', 'Invoke-AzSqlVMTroubleshoot', 'New-AzAvailabilityGroupListener', 'New-AzSqlVirtualMachineAgReplicaObject', 'New-AzSqlVirtualMachineMultiSubnetIPConfigurationObject', 'New-AzSqlVM', 'New-AzSqlVMGroup', 'Remove-AzAvailabilityGroupListener', 'Remove-AzSqlVM', 'Remove-AzSqlVMGroup', 'Start-AzSqlVMAssessment', 'Update-AzSqlVM', 'Update-AzSqlVMGroup', '*'
14+
FunctionsToExport = 'Assert-AzSqlVMEntraAuth', 'Get-AzAvailabilityGroupListener', 'Get-AzSqlVM', 'Get-AzSqlVMGroup', 'Invoke-AzRedeploySqlVM', 'Invoke-AzSqlVMTroubleshoot', 'New-AzAvailabilityGroupListener', 'New-AzSqlVirtualMachineAgReplicaObject', 'New-AzSqlVirtualMachineMultiSubnetIPConfigurationObject', 'New-AzSqlVM', 'New-AzSqlVMGroup', 'Remove-AzAvailabilityGroupListener', 'Remove-AzSqlVM', 'Remove-AzSqlVMGroup', 'Start-AzSqlVMAssessment', 'Update-AzSqlVM', 'Update-AzSqlVMGroup', '*'
1515
AliasesToExport = '*'
1616
PrivateData = @{
1717
PSData = @{

src/SqlVirtualMachine/SqlVirtualMachine.Autorest/build-module.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
15+
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [Switch]$DisableAfterBuildTasks)
1616
$ErrorActionPreference = 'Stop'
1717

1818
if($PSEdition -ne 'Core') {
@@ -169,4 +169,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
169169
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
170170
}
171171

172+
if (-not $DisableAfterBuildTasks){
173+
$afterBuildTasksPath = Join-Path $PSScriptRoot ''
174+
$afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
175+
if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
176+
Write-Host -ForegroundColor Green 'Running after build tasks...'
177+
. $afterBuildTasksPath @afterBuildTasksArgs
178+
}
179+
}
180+
181+
172182
Write-Host -ForegroundColor Green '-------------Done-------------'

0 commit comments

Comments
 (0)