@@ -4886,6 +4886,7 @@ function Install-DeployModule {
4886
4886
$ModuleName
4887
4887
)
4888
4888
4889
+ Setup- Logging - LogFilePrefix " AzStackHCIRemoteSupportInstallModule" - DebugEnabled ($DebugPreference -ne " SilentlyContinue" )
4889
4890
if (Get-Module | Where-Object { $_.Name -eq $ModuleName }){
4890
4891
Write-InfoLog (" $ModuleName is loaded already ..." )
4891
4892
}
@@ -4917,7 +4918,8 @@ function Install-AzStackHCIRemoteSupport{
4917
4918
[CmdletBinding (SupportsShouldProcess )]
4918
4919
[OutputType ([Boolean ])]
4919
4920
param ()
4920
-
4921
+
4922
+ Setup- Logging - LogFilePrefix " AzStackHCIRemoteSupportInstall" - DebugEnabled ($DebugPreference -ne " SilentlyContinue" )
4921
4923
if (Assert-IsObservabilityStackPresent ){
4922
4924
Write-InfoLog (" Install-AzStackHCIRemoteSupport is not available." )
4923
4925
}
@@ -4944,6 +4946,7 @@ function Remove-AzStackHCIRemoteSupport{
4944
4946
[OutputType ([Boolean ])]
4945
4947
param ()
4946
4948
4949
+ Setup- Logging - LogFilePrefix " AzStackHCIRemoteSupportRemove" - DebugEnabled ($DebugPreference -ne " SilentlyContinue" )
4947
4950
if (Assert-IsObservabilityStackPresent ){
4948
4951
Write-InfoLog (" Remove-AzStackHCIRemoteSupport is not available." )
4949
4952
}
@@ -5097,10 +5100,11 @@ function Assert-IsObservabilityStackPresent{
5097
5100
[OutputType ([Boolean ])]
5098
5101
param ()
5099
5102
5103
+ Setup- Logging - LogFilePrefix " AzStackHCIRemoteSupportObsStackPresent" - DebugEnabled ($DebugPreference -ne " SilentlyContinue" )
5100
5104
try {
5101
5105
$obsService = Get-Service - Name " *Observability RemoteSupportAgent*" - ErrorAction SilentlyContinue
5102
5106
$deviceType = (Get-ItemProperty - Path " HKLM:\SOFTWARE\Microsoft\AzureStack" - ErrorAction SilentlyContinue).DeviceType
5103
- if ($obsService -or $deviceType -eq " AzureEdge" ){
5107
+ if ($null -ne $ obsService -or $deviceType -eq " AzureEdge" ){
5104
5108
Write-InfoLog (" AzureStack device type is AzureEdge." )
5105
5109
return $true
5106
5110
}
0 commit comments