Skip to content

Commit 2e3d149

Browse files
author
Maddie Clayton
authored
Merge pull request #7072 from deathly809/InfrastructureInsights1.5.0
[Azure Stack][Admin] Infrastructure Insights for Azure Stack 1.5.0
2 parents e4b8c56 + 1363f35 commit 2e3d149

17 files changed

+121
-117
lines changed

src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psd1

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Licensed under the MIT License. See License.txt in the project root for license
1717
RootModule = 'Azs.InfrastructureInsights.Admin.psm1'
1818

1919
# Version number of this module.
20-
ModuleVersion = '0.1.1'
20+
ModuleVersion = '0.2.0'
2121

2222
# Supported PSEditions
2323
# CompatiblePSEditions = @()
@@ -38,7 +38,7 @@ Licensed under the MIT License. See License.txt in the project root for license
3838
Description = 'InfrastructureInsights Admin Client'
3939

4040
# Minimum version of the Windows PowerShell engine required by this module
41-
# PowerShellVersion = ''
41+
PowerShellVersion = '5.0'
4242

4343
# Name of the Windows PowerShell host required by this module
4444
# PowerShellHostName = ''
@@ -56,8 +56,8 @@ Licensed under the MIT License. See License.txt in the project root for license
5656
# ProcessorArchitecture = ''
5757

5858
# Modules that must be imported into the global environment prior to importing this module
59-
RequiredModules = @(@{ModuleName = 'AzureRM.Profile'; RequiredVersion = '3.4.1'; },
60-
@{ModuleName = 'AzureRM.Resources'; RequiredVersion = '4.4.1'; })
59+
RequiredModules = @(@{ModuleName = 'AzureRM.Profile'; ModuleVersion = '5.5.1'; },
60+
@{ModuleName = 'AzureRM.Resources'; ModuleVersion = '6.0.2'; })
6161

6262
# Assemblies that must be loaded prior to importing this module
6363
# RequiredAssemblies = @()
@@ -102,19 +102,34 @@ Licensed under the MIT License. See License.txt in the project root for license
102102
PSData = @{
103103

104104
# Tags applied to this module. These help with module discovery in online galleries.
105-
# Tags = @()
105+
Tags = @('AzureStack', 'Azure Stack', 'Admin', 'Infrastructure Insights', 'Azure Stack Health', 'Monitoring', 'HRP')
106106

107107
# A URL to the license for this module.
108-
# LicenseUri = ''
108+
LicenseUri = 'https://aka.ms/azps-license'
109109

110110
# A URL to the main website for this project.
111-
# ProjectUri = ''
111+
ProjectUri = 'https://github.com/Azure/azure-powershell'
112112

113113
# A URL to an icon representing this module.
114114
# IconUri = ''
115115

116116
# ReleaseNotes of this module
117-
# ReleaseNotes = ''
117+
ReleaseNotes = '## 2018.8.12
118+
* Module dependencies updated
119+
* AzureRM.Profile
120+
* AzureRM.Resources
121+
* Support handling names of nested resources
122+
* Get-AzsAlert
123+
* Close-AzsAlert
124+
* Get-AzsRegistrationHealth
125+
* Get-AzsRPHealth
126+
* Deprecations
127+
* Get-AzsRegistrationHealth, the parameter ResourceHealthId is now an alias for Name
128+
* Get-AzsRegistrationHealth, the parameter ServiceRegistrationId is now an alias for ServiceRegistrationName
129+
* Get-AzsRPHealth, the parameter ServiceHealth is now an alias for Name
130+
* Bug fixes
131+
* Handle ErrrorAction correctly now
132+
'
118133

119134
} # End of PSData hashtable
120135

src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ if (Test-Path -Path $ClrPath -PathType Container) {
2929
. (Join-Path -Path $PSScriptRoot -ChildPath 'Get-ApplicableFilters.ps1')
3030
. (Join-Path -Path $PSScriptRoot -ChildPath 'Test-FilteredResult.ps1')
3131
. (Join-Path -Path $PSScriptRoot -ChildPath 'Get-ArmResourceIdParameterValue.ps1')
32+
. (Join-Path -Path $PSScriptRoot -ChildPath 'Get-ResourceNameSuffix.ps1')
3233
$allPs1FilesPath = Join-Path -Path $PSScriptRoot -ChildPath 'Generated.PowerShell.Commands' | Join-Path -ChildPath '*.ps1'
3334
Get-ChildItem -Path $allPs1FilesPath -Recurse -File | ForEach-Object { . $_.FullName}

src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsAlert.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ function Get-AzsAlert {
9797

9898
Process {
9999

100-
101-
102100
$NewServiceClient_params = @{
103101
FullClientTypeName = 'Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient'
104102
}
@@ -175,6 +173,7 @@ function Get-AzsAlert {
175173
$null
176174
}))
177175
} elseif ('Get' -eq $PsCmdlet.ParameterSetName -or 'ResourceId' -eq $PsCmdlet.ParameterSetName) {
176+
$Name = Get-ResourceNameSuffix -ResourceName $Name
178177
Write-Verbose -Message 'Performing operation GetWithHttpMessagesAsync on $InfrastructureInsightsAdminClient.'
179178
$TaskResult = $InfrastructureInsightsAdminClient.Alerts.GetWithHttpMessagesAsync($ResourceGroupName, $Location, $Name)
180179
} else {

src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsRPHealth.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ function Get-AzsRPHealth {
9797

9898
Process {
9999

100+
if ($PSBoundParameters.ContainsKey('Name')) {
101+
if ( $MyInvocation.Line -match "\s-ServiceHealth\s") {
102+
Write-Warning -Message "The parameter alias ServiceHealth will be deprecated in future release. Please use the parameter Name instead"
103+
}
104+
}
100105

101106
$NewServiceClient_params = @{
102107
FullClientTypeName = 'Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient'
@@ -128,6 +133,7 @@ function Get-AzsRPHealth {
128133
$Location = $ArmResourceIdParameterValues['region']
129134
$Name = $ArmResourceIdParameterValues['serviceHealth']
130135
} else {
136+
131137
if ([System.String]::IsNullOrEmpty($Location)) {
132138
$Location = (Get-AzureRMLocation).Location
133139
}
@@ -171,6 +177,7 @@ function Get-AzsRPHealth {
171177
$null
172178
}))
173179
} elseif ('Get' -eq $PsCmdlet.ParameterSetName -or 'ResourceId' -eq $PsCmdlet.ParameterSetName) {
180+
$Name = Get-ResourceNameSuffix -ResourceName $Name
174181
Write-Verbose -Message 'Performing operation GetWithHttpMessagesAsync on $InfrastructureInsightsAdminClient.'
175182
$TaskResult = $InfrastructureInsightsAdminClient.ServiceHealths.GetWithHttpMessagesAsync($ResourceGroupName, $Location, $Name)
176183
} else {

src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsRegionHealth.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ function Get-AzsRegionHealth {
8282

8383
Process {
8484

85-
86-
8785
$NewServiceClient_params = @{
8886
FullClientTypeName = 'Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient'
8987
}
@@ -119,6 +117,7 @@ function Get-AzsRegionHealth {
119117
$ResourceGroupName = "System.$Location"
120118
}
121119
} else {
120+
122121
if ([System.String]::IsNullOrEmpty($Location)) {
123122
$Location = (Get-AzureRMLocation).Location
124123
}
@@ -155,6 +154,7 @@ function Get-AzsRegionHealth {
155154
}
156155
return
157156
}
157+
158158
if ('List' -eq $PsCmdlet.ParameterSetName) {
159159
Write-Verbose -Message 'Performing operation ListWithHttpMessagesAsync on $InfrastructureInsightsAdminClient.'
160160
$TaskResult = $InfrastructureInsightsAdminClient.RegionHealths.ListWithHttpMessagesAsync($ResourceGroupName, $(if ($oDataQuery) {

src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsRegistrationHealth.ps1

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the MIT License. See License.txt in the project root for license
1010
.DESCRIPTION
1111
Returns a list of each resource's health under a service.
1212
13-
.PARAMETER ServiceRegistrationId
13+
.PARAMETER ServiceRegistrationName
1414
Service registration id.
1515
1616
.PARAMETER Filter
@@ -37,13 +37,13 @@ Licensed under the MIT License. See License.txt in the project root for license
3737
3838
.EXAMPLE
3939
40-
PS C:\> Get-AzsRegistrationHealth -ServiceRegistrationId e56bc7b8-c8b5-4e25-b00c-4f951effb22c
40+
PS C:\> Get-AzsRegistrationHealth -ServiceRegistrationName e56bc7b8-c8b5-4e25-b00c-4f951effb22c
4141
4242
Returns a list of each resource's health under a service.
4343
4444
.EXAMPLE
4545
46-
PS C:\> Get-AzsRPHealth | Where {$_.NamespaceProperty -eq 'Microsoft.Fabric.Admin'} | % { Get-AzsRegistrationHealth -ServiceRegistrationId $_.RegistrationId } | select ResourceName, HealthState
46+
PS C:\> Get-AzsRPHealth | Where {$_.NamespaceProperty -eq 'Microsoft.Fabric.Admin'} | % { Get-AzsRegistrationHealth -ServiceRegistrationName $_.RegistrationId } | select ResourceName, HealthState
4747
4848
Returns health status under a for Microsoft.Fabric.Admin.
4949
#>
@@ -55,13 +55,15 @@ function Get-AzsRegistrationHealth {
5555
[Parameter(Mandatory = $true, ParameterSetName = 'Get')]
5656
[Parameter(Mandatory = $true, ParameterSetName = 'List')]
5757
[ValidateNotNullOrEmpty()]
58+
[Alias('ServiceRegistrationId')]
5859
[System.String]
59-
$ServiceRegistrationId,
60+
$ServiceRegistrationName,
6061

6162
[Parameter(Mandatory = $true, ParameterSetName = 'Get')]
6263
[ValidateNotNullOrEmpty()]
64+
[Alias('ResourceRegistrationId')]
6365
[System.String]
64-
$ResourceRegistrationId,
66+
$Name,
6567

6668
[Parameter(Mandatory = $false, ParameterSetName = 'Get')]
6769
[Parameter(Mandatory = $false, ParameterSetName = 'List')]
@@ -108,7 +110,17 @@ function Get-AzsRegistrationHealth {
108110

109111
Process {
110112

113+
if ($PSBoundParameters.ContainsKey('Name')) {
114+
if ( $MyInvocation.Line -match "\s-ResourceRegistrationId\s") {
115+
Write-Warning -Message "The parameter alias ResourceRegistrationId will be deprecated in future release. Please use the parameter Name instead"
116+
}
117+
}
111118

119+
if ($PSBoundParameters.ContainsKey('ServiceRegistrationName')) {
120+
if ( $MyInvocation.Line -match "\s-ServiceRegistrationId\s") {
121+
Write-Warning -Message "The parameter alias ServiceRegistrationId will be deprecated in future release. Please use the parameter ServiceRegistrationName instead"
122+
}
123+
}
112124

113125
$NewServiceClient_params = @{
114126
FullClientTypeName = 'Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient'
@@ -132,16 +144,19 @@ function Get-AzsRegistrationHealth {
132144

133145
if ('ResourceId' -eq $PsCmdlet.ParameterSetName) {
134146
$GetArmResourceIdParameterValue_params = @{
135-
IdTemplate = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{region}/serviceHealths/{serviceRegistrationId}/resourceHealths/{resourceRegistrationId}'
147+
IdTemplate = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{region}/serviceHealths/{ServiceRegistrationName}/resourceHealths/{Name}'
136148
}
137149
$GetArmResourceIdParameterValue_params['Id'] = $ResourceId
138150
$ArmResourceIdParameterValues = Get-ArmResourceIdParameterValue @GetArmResourceIdParameterValue_params
139151

140152
$ResourceGroupName = $ArmResourceIdParameterValues['resourceGroupName']
141153
$Location = $ArmResourceIdParameterValues['region']
142-
$serviceRegistrationId = $ArmResourceIdParameterValues['serviceRegistrationId']
143-
$resourceRegistrationId = $ArmResourceIdParameterValues['resourceRegistrationId']
154+
$ServiceRegistrationName = $ArmResourceIdParameterValues['ServiceRegistrationName']
155+
$Name = $ArmResourceIdParameterValues['Name']
144156
} else {
157+
158+
$ServiceRegistrationName = Get-ResourceNameSuffix -ResourceName $ServiceRegistrationName
159+
145160
if ([System.String]::IsNullOrEmpty($Location)) {
146161
$Location = (Get-AzureRMLocation).Location
147162
}
@@ -153,7 +168,7 @@ function Get-AzsRegistrationHealth {
153168
$filterInfos = @(
154169
@{
155170
'Type' = 'powershellWildcard'
156-
'Value' = $ResourceRegistrationId
171+
'Value' = $Name
157172
'Property' = 'Name'
158173
})
159174
$applicableFilters = Get-ApplicableFilters -Filters $filterInfos
@@ -181,14 +196,15 @@ function Get-AzsRegistrationHealth {
181196
}
182197
if ('List' -eq $PsCmdlet.ParameterSetName) {
183198
Write-Verbose -Message 'Performing operation ListWithHttpMessagesAsync on $InfrastructureInsightsAdminClient.'
184-
$TaskResult = $InfrastructureInsightsAdminClient.ResourceHealths.ListWithHttpMessagesAsync($ResourceGroupName, $Location, $ServiceRegistrationId, $(if ($oDataQuery) {
199+
$TaskResult = $InfrastructureInsightsAdminClient.ResourceHealths.ListWithHttpMessagesAsync($ResourceGroupName, $Location, $ServiceRegistrationName, $(if ($oDataQuery) {
185200
New-Object -TypeName "Microsoft.Rest.Azure.OData.ODataQuery``1[Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models.ResourceHealth]" -ArgumentList $oDataQuery
186201
} else {
187202
$null
188203
}))
189204
} elseif ('Get' -eq $PsCmdlet.ParameterSetName -or 'ResourceId' -eq $PsCmdlet.ParameterSetName) {
205+
$Name = Get-ResourceNameSuffix -ResourceName $Name
190206
Write-Verbose -Message 'Performing operation GetWithHttpMessagesAsync on $InfrastructureInsightsAdminClient.'
191-
$TaskResult = $InfrastructureInsightsAdminClient.ResourceHealths.GetWithHttpMessagesAsync($ResourceGroupName, $Location, $ServiceRegistrationId, $ResourceRegistrationId, $(if ($PSBoundParameters.ContainsKey('Filter')) {
207+
$TaskResult = $InfrastructureInsightsAdminClient.ResourceHealths.GetWithHttpMessagesAsync($ResourceGroupName, $Location, $ServiceRegistrationName, $Name, $(if ($PSBoundParameters.ContainsKey('Filter')) {
192208
$Filter
193209
} else {
194210
[NullString]::Value

src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Get-ApplicableFilters.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Get-ApplicableFilters {
2121
$Filters
2222
)
2323

24-
$ErrorActionPreference = 'Stop'
24+
2525
foreach ($filter in $Filters) {
2626
$res = @{
2727
Filter = $filter
@@ -31,7 +31,7 @@ function Get-ApplicableFilters {
3131
if (Test-WildcardFilter -Filter $filter) {
3232
$res['Strict'] = $true
3333
}
34-
}
34+
}
3535
elseif ($filter.Type -eq 'equalityOperator') {
3636
if (Test-EqualityFilter -Filter $filter) {
3737
$res['Strict'] = $true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
function Get-ResourceNameSuffix {
3+
param(
4+
[string]$ResourceName
5+
)
6+
if ($null -ne $ResourceName -and $ResourceName.Contains('/')) {
7+
$ResourceName = $ResourceName.Split("/")[-1]
8+
}
9+
return $ResourceName
10+
}

src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Get-TaskResult.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ function Get-TaskResult {
5959
} catch {
6060
# Catch exception so no output.
6161
} finally {
62-
throw $Exception
62+
Write-Error -Exception $Exception
6363
}
6464
}
6565

66-
$ErrorActionPreference = 'Stop'
66+
6767
$null = $TaskResult.AsyncWaitHandle.WaitOne()
6868
Write-Debug -Message "$($TaskResult | Out-String)"
6969

src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Test-FilteredResult.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Test-FilteredResult {
2727
$Filter
2828
)
2929

30-
$ErrorActionPreference = 'Stop'
30+
3131
if ($Filter.Type -eq 'wildcard') {
3232
Test-WildcardFilterOnResult -Filter $Filter -Result $Result
3333
} elseif ($Filter.Type -eq 'equalityOperator') {

src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/Azs.InfrastructureInsights.Admin.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@
6565
</ProjectReference>
6666
</ItemGroup>
6767
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
68-
</Project>
68+
</Project>
Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Hyak.Common" version="1.0.3" targetFramework="net45" />
4-
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
5-
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
6-
<package id="Microsoft.Azure.Gallery" version="2.6.2-preview" targetFramework="net45" />
7-
<package id="Microsoft.Azure.Management.Authorization" version="1.0.2" targetFramework="net45" />
8-
<package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" />
9-
<package id="Microsoft.Azure.Management.ServiceBus" version="1.0.0" targetFramework="net452" />
10-
<package id="Microsoft.Azure.Test.Framework" version="1.0.6179.26854-prerelease" targetFramework="net45" />
11-
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.7.0" targetFramework="net45" />
12-
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net45" />
13-
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net45" />
14-
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />
15-
<package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="2.28.3" targetFramework="net45" />
16-
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="net45" />
17-
<package id="Microsoft.Rest.ClientRuntime" version="2.3.8" targetFramework="net45" />
18-
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.7" targetFramework="net452" />
19-
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.2.12" targetFramework="net452" />
20-
<package id="Microsoft.Rest.ClientRuntime.Azure.TestFramework" version="1.6.0" targetFramework="net45" />
21-
<package id="Moq" version="4.2.1510.2205" targetFramework="net45" />
22-
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
23-
<package id="xunit" version="2.1.0" targetFramework="net45" />
24-
<package id="xunit.abstractions" version="2.0.0" targetFramework="net45" />
25-
<package id="xunit.assert" version="2.1.0" targetFramework="net45" />
26-
<package id="xunit.core" version="2.1.0" targetFramework="net45" />
27-
<package id="xunit.extensibility.core" version="2.1.0" targetFramework="net45" />
28-
<package id="xunit.extensibility.execution" version="2.1.0" targetFramework="net45" />
29-
<package id="xunit.runner.visualstudio" version="2.1.0" targetFramework="net45" />
30-
</packages>
3+
<package id="Microsoft.AzureStack.Management.InfrastructureInsights.Admin" version="0.2.0-preview" targetFramework="net452" />
4+
</packages>

src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/src/Alert.Tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ InModuleScope Azs.InfrastructureInsights.Admin {
154154
}
155155
}
156156

157+
AfterEach {
158+
$global:Client = $null
159+
}
160+
157161

158162
it "TestListAlerts" -Skip:$('TestListAlerts' -in $global:SkippedTests) {
159163
$global:TestName = 'TestListAlerts'

src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/src/Common.ps1

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,19 @@
1212
# limitations under the License.
1313
# ----------------------------------------------------------------------------------
1414

15+
$global:SkippedTests = @()
16+
1517
$global:ResourceGroupName = "System.local"
1618
$global:Location = "local"
1719

18-
function Extract-Name {
19-
param(
20-
$Name
21-
)
22-
$Name = $Name.Split('/')
23-
return $Name[-1]
24-
}
20+
$global:Client = $null
2521

2622
if (-not $global:RunRaw) {
2723
$scriptBlock = {
28-
Get-MockClient -ClassName 'InfrastructureInsightsAdminClient' -TestName $global:TestName
24+
if ($null -eq $global:Client) {
25+
$global:Client = Get-MockClient -ClassName 'InfrastructureInsightsAdminClient' -TestName $global:TestName
26+
}
27+
$global:Client
2928
}
3029
Mock New-ServiceClient $scriptBlock -ModuleName $global:ModuleName
3130
}

0 commit comments

Comments
 (0)