diff --git a/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin.csproj b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin.csproj
index c953c24b25d3..c1e0afab6770 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin.csproj
+++ b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin.csproj
@@ -40,8 +40,8 @@
false
-
- ..\..\..\packages\Microsoft.AzureStack.Management.Fabric.Admin.0.2.0-preview\lib\net452\Microsoft.AzureStack.Management.Fabric.Admin.dll
+
+ ..\..\..\packages\Microsoft.AzureStack.Management.Fabric.Admin.1.8.0-preview\lib\net452\Microsoft.AzureStack.Management.Fabric.Admin.dll
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Azs.Fabric.Admin.psd1 b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Azs.Fabric.Admin.psd1
index 5ce475661a87..70bb4d9f7ef7 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Azs.Fabric.Admin.psd1
+++ b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Azs.Fabric.Admin.psd1
@@ -17,7 +17,7 @@ Licensed under the MIT License. See License.txt in the project root for license
RootModule = 'Azs.Fabric.Admin.psm1'
# Version number of this module.
- ModuleVersion = '0.2.1'
+ ModuleVersion = '0.3.0'
# Supported PSEditions
# CompatiblePSEditions = @()
@@ -81,14 +81,15 @@ Licensed under the MIT License. See License.txt in the project root for license
'Get-AzsSlbMuxInstance', 'Get-AzsScaleUnit', 'New-AzsIpPool',
'Start-AzsInfrastructureRoleInstance', 'Get-AzsMacAddressPool',
'Get-AzsEdgeGatewayPool', 'Restart-AzsInfrastructureRole',
- 'Get-AzsInfrastructureVolume', 'Enable-AzsScaleUnitNode',
+ 'Get-AzsVolume', 'Enable-AzsScaleUnitNode',
'Get-AzsInfrastructureRole', 'Get-AzsIpPool', 'Get-AzsLogicalSubnet',
'Get-AzsEdgeGateway', 'Get-AzsInfrastructureLocation',
'Get-AzsStoragePool', 'Suspend-AzsInfrastructureRoleInstance',
'Start-AzsScaleUnitNode', 'Get-AzsInfrastructureRoleInstance',
'Repair-AzsScaleUnitNode', 'Stop-AzsInfrastructureRoleInstance',
'Stop-AzsScaleUnitNode', 'Add-AzsScaleUnitNode',
- 'New-AzsScaleUnitNodeObject'
+ 'New-AzsScaleUnitNodeObject', 'Get-AzsDrive',
+ 'Get-AzsStorageSubSystem'
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()
@@ -97,7 +98,9 @@ Licensed under the MIT License. See License.txt in the project root for license
# VariablesToExport = @()
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
- AliasesToExport = @()
+ AliasesToExport = @(
+ 'Get-AzsInfrastructureVolume'
+ )
# DSC resources to export from this module
# DscResourcesToExport = @()
@@ -126,9 +129,13 @@ Licensed under the MIT License. See License.txt in the project root for license
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '## 2018.10.28
- * Bug fixes
- * Fixed a bug in Add-AzsScaleUnitNode
+ ReleaseNotes = '## 2018.11.5
+ * New cmdlet (The features are supported by Azure Stack 1811+)
+ * Get-AzsDrive
+ * Get-AzsVolume
+ * Get-AzsStorageSubSystem
+ * Deprecation
+ * Get-AzsInfrastructureVolume is an alias now to the cmdlet Get-AzsVolume
'
} # End of PSData hashtable
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/ChangeLog.md b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/ChangeLog.md
index ecd71ca1a9f6..d982d544a5ba 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/ChangeLog.md
+++ b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/ChangeLog.md
@@ -19,6 +19,48 @@
-->
## Current Release
+## Version 0.3.0
+* New cmdlet (The features are supported by Azure Stack 1811+)
+ * Get-AzsDrive
+ * Get-AzsVolume
+ * Get-AzsStorageSubSystem
+* Deprecation
+ * Get-AzsInfrastructureVolume is an alias now to the cmdlet Get-AzsVolume
+
## Version 0.2.1
* Bug fixes
* Fixed a bug in Add-AzsScaleUnitNode
+
+## Version 0.2.0
+* New Module dependencies
+ * AzureRM.Profile
+ * AzureRM.Resources
+* New cmdlet
+ * Add-AzsScaleUnitNode
+ * New-AzsScaleUnitNodeObject
+* Support handling names of nested resources
+ * Add-AzsScaleUnitNode
+ * Disable-AzsScaleUnitNode
+ * Enable-AzsScaleUnitNode
+ * Get-AzsEdgeGateway
+ * Get-AzsEdgeGatewayPool
+ * Get-AzsInfrastructureRole
+ * Get-AzsInfrastructureRoleInstance
+ * Get-AzsInfrastructureShare
+ * Get-AzsInfrastructureVolume
+ * Get-AzsIpPool
+ * Get-AzsLogicalNetwork
+ * Get-AzsLogicalSubnet
+ * Get-AzsMacAddressPool
+ * Get-AzsScaleUnit
+ * Get-AzsScaleUnitNode
+ * Get-AzsSlbMuxInstance
+ * Get-AzsStoragePool
+ * Get-AzsStorageSystem
+ * Repair-AzsScaleUnitNode
+ * Restart-AzsInfrastructureRole
+ * Restart-AzsInfrastructureRoleInstance
+ * Start-AzsInfrastructureRoleInstance
+ * Start-AzsScaleUnitNode
+ * Stop-AzsInfrastructureRoleInstance
+ * Stop-AzsScaleUnitNode
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsDrive.ps1 b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsDrive.ps1
new file mode 100644
index 000000000000..e0be6924804e
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsDrive.ps1
@@ -0,0 +1,248 @@
+<#
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the MIT License. See License.txt in the project root for license information.
+#>
+
+<#
+.SYNOPSIS
+ Returns a list of all storage drives for a given cluster.
+
+.DESCRIPTION
+ Returns a list of all storage drives for a given cluster.
+
+.PARAMETER Name
+ Name of the storage drive.
+
+.PARAMETER StorageSubSystem
+ Storage subsystem in which the drive is located.
+
+.PARAMETER ScaleUnit
+ Name of the scale unit.
+
+.PARAMETER Location
+ Location of the resource.
+
+.PARAMETER ResourceGroupName
+ Resource group in which the resource provider has been registered.
+
+.PARAMETER ResourceId
+ The resource id.
+
+.PARAMETER Filter
+ OData filter parameter.
+
+.PARAMETER Skip
+ Skip the first N items as specified by the parameter value.
+
+.PARAMETER Top
+ Return the top N items as specified by the parameter value. Applies after the -Skip parameter.
+
+.EXAMPLE
+
+ PS C:\> Get-AzsDrive -ScaleUnit S-Cluster -StorageSubSystem S-Cluster.azurestack.local
+
+ Get a list of all storage drives for a given cluster.
+
+.EXAMPLE
+
+ PS C:\> Get-AzsDrive -ScaleUnit S-Cluster -StorageSubSystem S-Cluster.azurestack.local -Name a654528c-60bb-18e1-457c-51b7cdb7e14a
+
+ Get a storage drive by name for a given cluster.
+
+#>
+function Get-AzsDrive {
+ [OutputType([Microsoft.AzureStack.Management.Fabric.Admin.Models.Drive])]
+ [CmdletBinding(DefaultParameterSetName = 'List')]
+ param(
+ [Parameter(Mandatory = $true, ParameterSetName = 'Get')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $Name,
+
+ [Parameter(Mandatory = $true, ParameterSetName = 'Get')]
+ [Parameter(Mandatory = $true, ParameterSetName = 'List')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $StorageSubSystem,
+
+ [Parameter(Mandatory = $true, ParameterSetName = 'Get')]
+ [Parameter(Mandatory = $true, ParameterSetName = 'List')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $ScaleUnit,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'Get')]
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [System.String]
+ $Location,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'Get')]
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [ValidateLength(1, 90)]
+ [System.String]
+ $ResourceGroupName,
+
+ [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'ResourceId')]
+ [Alias('id')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $ResourceId,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [System.String]
+ $Filter,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [int]
+ $Skip = -1,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [int]
+ $Top = -1
+ )
+
+ Begin {
+ Initialize-PSSwaggerDependencies -Azure
+ $tracerObject = $null
+ if (('continue' -eq $DebugPreference) -or ('inquire' -eq $DebugPreference)) {
+ $oldDebugPreference = $global:DebugPreference
+ $global:DebugPreference = "continue"
+ $tracerObject = New-PSSwaggerClientTracing
+ Register-PSSwaggerClientTracing -TracerObject $tracerObject
+ }
+ }
+
+ Process {
+
+ $StorageSubSystem = Get-ResourceNameSuffix -ResourceName $StorageSubSystem
+ $ScaleUnit = Get-ResourceNameSuffix -ResourceName $ScaleUnit
+
+ $NewServiceClient_params = @{
+ FullClientTypeName = 'Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient'
+ }
+
+ $GlobalParameterHashtable = @{}
+ $NewServiceClient_params['GlobalParameterHashtable'] = $GlobalParameterHashtable
+
+ $GlobalParameterHashtable['SubscriptionId'] = $null
+ if ($PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $GlobalParameterHashtable['SubscriptionId'] = $PSBoundParameters['SubscriptionId']
+ }
+
+ $FabricAdminClient = New-ServiceClient @NewServiceClient_params
+
+ $oDataQuery = ""
+ if ($Filter) {
+ $oDataQuery += "&`$Filter=$Filter"
+ }
+ $oDataQuery = $oDataQuery.Trim("&")
+
+ if ('ResourceId' -eq $PsCmdlet.ParameterSetName) {
+ $GetArmResourceIdParameterValue_params = @{
+ IdTemplate = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/storageSubSystems/{storageSubSystem}/drives/{drive}'
+ }
+
+ $GetArmResourceIdParameterValue_params['Id'] = $ResourceId
+ $ArmResourceIdParameterValues = Get-ArmResourceIdParameterValue @GetArmResourceIdParameterValue_params
+
+ $ResourceGroupName = $ArmResourceIdParameterValues['resourceGroupName']
+ $location = $ArmResourceIdParameterValues['location']
+ $ScaleUnit = $ArmResourceIdParameterValues['scaleUnit']
+ $StorageSubSystem = $ArmResourceIdParameterValues['storageSubSystem']
+ $Name = $ArmResourceIdParameterValues['drive']
+ } else {
+ if ([System.String]::IsNullOrEmpty($Location)) {
+ $Location = (Get-AzureRMLocation).Location
+ }
+ if ([System.String]::IsNullOrEmpty($ResourceGroupName)) {
+ $ResourceGroupName = "System.$Location"
+ }
+ }
+
+ $filterInfos = @(
+ @{
+ 'Type' = 'powershellWildcard'
+ 'Value' = $Name
+ 'Property' = 'Name'
+ })
+ $applicableFilters = Get-ApplicableFilters -Filters $filterInfos
+ if ($applicableFilters | Where-Object { $_.Strict }) {
+ Write-Verbose -Message 'Performing server-side call ''Get-AzsDrive -'''
+ $serverSideCall_params = @{
+
+ }
+
+ $serverSideResults = Get-AzsDrive @serverSideCall_params
+ foreach ($serverSideResult in $serverSideResults) {
+ $valid = $true
+ foreach ($applicableFilter in $applicableFilters) {
+ if (-not (Test-FilteredResult -Result $serverSideResult -Filter $applicableFilter.Filter)) {
+ $valid = $false
+ break
+ }
+ }
+
+ if ($valid) {
+ $serverSideResult
+ }
+ }
+ return
+ }
+ if ('Get' -eq $PsCmdlet.ParameterSetName -or 'ResourceId' -eq $PsCmdlet.ParameterSetName) {
+ $Name = Get-ResourceNameSuffix -ResourceName $Name
+ Write-Verbose -Message 'Performing operation GetWithHttpMessagesAsync on $FabricAdminClient.'
+ $TaskResult = $FabricAdminClient.Drives.GetWithHttpMessagesAsync($ResourceGroupName, $Location, $ScaleUnit, $StorageSubSystem, $Name)
+ } elseif ('List' -eq $PsCmdlet.ParameterSetName) {
+ Write-Verbose -Message 'Performing operation ListWithHttpMessagesAsync on $FabricAdminClient.'
+ $TaskResult = $FabricAdminClient.Drives.ListWithHttpMessagesAsync($ResourceGroupName, $Location, $ScaleUnit, $StorageSubSystem, $(if ($oDataQuery) {
+ New-Object -TypeName "Microsoft.Rest.Azure.OData.ODataQuery``1[Microsoft.AzureStack.Management.Fabric.Admin.Models.Drive]" -ArgumentList $oDataQuery
+ } else {
+ $null
+ }))
+ } else {
+ Write-Verbose -Message 'Failed to map parameter set to operation method.'
+ throw 'Module failed to find operation to execute.'
+ }
+
+ if ($TaskResult) {
+ $GetTaskResult_params = @{
+ TaskResult = $TaskResult
+ }
+
+ $TopInfo = @{
+ 'Count' = 0
+ 'Max' = $Top
+ }
+ $GetTaskResult_params['TopInfo'] = $TopInfo
+ $SkipInfo = @{
+ 'Count' = 0
+ 'Max' = $Skip
+ }
+ $GetTaskResult_params['SkipInfo'] = $SkipInfo
+ $PageResult = @{
+ 'Result' = $null
+ }
+ $GetTaskResult_params['PageResult'] = $PageResult
+ $GetTaskResult_params['PageType'] = 'Microsoft.Rest.Azure.IPage[Microsoft.AzureStack.Management.Fabric.Admin.Models.Drive]' -as [Type]
+ Get-TaskResult @GetTaskResult_params
+
+ Write-Verbose -Message 'Flattening paged results.'
+ while ($PageResult -and ($PageResult.ContainsKey('Page')) -and (Get-Member -InputObject $PageResult.Page -Name 'nextPageLink') -and $PageResult.Page.'nextPageLink' -and (($TopInfo -eq $null) -or ($TopInfo.Max -eq -1) -or ($TopInfo.Count -lt $TopInfo.Max))) {
+ Write-Debug -Message "Retrieving next page: $($PageResult.Page.'nextPageLink')"
+ $TaskResult = $FabricAdminClient.Drives.ListNextWithHttpMessagesAsync($PageResult.Page.'nextPageLink')
+ $PageResult.Page = $null
+ $GetTaskResult_params['TaskResult'] = $TaskResult
+ $GetTaskResult_params['PageResult'] = $PageResult
+ Get-TaskResult @GetTaskResult_params
+ }
+ }
+ }
+
+ End {
+ if ($tracerObject) {
+ $global:DebugPreference = $oldDebugPreference
+ Unregister-PSSwaggerClientTracing -TracerObject $tracerObject
+ }
+ }
+}
+
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsStorageSubSystem.ps1 b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsStorageSubSystem.ps1
new file mode 100644
index 000000000000..ce4aae94cf0a
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsStorageSubSystem.ps1
@@ -0,0 +1,238 @@
+<#
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the MIT License. See License.txt in the project root for license information.
+#>
+
+<#
+.SYNOPSIS
+ Returns a list of all storage subsystems for a location.
+
+.DESCRIPTION
+ Returns a list of all storage subsystems for a location.
+
+.PARAMETER Name
+ Name of the storage subsystem.
+
+.PARAMETER ScaleUnit
+ Name of the scale unit.
+
+.PARAMETER Location
+ Location of the resource.
+
+.PARAMETER ResourceGroupName
+ Resource group in which the resource provider has been registered.
+
+.PARAMETER ResourceId
+ The resource id.
+
+.PARAMETER Filter
+ OData filter parameter.
+
+.PARAMETER Skip
+ Skip the first N items as specified by the parameter value.
+
+.PARAMETER Top
+ Return the top N items as specified by the parameter value. Applies after the -Skip parameter.
+
+.EXAMPLE
+
+ PS C:\> Get-AzsStorageSubSystem -ScaleUnit S-Cluster
+
+ Get all storage subsystems from a location.
+
+.EXAMPLE
+
+ PS C:\> Get-AzsStorageSubSystem -ScaleUnit S-Cluster -Name S-Cluster.azurestack.local
+
+ Get a storage subsystem given a location and name.
+
+#>
+function Get-AzsStorageSubSystem {
+ [OutputType([Microsoft.AzureStack.Management.Fabric.Admin.Models.StorageSubSystem])]
+ [CmdletBinding(DefaultParameterSetName = 'List')]
+ param(
+
+ [Parameter(Mandatory = $true, ParameterSetName = 'Get', Position = 0)]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $Name,
+
+ [Parameter(Mandatory = $true, ParameterSetName = 'Get')]
+ [Parameter(Mandatory = $true, ParameterSetName = 'List')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $ScaleUnit,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [Parameter(Mandatory = $false, ParameterSetName = 'Get')]
+ [System.String]
+ $Location,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [Parameter(Mandatory = $false, ParameterSetName = 'Get')]
+ [ValidateLength(1, 90)]
+ [System.String]
+ $ResourceGroupName,
+
+ [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'ResourceId')]
+ [Alias('id')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $ResourceId,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [System.String]
+ $Filter,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [int]
+ $Skip = -1,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [int]
+ $Top = -1
+ )
+
+ Begin {
+ Initialize-PSSwaggerDependencies -Azure
+ $tracerObject = $null
+ if (('continue' -eq $DebugPreference) -or ('inquire' -eq $DebugPreference)) {
+ $oldDebugPreference = $global:DebugPreference
+ $global:DebugPreference = "continue"
+ $tracerObject = New-PSSwaggerClientTracing
+ Register-PSSwaggerClientTracing -TracerObject $tracerObject
+ }
+ }
+
+ Process {
+
+ $ScaleUnit = Get-ResourceNameSuffix -ResourceName $ScaleUnit
+
+ $NewServiceClient_params = @{
+ FullClientTypeName = 'Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient'
+ }
+
+ $GlobalParameterHashtable = @{}
+ $NewServiceClient_params['GlobalParameterHashtable'] = $GlobalParameterHashtable
+
+ $GlobalParameterHashtable['SubscriptionId'] = $null
+ if ($PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $GlobalParameterHashtable['SubscriptionId'] = $PSBoundParameters['SubscriptionId']
+ }
+
+ $FabricAdminClient = New-ServiceClient @NewServiceClient_params
+
+ $oDataQuery = ""
+ if ($Filter) {
+ $oDataQuery += "&`$Filter=$Filter"
+ }
+ $oDataQuery = $oDataQuery.Trim("&")
+
+ if ('ResourceId' -eq $PsCmdlet.ParameterSetName) {
+ $GetArmResourceIdParameterValue_params = @{
+ IdTemplate = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/storageSubSystems/{storageSubSystem}'
+ }
+
+ $GetArmResourceIdParameterValue_params['Id'] = $ResourceId
+ $ArmResourceIdParameterValues = Get-ArmResourceIdParameterValue @GetArmResourceIdParameterValue_params
+
+ $ResourceGroupName = $ArmResourceIdParameterValues['resourceGroupName']
+ $location = $ArmResourceIdParameterValues['location']
+ $ScaleUnit = $ArmResourceIdParameterValues['scaleUnit']
+ $Name = $ArmResourceIdParameterValues['storageSubSystem']
+ } else {
+ if ([System.String]::IsNullOrEmpty($Location)) {
+ $Location = (Get-AzureRMLocation).Location
+ }
+ if ([System.String]::IsNullOrEmpty($ResourceGroupName)) {
+ $ResourceGroupName = "System.$Location"
+ }
+ }
+
+ $filterInfos = @(
+ @{
+ 'Type' = 'powershellWildcard'
+ 'Value' = $Name
+ 'Property' = 'Name'
+ })
+ $applicableFilters = Get-ApplicableFilters -Filters $filterInfos
+ if ($applicableFilters | Where-Object { $_.Strict }) {
+ Write-Verbose -Message 'Performing server-side call ''Get-AzsStorageSubSystem -'''
+ $serverSideCall_params = @{
+
+ }
+
+ $serverSideResults = Get-AzsStorageSubSystem @serverSideCall_params
+ foreach ($serverSideResult in $serverSideResults) {
+ $valid = $true
+ foreach ($applicableFilter in $applicableFilters) {
+ if (-not (Test-FilteredResult -Result $serverSideResult -Filter $applicableFilter.Filter)) {
+ $valid = $false
+ break
+ }
+ }
+
+ if ($valid) {
+ $serverSideResult
+ }
+ }
+ return
+ }
+ if ('Get' -eq $PsCmdlet.ParameterSetName -or 'ResourceId' -eq $PsCmdlet.ParameterSetName) {
+ $Name = Get-ResourceNameSuffix -ResourceName $Name
+ Write-Verbose -Message 'Performing operation GetWithHttpMessagesAsync on $FabricAdminClient.'
+ $TaskResult = $FabricAdminClient.StorageSubSystems.GetWithHttpMessagesAsync($ResourceGroupName, $Location, $ScaleUnit, $Name)
+ } elseif ('List' -eq $PsCmdlet.ParameterSetName) {
+ Write-Verbose -Message 'Performing operation ListWithHttpMessagesAsync on $FabricAdminClient.'
+ $TaskResult = $FabricAdminClient.StorageSubSystems.ListWithHttpMessagesAsync($ResourceGroupName, $Location, $ScaleUnit, $(if ($oDataQuery) {
+ New-Object -TypeName "Microsoft.Rest.Azure.OData.ODataQuery``1[Microsoft.AzureStack.Management.Fabric.Admin.Models.StorageSubSystem]" -ArgumentList $oDataQuery
+ } else {
+ $null
+ }))
+ } else {
+ Write-Verbose -Message 'Failed to map parameter set to operation method.'
+ throw 'Module failed to find operation to execute.'
+ }
+
+ if ($TaskResult) {
+ $GetTaskResult_params = @{
+ TaskResult = $TaskResult
+ }
+
+ $TopInfo = @{
+ 'Count' = 0
+ 'Max' = $Top
+ }
+ $GetTaskResult_params['TopInfo'] = $TopInfo
+ $SkipInfo = @{
+ 'Count' = 0
+ 'Max' = $Skip
+ }
+ $GetTaskResult_params['SkipInfo'] = $SkipInfo
+ $PageResult = @{
+ 'Result' = $null
+ }
+ $GetTaskResult_params['PageResult'] = $PageResult
+ $GetTaskResult_params['PageType'] = 'Microsoft.Rest.Azure.IPage[Microsoft.AzureStack.Management.Fabric.Admin.Models.StorageSubSystem]' -as [Type]
+ Get-TaskResult @GetTaskResult_params
+
+ Write-Verbose -Message 'Flattening paged results.'
+ while ($PageResult -and ($PageResult.ContainsKey('Page')) -and (Get-Member -InputObject $PageResult.Page -Name 'nextPageLink') -and $PageResult.Page.'nextPageLink' -and (($TopInfo -eq $null) -or ($TopInfo.Max -eq -1) -or ($TopInfo.Count -lt $TopInfo.Max))) {
+ Write-Debug -Message "Retrieving next page: $($PageResult.Page.'nextPageLink')"
+ $TaskResult = $FabricAdminClient.StorageSubSystems.ListNextWithHttpMessagesAsync($PageResult.Page.'nextPageLink')
+ $PageResult.Page = $null
+ $GetTaskResult_params['TaskResult'] = $TaskResult
+ $GetTaskResult_params['PageResult'] = $PageResult
+ Get-TaskResult @GetTaskResult_params
+ }
+ }
+ }
+
+ End {
+ if ($tracerObject) {
+ $global:DebugPreference = $oldDebugPreference
+ Unregister-PSSwaggerClientTracing -TracerObject $tracerObject
+ }
+ }
+}
+
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsVolume.ps1 b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsVolume.ps1
new file mode 100644
index 000000000000..dbc9a17a8c31
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsVolume.ps1
@@ -0,0 +1,253 @@
+<#
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the MIT License. See License.txt in the project root for license information.
+#>
+
+<#
+.SYNOPSIS
+ Returns a list of all storage volumes at a location.
+
+.DESCRIPTION
+ Returns a list of all storage volumes at a location.
+
+.PARAMETER Name
+ Name of the storage volume.
+
+.PARAMETER StorageSubSystem
+ Storage subsystem in which the volume is located.
+
+.PARAMETER ScaleUnit
+ Name of the scale unit.
+
+.PARAMETER Location
+ Location of the resource.
+
+.PARAMETER ResourceGroupName
+ Resource group in which the resource provider has been registered.
+
+.PARAMETER ResourceId
+ The resource id.
+
+.PARAMETER Filter
+ OData filter parameter.
+
+.PARAMETER Skip
+ Skip the first N items as specified by the parameter value.
+
+.PARAMETER Top
+ Return the top N items as specified by the parameter value. Applies after the -Skip parameter.
+
+.EXAMPLE
+
+ PS C:\> Get-AzsVolume -ScaleUnit S-Cluster -StorageSubSystem S-Cluster.azurestack.local
+
+ Get a list of all storage volumes at a given location.
+
+.EXAMPLE
+
+ PS C:\> Get-AzsVolume -ScaleUnit S-Cluster -StorageSubSystem S-Cluster.azurestack.local -Name a42d219b
+
+ Get a storage volume by name at a given location.
+
+#>
+function Get-AzsVolume {
+ [Alias('Get-AzsInfrastructureVolume')]
+ [OutputType([Microsoft.AzureStack.Management.Fabric.Admin.Models.Volume])]
+ [CmdletBinding(DefaultParameterSetName = 'List')]
+ param(
+ [Parameter(Mandatory = $true, ParameterSetName = 'Get')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $Name,
+
+ [Parameter(Mandatory = $true, ParameterSetName = 'Get')]
+ [Parameter(Mandatory = $true, ParameterSetName = 'List')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $StorageSubSystem,
+
+ [Parameter(Mandatory = $true, ParameterSetName = 'Get')]
+ [Parameter(Mandatory = $true, ParameterSetName = 'List')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $ScaleUnit,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'Get')]
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [System.String]
+ $Location,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'Get')]
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [ValidateLength(1, 90)]
+ [System.String]
+ $ResourceGroupName,
+
+ [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'ResourceId')]
+ [Alias('id')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $ResourceId,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [System.String]
+ $Filter,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [int]
+ $Skip = -1,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'List')]
+ [int]
+ $Top = -1
+ )
+
+ Begin {
+ Initialize-PSSwaggerDependencies -Azure
+ $tracerObject = $null
+ if (('continue' -eq $DebugPreference) -or ('inquire' -eq $DebugPreference)) {
+ $oldDebugPreference = $global:DebugPreference
+ $global:DebugPreference = "continue"
+ $tracerObject = New-PSSwaggerClientTracing
+ Register-PSSwaggerClientTracing -TracerObject $tracerObject
+ }
+ }
+
+ Process {
+
+ if ($MyInvocation.InvocationName -eq 'Get-AzsInfrastructureVolume') {
+ Write-Warning "Get-AzsInfrastructureVolume has been deprecated, please use Get-AzsVolume"
+ }
+
+ $StorageSubSystem = Get-ResourceNameSuffix -ResourceName $StorageSubSystem
+ $ScaleUnit = Get-ResourceNameSuffix -ResourceName $ScaleUnit
+
+ $NewServiceClient_params = @{
+ FullClientTypeName = 'Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient'
+ }
+
+ $GlobalParameterHashtable = @{}
+ $NewServiceClient_params['GlobalParameterHashtable'] = $GlobalParameterHashtable
+
+ $GlobalParameterHashtable['SubscriptionId'] = $null
+ if ($PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $GlobalParameterHashtable['SubscriptionId'] = $PSBoundParameters['SubscriptionId']
+ }
+
+ $FabricAdminClient = New-ServiceClient @NewServiceClient_params
+
+ $oDataQuery = ""
+ if ($Filter) {
+ $oDataQuery += "&`$Filter=$Filter"
+ }
+ $oDataQuery = $oDataQuery.Trim("&")
+
+ if ('ResourceId' -eq $PsCmdlet.ParameterSetName) {
+ $GetArmResourceIdParameterValue_params = @{
+ IdTemplate = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/storageSubSystems/{storageSubSystem}/volumes/{volume}'
+ }
+
+ $GetArmResourceIdParameterValue_params['Id'] = $ResourceId
+ $ArmResourceIdParameterValues = Get-ArmResourceIdParameterValue @GetArmResourceIdParameterValue_params
+
+ $ResourceGroupName = $ArmResourceIdParameterValues['resourceGroupName']
+ $location = $ArmResourceIdParameterValues['location']
+ $ScaleUnit = $ArmResourceIdParameterValues['scaleUnit']
+ $StorageSubSystem = $ArmResourceIdParameterValues['storageSubSystem']
+ $Name = $ArmResourceIdParameterValues['volume']
+ } else {
+ if ([System.String]::IsNullOrEmpty($Location)) {
+ $Location = (Get-AzureRMLocation).Location
+ }
+ if ([System.String]::IsNullOrEmpty($ResourceGroupName)) {
+ $ResourceGroupName = "System.$Location"
+ }
+ }
+
+ $filterInfos = @(
+ @{
+ 'Type' = 'powershellWildcard'
+ 'Value' = $Name
+ 'Property' = 'Name'
+ })
+ $applicableFilters = Get-ApplicableFilters -Filters $filterInfos
+ if ($applicableFilters | Where-Object { $_.Strict }) {
+ Write-Verbose -Message 'Performing server-side call ''Get-AzsVolume -'''
+ $serverSideCall_params = @{
+
+ }
+
+ $serverSideResults = Get-AzsVolume @serverSideCall_params
+ foreach ($serverSideResult in $serverSideResults) {
+ $valid = $true
+ foreach ($applicableFilter in $applicableFilters) {
+ if (-not (Test-FilteredResult -Result $serverSideResult -Filter $applicableFilter.Filter)) {
+ $valid = $false
+ break
+ }
+ }
+
+ if ($valid) {
+ $serverSideResult
+ }
+ }
+ return
+ }
+ if ('Get' -eq $PsCmdlet.ParameterSetName -or 'ResourceId' -eq $PsCmdlet.ParameterSetName) {
+ $Name = Get-ResourceNameSuffix -ResourceName $Name
+ Write-Verbose -Message 'Performing operation GetWithHttpMessagesAsync on $FabricAdminClient.'
+ $TaskResult = $FabricAdminClient.Volumes.GetWithHttpMessagesAsync($ResourceGroupName, $Location, $ScaleUnit, $StorageSubSystem, $Name)
+ } elseif ('List' -eq $PsCmdlet.ParameterSetName) {
+ Write-Verbose -Message 'Performing operation ListWithHttpMessagesAsync on $FabricAdminClient.'
+ $TaskResult = $FabricAdminClient.Volumes.ListWithHttpMessagesAsync($ResourceGroupName, $Location, $ScaleUnit, $StorageSubSystem, $(if ($oDataQuery) {
+ New-Object -TypeName "Microsoft.Rest.Azure.OData.ODataQuery``1[Microsoft.AzureStack.Management.Fabric.Admin.Models.Volume]" -ArgumentList $oDataQuery
+ } else {
+ $null
+ }))
+ } else {
+ Write-Verbose -Message 'Failed to map parameter set to operation method.'
+ throw 'Module failed to find operation to execute.'
+ }
+
+ if ($TaskResult) {
+ $GetTaskResult_params = @{
+ TaskResult = $TaskResult
+ }
+
+ $TopInfo = @{
+ 'Count' = 0
+ 'Max' = $Top
+ }
+ $GetTaskResult_params['TopInfo'] = $TopInfo
+ $SkipInfo = @{
+ 'Count' = 0
+ 'Max' = $Skip
+ }
+ $GetTaskResult_params['SkipInfo'] = $SkipInfo
+ $PageResult = @{
+ 'Result' = $null
+ }
+ $GetTaskResult_params['PageResult'] = $PageResult
+ $GetTaskResult_params['PageType'] = 'Microsoft.Rest.Azure.IPage[Microsoft.AzureStack.Management.Fabric.Admin.Models.Volume]' -as [Type]
+ Get-TaskResult @GetTaskResult_params
+
+ Write-Verbose -Message 'Flattening paged results.'
+ while ($PageResult -and ($PageResult.ContainsKey('Page')) -and (Get-Member -InputObject $PageResult.Page -Name 'nextPageLink') -and $PageResult.Page.'nextPageLink' -and (($TopInfo -eq $null) -or ($TopInfo.Max -eq -1) -or ($TopInfo.Count -lt $TopInfo.Max))) {
+ Write-Debug -Message "Retrieving next page: $($PageResult.Page.'nextPageLink')"
+ $TaskResult = $FabricAdminClient.Volumes.ListNextWithHttpMessagesAsync($PageResult.Page.'nextPageLink')
+ $PageResult.Page = $null
+ $GetTaskResult_params['TaskResult'] = $TaskResult
+ $GetTaskResult_params['PageResult'] = $PageResult
+ Get-TaskResult @GetTaskResult_params
+ }
+ }
+ }
+
+ End {
+ if ($tracerObject) {
+ $global:DebugPreference = $oldDebugPreference
+ Unregister-PSSwaggerClientTracing -TracerObject $tracerObject
+ }
+ }
+}
+
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Module/packages.config b/src/StackAdmin/Azs.Fabric.Admin/Module/packages.config
index 21cde80fff78..496cd155ee0e 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Module/packages.config
+++ b/src/StackAdmin/Azs.Fabric.Admin/Module/packages.config
@@ -1,4 +1,4 @@
-
+
-
+
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/Azs.Fabric.Admin.Tests.csproj b/src/StackAdmin/Azs.Fabric.Admin/Tests/Azs.Fabric.Admin.Tests.csproj
index ab8cc47c62b6..b56b316626e4 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Tests/Azs.Fabric.Admin.Tests.csproj
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/Azs.Fabric.Admin.Tests.csproj
@@ -40,8 +40,8 @@
false
-
- ..\..\..\packages\Microsoft.AzureStack.Management.Fabric.Admin.0.2.0-preview\lib\net452\Microsoft.AzureStack.Management.Fabric.Admin.dll
+
+ ..\..\..\packages\Microsoft.AzureStack.Management.Fabric.Admin.1.8.0-preview\lib\net452\Microsoft.AzureStack.Management.Fabric.Admin.dll
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllDrives.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllDrives.json
new file mode 100644
index 000000000000..78d748ae33de
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllDrives.json
@@ -0,0 +1,648 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "32b7a436-4d2a-4ed4-99fa-006532e938fb"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:22 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv817HaDWp4mIU4RJTEHtPvk9uKj+fAGYg2nZS9HUX2RGrmhnrkhd9FdtLa+GFa1iVf1IjiykCqakhBEKxhjWzfUs4FcaAW2HLm37SQACsAFOMrU78tvQBsUbSn4GdO1mwbTFchwIAMd3D2WDX1PjW"
+ ],
+ "x-ms-correlation-request-id": [
+ "16c82fe6-f241-4f3b-ba08-6a74d9d99486"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13786"
+ ],
+ "x-ms-request-id": [
+ "16c82fe6-f241-4f3b-ba08-6a74d9d99486"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093823Z:16c82fe6-f241-4f3b-ba08-6a74d9d99486"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6436e80f-e6f3-4c3a-9888-7ccf08ce7757"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:23 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvm/Tdo+UM4ZM4f80p9cQ5oZhYBUSxUzI7lNshxFi6QJwdH+6W2+vIkHokxoRhTmFcRSgyOebAiFspOxWsX98NGFEqu+aMZgJc3DbB8N2jvAq3Ut5ek9yOjdeELTZzHNotmDvY4C0OcH+IfWG8IuiA"
+ ],
+ "x-ms-correlation-request-id": [
+ "e6af6ca7-3f71-4b82-8685-df89bcae40ff"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13785"
+ ],
+ "x-ms-request-id": [
+ "e6af6ca7-3f71-4b82-8685-df89bcae40ff"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093823Z:e6af6ca7-3f71-4b82-8685-df89bcae40ff"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4561427c-6d94-4467-8469-ff62edce6981"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:23 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvW1Z5lLt3Vzw4bLKAmcycEX4QyavjEuYCe4XOKKoyVq/sCy77T58Om338baAvMcugC6QjxX5L4DENG6n7ZjR5E3US72yASYKHpyalpv5n/Mj/LcQnQN1L+1+Ui1vzQ74X5e2LRTjqgQ3u9G0EKvT6"
+ ],
+ "x-ms-correlation-request-id": [
+ "4d5cd850-d693-41ec-a222-7729e729ca12"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13784"
+ ],
+ "x-ms-request-id": [
+ "4d5cd850-d693-41ec-a222-7729e729ca12"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093823Z:4d5cd850-d693-41ec-a222-7729e729ca12"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzP2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5fecde94-efc7-48bf-83aa-2497241d25c1"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:23 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvgOFa6pMpPkQyZwd7PGTk74PCRmBpSPNBYUY8M28395sfVkKvEtYLcFt3l/DFqCkJBKVxIvgHqi0hga95HRyC6hNEaLEwwE8LSsvQ8LJW3nOwe1L1clD7SZOc2JRVpcbsTf5Ox7RhJ+2nZ4rfq60l"
+ ],
+ "x-ms-correlation-request-id": [
+ "de53dcb4-dc2c-42b1-ad7c-0052f1b33881"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13783"
+ ],
+ "x-ms-request-id": [
+ "de53dcb4-dc2c-42b1-ad7c-0052f1b33881"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093824Z:de53dcb4-dc2c-42b1-ad7c-0052f1b33881"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "4973"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"007a1f8e05dd97022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 2 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/32e17f2a-7982-acb5-617e-15c72e6d50e6\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/32e17f2a-7982-acb5-617e-15c72e6d50e6\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"004b70e0092598022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 6 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/7655049b-26ad-177b-cd33-e27c4b5116bd\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/7655049b-26ad-177b-cd33-e27c4b5116bd\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"0005e3ae06f097022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 3 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/92abda1a-8a17-7015-ca12-a263d4156560\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/92abda1a-8a17-7015-ca12-a263d4156560\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"0069605d091d98022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 5 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/a654528c-60bb-18e1-457c-51b7cdb7e14a\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/a654528c-60bb-18e1-457c-51b7cdb7e14a\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"00eb090104c397022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 1 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/f9e93461-284c-9c7e-9dce-c9f395349cb0\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/f9e93461-284c-9c7e-9dce-c9f395349cb0\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"00582db6081298022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 4 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/17e7660d-36a7-39a4-9215-8912a6099329?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzLzE3ZTc2NjBkLTM2YTctMzlhNC05MjE1LTg5MTJhNjA5OTMyOT9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9af98bd7-d31e-4576-8670-2d708aa8bf98"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:23 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvnLgLPwesgrnyqikJYRkf7/wHUckRcaSKibooqEJPXJ1345jW6Q9Q+ychi9NNcsCeOODgd4hYawyK5RBM91XWy1BqB3FNh3VMyh/3N6llAt9xGCA40QBxm3pD0lbgc82XbcUd+m53kRA7V1tRtH67"
+ ],
+ "x-ms-correlation-request-id": [
+ "9ef1a3bf-0774-4bc6-98cb-a1729699e52c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13782"
+ ],
+ "x-ms-request-id": [
+ "9ef1a3bf-0774-4bc6-98cb-a1729699e52c"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093824Z:9ef1a3bf-0774-4bc6-98cb-a1729699e52c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "826"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"007a1f8e05dd97022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 2 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/32e17f2a-7982-acb5-617e-15c72e6d50e6?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzLzMyZTE3ZjJhLTc5ODItYWNiNS02MTdlLTE1YzcyZTZkNTBlNj9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ee8a3b39-7acc-4c95-9f16-a91ccbedb829"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:23 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv0Bd3uZv/dGCrR205kT8HAwaB0zbhKMMI1WqGfovybbZu15RE1bCiM1fXraY+BO4bhSLnX04UuSippZQSG5Zh1lQUAlMzFa6XbCa4pfg0YjZKzlwYoNsTn7pGSAhglK9YPzaV0ii43JRpaor5QhoE"
+ ],
+ "x-ms-correlation-request-id": [
+ "97b65d3d-573a-4eeb-8972-ead7b3d1ab3a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13781"
+ ],
+ "x-ms-request-id": [
+ "97b65d3d-573a-4eeb-8972-ead7b3d1ab3a"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093824Z:97b65d3d-573a-4eeb-8972-ead7b3d1ab3a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "826"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/32e17f2a-7982-acb5-617e-15c72e6d50e6\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/32e17f2a-7982-acb5-617e-15c72e6d50e6\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"004b70e0092598022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 6 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/7655049b-26ad-177b-cd33-e27c4b5116bd?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzLzc2NTUwNDliLTI2YWQtMTc3Yi1jZDMzLWUyN2M0YjUxMTZiZD9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d6cf50cd-a2f1-4136-8128-c343c78149df"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:23 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvg3Lm80yvuEJF/oL4kk2aUoqwW/TvLVE++ZyuN9Zx9cIwSRXEYzKfvo7YUx/On+6OAUa3UuAWxyEOiXK4PCQdjXo12EmZwIS4gYDsgb5F0So7keH8iminukARdSLSnIu9RVXExlq2+jta0540nHX6"
+ ],
+ "x-ms-correlation-request-id": [
+ "54030d9d-cd0e-432e-95b0-e7f8dcbcb212"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13780"
+ ],
+ "x-ms-request-id": [
+ "54030d9d-cd0e-432e-95b0-e7f8dcbcb212"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093824Z:54030d9d-cd0e-432e-95b0-e7f8dcbcb212"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "826"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/7655049b-26ad-177b-cd33-e27c4b5116bd\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/7655049b-26ad-177b-cd33-e27c4b5116bd\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"0005e3ae06f097022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 3 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/92abda1a-8a17-7015-ca12-a263d4156560?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzLzkyYWJkYTFhLThhMTctNzAxNS1jYTEyLWEyNjNkNDE1NjU2MD9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3e4c5f98-f4d6-41ca-9c6a-b16bc615f1cb"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:24 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvF1p6rZ2x9/EHC7qaEYOHjNVmR0onlzaHlruPfXYs941Njdsgwnkf0hj3nC4qNj4ql7WMH2IBXgEQHp9faHUjNepFp3tUXDXexuKu9eNtrfLjkc/xWtDf+Z6LR5Pu61lt+kxMtwNBmPwEdWSSQUFB"
+ ],
+ "x-ms-correlation-request-id": [
+ "60981494-7ddb-45d0-b6a2-bf1413e2a3a8"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13779"
+ ],
+ "x-ms-request-id": [
+ "60981494-7ddb-45d0-b6a2-bf1413e2a3a8"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093824Z:60981494-7ddb-45d0-b6a2-bf1413e2a3a8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "826"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/92abda1a-8a17-7015-ca12-a263d4156560\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/92abda1a-8a17-7015-ca12-a263d4156560\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"0069605d091d98022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 5 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/a654528c-60bb-18e1-457c-51b7cdb7e14a?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzL2E2NTQ1MjhjLTYwYmItMThlMS00NTdjLTUxYjdjZGI3ZTE0YT9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e742a43a-5421-4b0b-b11d-6bc037011f9f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:24 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRva9s8p2GV4+Qx7mOlb+wZYIQl/VtRniA6C/Ge0EiSKao1TLnhlIBaaiCEFOBEiZfcKpTctrWBEjXS4CSqAzIqLcJXi1UJX6C8dW6XF/Q+qPLax+2uQlr5ZPiLvtWpYwHk8/e4IiQUK7/4HgMaz5Og"
+ ],
+ "x-ms-correlation-request-id": [
+ "0b7e6c85-28d0-4d91-89bd-bfa0b4edc605"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13778"
+ ],
+ "x-ms-request-id": [
+ "0b7e6c85-28d0-4d91-89bd-bfa0b4edc605"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093825Z:0b7e6c85-28d0-4d91-89bd-bfa0b4edc605"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "826"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/a654528c-60bb-18e1-457c-51b7cdb7e14a\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/a654528c-60bb-18e1-457c-51b7cdb7e14a\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"00eb090104c397022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 1 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/f9e93461-284c-9c7e-9dce-c9f395349cb0?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzL2Y5ZTkzNDYxLTI4NGMtOWM3ZS05ZGNlLWM5ZjM5NTM0OWNiMD9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a4aebddb-0375-4fc0-abe2-cf09e8c481ac"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:24 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvomj5b//nzcejY5Khh6hVcJF1aJJIbtkxIqZr6ut4lOdgoszQOdseA4DznRpM6tvIRfpg4qtv+rWLLB9tKxTFgwgCnruxsZkiCrLQSYGLekmc/mxa882je1qvK/97jCRuivpAne7dGueNPrj7h8a8"
+ ],
+ "x-ms-correlation-request-id": [
+ "a7553422-4551-4c7e-8c4b-23ae620b00ab"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13777"
+ ],
+ "x-ms-request-id": [
+ "a7553422-4551-4c7e-8c4b-23ae620b00ab"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093825Z:a7553422-4551-4c7e-8c4b-23ae620b00ab"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "826"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/f9e93461-284c-9c7e-9dce-c9f395349cb0\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/f9e93461-284c-9c7e-9dce-c9f395349cb0\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"00582db6081298022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 4 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllStorageSubSystems.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllStorageSubSystems.json
new file mode 100644
index 000000000000..4d3d89163395
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllStorageSubSystems.json
@@ -0,0 +1,264 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "df55c09a-ce2c-4910-bebb-4dae1340d502"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:31 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvpQCU5fugxh5XkZ6WsQ3Rsnytypp2HfxucUpOf3zEr4KSSPUMbKq41/t8n9+eR1spedXbpZl5KJOOhi4PG8kEwyURM8F3ehYh2Jqe1JILPVKBgDksnD7C0KbwWfAuqbWcH0jpP99Si8xP0RVxeKdy"
+ ],
+ "x-ms-correlation-request-id": [
+ "bb53b8c0-d855-4a99-880d-9653ce05ce2a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13805"
+ ],
+ "x-ms-request-id": [
+ "bb53b8c0-d855-4a99-880d-9653ce05ce2a"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093231Z:bb53b8c0-d855-4a99-880d-9653ce05ce2a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4a4b12b4-7cb8-405a-98ab-f9a765e3f05b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:31 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvRP7GpOudHyh1uuZl2tLPw7PAWQiorPzr+W8Y4I5nFaeF8C8vvijvbdgZXN9dPL42R2ZpakXGmKSHaJl8waM0ThQvdzKCurXex+tXxvqQN/vM+d0Rk2PaaMIkCONeveen9B4JBlMwS44/eWMa5Jgp"
+ ],
+ "x-ms-correlation-request-id": [
+ "7e361538-859c-41dd-92db-e88b6bf94c7a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13804"
+ ],
+ "x-ms-request-id": [
+ "7e361538-859c-41dd-92db-e88b6bf94c7a"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093231Z:7e361538-859c-41dd-92db-e88b6bf94c7a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7a8b1471-d4e2-4208-86bc-2240c434c757"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:31 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvPUG1iyauHetXI16QfwZKQgjiBW/QY38Y+XoHdXO3FKVrMhUiuUBwsb1XhsTmG9xaDqDh+BKT5B/FH4juMzOF7zvh9VJK6iTHkyjcUYfvcJGuWTApH2ggEvzKsYUXtzVCRdLwhK1CSml3HQ32tDiV"
+ ],
+ "x-ms-correlation-request-id": [
+ "e96030a3-ee3b-44c0-aea9-3f9c3d3bbf7a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13803"
+ ],
+ "x-ms-request-id": [
+ "e96030a3-ee3b-44c0-aea9-3f9c3d3bbf7a"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093231Z:e96030a3-ee3b-44c0-aea9-3f9c3d3bbf7a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWw/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9c3e5d86-bafd-4be2-9f2c-2de73a009464"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:31 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv4T+j4Qs5TPQ/Csr2yCOIo8azNW0tZZTeRNGjWU2Y+WDRGm86LOIzS/X2cCtmiPlXbDelNcegepFg8sByfGZIGY2Je5tXFM25Wgj4R/dbXG8eoWLq0O9bZmOYzuxvQmCtVthuVK/zi8XOQZ/0E2ec"
+ ],
+ "x-ms-correlation-request-id": [
+ "94da4966-95b8-4286-a05b-c310accfef9d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13802"
+ ],
+ "x-ms-request-id": [
+ "94da4966-95b8-4286-a05b-c310accfef9d"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093232Z:94da4966-95b8-4286-a05b-c310accfef9d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "503"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllVolumes.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllVolumes.json
index 5854e4792c63..96fa9a858b16 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllVolumes.json
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetAllVolumes.json
@@ -1,38 +1,28 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "226e25a8-6609-476f-aa43-0bb610e64273"
+ "66378882-193d-43e6-9484-4c836515d431"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "369"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:15 GMT"
],
"Pragma": [
"no-cache"
@@ -41,62 +31,62 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv1xgU+yHSiEnM6RJPNo3+jRvVMFsmanh2rOU7pgQTzmqwc6Uwq7ejM0EqwbCHz5NNd3ZqQQNCfASDNpQ/r6l1bxiwi3BAM5MVPHdTP0JBI9Xbco+VbsM/gbzYSLM9tm1ej2SJpteir8Txjx5409ck"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvmTxhQYKkRlTvSmf3UtyJx6KZbVDYJZ2pEh/dtlLzXAF7JPB/UIKZxhUaByIm+LNMGjFXjwKDr3suUgFe/XAjUrAznAlxUVYn6kb8LeQB0uH4AjwXPzlSDChqu720INIoumPMN7QBOu9VhDSHCeMG"
],
"x-ms-correlation-request-id": [
- "3dbecc01-4840-4750-8f4d-8419a3d5145c"
+ "07858c8c-c67c-46c3-8a8e-e57990711415"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14098"
+ "13824"
],
"x-ms-request-id": [
- "3dbecc01-4840-4750-8f4d-8419a3d5145c"
+ "07858c8c-c67c-46c3-8a8e-e57990711415"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:3dbecc01-4840-4750-8f4d-8419a3d5145c"
+ "LOCAL:20181031T093816Z:07858c8c-c67c-46c3-8a8e-e57990711415"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "6ec7aae5-d11a-46f5-8f04-a696a3c34b1a"
+ "d4d8aebe-0b4f-4b9d-9173-a4d8fc120db2"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "377"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:15 GMT"
],
"Pragma": [
"no-cache"
@@ -105,62 +95,62 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvGvSNCpy6tk2YCQS77fJUAeKUsT5s5n6SZhNkrEyqlk/lJwFqKDrWasW/6N1XLjM9b7L3wEWaNbt1AphUlb3Fjjt0iri/gPkQMQw3ITSpij7iKJlVMdZNj2eUTazYlaptoAcWzoYps2a2/5zNUcJl"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvawn32C5B1R4qAJoY0K/Yq5IDHi3fNpW7CROp0FxIKD4kec61O7dmr6AJtJrHqNPBX3EsMsxPbX4W7VioMjsEIFh9geZSWRp0GrI5o920m6KprqxEwCQ3KF3iKifajN1n6Q//xsa5/vwQnIn/1syz"
],
"x-ms-correlation-request-id": [
- "534bdf50-c73d-4e24-a871-4e496ce5328b"
+ "c9974af0-111f-442d-9958-dd51459d650e"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14097"
+ "13823"
],
"x-ms-request-id": [
- "534bdf50-c73d-4e24-a871-4e496ce5328b"
+ "c9974af0-111f-442d-9958-dd51459d650e"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:534bdf50-c73d-4e24-a871-4e496ce5328b"
+ "LOCAL:20181031T093816Z:c9974af0-111f-442d-9958-dd51459d650e"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "950d31c5-5f62-4e5c-8afb-7e121d5957ce"
+ "6fcf782c-0028-470a-bce7-04769d7d577c"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "478"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:15 GMT"
],
"Pragma": [
"no-cache"
@@ -169,62 +159,126 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvyUh3PlDCMG9Pmnq/LmLJ4VXwgoB3VFj8DQG46JOIh1cAcm6FPBBb7HsjipxscASdFHjkq3jlA702dyhn45qh/mbAVBrg38UbMpY7R3OfEU4h3Odct6mE6nWFIn38huhLtIxJMCPKzC8VMBGIS40B"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvrhYvJAhV1vjX0O9Ak0f+cmPDwvPIICX5+bCnkXmrbiimhc2lWqhCPVpq6myfJSrtsBxsCLy0iONeTCZFry6L8Nos4Gmaitax/dtsJ78yCZEqrrHU/hOVNhcgJDH4pgCQ/mvyzN3mfYmMym2q+Rd8"
],
"x-ms-correlation-request-id": [
- "cca94a8d-f3ce-492d-8c99-c55ed0892049"
+ "dfabff6a-4979-4b49-bd38-bbcfc364664e"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14096"
+ "13822"
],
"x-ms-request-id": [
- "cca94a8d-f3ce-492d-8c99-c55ed0892049"
+ "dfabff6a-4979-4b49-bd38-bbcfc364664e"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:cca94a8d-f3ce-492d-8c99-c55ed0892049"
+ "LOCAL:20181031T093816Z:dfabff6a-4979-4b49-bd38-bbcfc364664e"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXMvYTQyZDIxOWI/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvdm9sdW1lcz9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "d9a502d9-4cfb-4a0f-82d3-b1f8509173b0"
+ "eb8a2183-7511-43c5-8d0e-43da7dda5825"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n}",
"ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:15 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv9xhyHhTRrAu+FVQTM/fEaPv51zlu+ir8axlOlZ7EPp0zh3K1c2rr5RQ1Q0LDzxavfm31N//Rj+1lFWKPWa658U4lPtHXkizyLqJqMrnVRg02HiZQRfGli6x8+DxycWrOrTD8DZRn8rlOEk7F4VVt"
+ ],
+ "x-ms-correlation-request-id": [
+ "8548a023-893a-4e2f-8aaf-c2b06cfe4f2d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13821"
+ ],
+ "x-ms-request-id": [
+ "8548a023-893a-4e2f-8aaf-c2b06cfe4f2d"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093816Z:8548a023-893a-4e2f-8aaf-c2b06cfe4f2d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
"Content-Length": [
- "466"
+ "650"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Expires": [
"-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"repairStatus\": \"\",\r\n \"description\": \"\",\r\n \"action\": \"\",\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes/5D3DB5EEC80EB94BB86AAC8F8C6AE67E?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvdm9sdW1lcy81RDNEQjVFRUM4MEVCOTRCQjg2QUFDOEY4QzZBRTY3RT9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6194be59-11d8-4f2c-9841-ba495535fba4"
+ ],
+ "accept-language": [
+ "en-US"
],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:17 GMT"
],
"Pragma": [
"no-cache"
@@ -233,32 +287,42 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvCQushyou8bxgRVVh5sZFiTZyAL660/Yzn/n7J1gviAgOSR4H/s26eZCSKBvrt4Dr4EjOqJ8OhSqcj0X81llGJFUGC6xsUARy0/5h/gqFiZwsTDnDjy4erGc3jXHW7cHsS0+xtbBrSzEPtILxlAE3"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwFBPtombZds10k0/Uws1iqwP5efdZ2sZDZjhpDh47j0dCmTbFNXp4WWgHa953yBDQDBxNS5vBnXWNtvMdquqIY+2d51BTXRKexU0O0SGdUugWmIHmlKBO2rQOdibRXb76lQKn4QYLLVkXvQyWasF"
],
"x-ms-correlation-request-id": [
- "25a8f9dc-11d2-4b41-a884-320bd1128c6a"
+ "73236d96-de4b-42d9-84d2-9131df41f719"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14095"
+ "13820"
],
"x-ms-request-id": [
- "25a8f9dc-11d2-4b41-a884-320bd1128c6a"
+ "73236d96-de4b-42d9-84d2-9131df41f719"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:25a8f9dc-11d2-4b41-a884-320bd1128c6a"
+ "LOCAL:20181031T093817Z:73236d96-de4b-42d9-84d2-9131df41f719"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "638"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"repairStatus\": \"\",\r\n \"description\": \"\",\r\n \"action\": \"\",\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288"
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
}
}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetDrive.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetDrive.json
new file mode 100644
index 000000000000..6c0a6d1db02d
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetDrive.json
@@ -0,0 +1,328 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5a30fc9d-7a0c-48b2-9d82-dfbd8464482a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQVCtIczx+CYZDExTdGWexWW8jEVNHoNUJbhy71dXlyjp6L6ZnXSjNZrdzkcAHS02TGUllAY6epZAishLqoHhP2mxuQEGz2c0YcAcLD32fI9tQPkGZS6S3AvdwUKqWTKAZooXl/nZRv+y7Yiu2vqx"
+ ],
+ "x-ms-correlation-request-id": [
+ "c4051324-9f79-464b-ae07-af8cd34c5deb"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13795"
+ ],
+ "x-ms-request-id": [
+ "c4051324-9f79-464b-ae07-af8cd34c5deb"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093821Z:c4051324-9f79-464b-ae07-af8cd34c5deb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d9fe4e31-48dc-4da2-b653-c69d5c67946e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvv1XbSvz4WjsMJgndvioqVnaDshZBQ9KmVBViEKrnc4Wv0YIkvG5ugcFz9KoJjxpzOlzx702Z/Mwcpywun2HEK7aZ/Nrg11bBMRWOAXl1l4FrJiM6RNCDltP2gY/dxYMx6hJHikBCJIWWanU8V96m"
+ ],
+ "x-ms-correlation-request-id": [
+ "6c38719b-68d1-4ed9-855b-2abd4d6f7c5b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13794"
+ ],
+ "x-ms-request-id": [
+ "6c38719b-68d1-4ed9-855b-2abd4d6f7c5b"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093822Z:6c38719b-68d1-4ed9-855b-2abd4d6f7c5b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3dcd7485-7206-4dd8-a16c-0994c7574ddf"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvvLGs1kvI4kpDY7O/Av4H87iBgDPEDGheK0ZQsb96Db6Lh9/L1KzlQu0pcntb61UZ8vg8lBLB2rgAsAk/WXYzRR6pOn5Ed97bMO6EFfd9HRPGPrESfbP76/JkjqrZ/MxpuIE3Cm4Iz4clusw4Oc2f"
+ ],
+ "x-ms-correlation-request-id": [
+ "36830c9c-6330-402b-aa73-4a910a1022ef"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13793"
+ ],
+ "x-ms-request-id": [
+ "36830c9c-6330-402b-aa73-4a910a1022ef"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093822Z:36830c9c-6330-402b-aa73-4a910a1022ef"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzP2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0d115795-3105-40d2-943d-5266546916f9"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvbn8dlougobeum4RG4r/WqdLo4sNV7H/RCUkiLQzLtFno4A5KN+Zw0ULFQYHdSY3lsWeHBSqj7HpbG+SP65y3bwxwiy3DQnJx50h8Gc5PEzLJJH2WFQFu60p05GpMqCKYt3ekffsW/3S3+gG91bZK"
+ ],
+ "x-ms-correlation-request-id": [
+ "26d4f137-eb82-435b-925f-3af2b701fbd9"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13792"
+ ],
+ "x-ms-request-id": [
+ "26d4f137-eb82-435b-925f-3af2b701fbd9"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093822Z:26d4f137-eb82-435b-925f-3af2b701fbd9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "4973"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"007a1f8e05dd97022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 2 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/32e17f2a-7982-acb5-617e-15c72e6d50e6\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/32e17f2a-7982-acb5-617e-15c72e6d50e6\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"004b70e0092598022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 6 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/7655049b-26ad-177b-cd33-e27c4b5116bd\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/7655049b-26ad-177b-cd33-e27c4b5116bd\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"0005e3ae06f097022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 3 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/92abda1a-8a17-7015-ca12-a263d4156560\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/92abda1a-8a17-7015-ca12-a263d4156560\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"0069605d091d98022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 5 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/a654528c-60bb-18e1-457c-51b7cdb7e14a\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/a654528c-60bb-18e1-457c-51b7cdb7e14a\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"00eb090104c397022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 1 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/f9e93461-284c-9c7e-9dce-c9f395349cb0\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/f9e93461-284c-9c7e-9dce-c9f395349cb0\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"00582db6081298022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 4 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/17e7660d-36a7-39a4-9215-8912a6099329?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzLzE3ZTc2NjBkLTM2YTctMzlhNC05MjE1LTg5MTJhNjA5OTMyOT9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "52702cea-459a-407b-b541-87c5512e4a76"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:22 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvJj11BY3h9PmAcxXIdEow88+yHKVGCPPsNpnwfmRnhfXxuAmUjYBg6l+IEJYkf/KblNBiKo1CR+SQFLveLmwDaoCrNEBEzcg1muOBevxzaCXyDRUgGsudGkGulc1t72LP0iY3xyfNVuhqEuWCGPtY"
+ ],
+ "x-ms-correlation-request-id": [
+ "059c8bb5-c0bf-45d8-a4f1-d92180933680"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13791"
+ ],
+ "x-ms-request-id": [
+ "059c8bb5-c0bf-45d8-a4f1-d92180933680"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093822Z:059c8bb5-c0bf-45d8-a4f1-d92180933680"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "826"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"007a1f8e05dd97022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 2 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetInvaildDrive.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetInvaildDrive.json
new file mode 100644
index 000000000000..253251016a65
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetInvaildDrive.json
@@ -0,0 +1,261 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a8b1a591-edac-46fc-a1a9-267d070ce348"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvvhEFwq2ZMOaNLdeEX+eZ1aJgk2+Ewv5PGIY+6oVmhnLfzR68ZXgVjnGCmLVyE+UTVdP/3QolDcgfKDYgZfKAIW2aR1crAI4tAB58izAN2mmoyeRjzkNj02tTUF4rsh+icYhfoEOMHgPlIMgVEXbj"
+ ],
+ "x-ms-correlation-request-id": [
+ "cb1f1b99-e93b-40b4-82b3-dadb3d100385"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13799"
+ ],
+ "x-ms-request-id": [
+ "cb1f1b99-e93b-40b4-82b3-dadb3d100385"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093821Z:cb1f1b99-e93b-40b4-82b3-dadb3d100385"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8c06b81d-1681-4941-9d53-42fbe59f64ee"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvg9i/yNAoRxU7DK5gLD4aeNJxblFuiCuQAawvLsHYaNj+tFX3edbEXWDgpIb4M9Wjar5BKyQFXQE/7cGjqWZWIr6g1EnPcvpjqX6WjaNKl2A3hcOae0mXopEi0ELaM1ZQWkWfNxDa8wOxnvLE4ebF"
+ ],
+ "x-ms-correlation-request-id": [
+ "65ded831-c41a-4389-b8fd-da6c8969d79b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13798"
+ ],
+ "x-ms-request-id": [
+ "65ded831-c41a-4389-b8fd-da6c8969d79b"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093821Z:65ded831-c41a-4389-b8fd-da6c8969d79b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6b56ce76-8229-4518-ad5c-b60698191f3d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv774zgvR6+lZzukE2mpjfn4L4z83jADjopTtiDKihw7DHOcTpW604l2pqbyOPefp0qm4l3ZPIbMeq4YzOcT+Qt6etwaONrkUa31MQwBZxYWn8hPQ8RG2DrFbXcp3wfqzQ6jXHSuLjBdlXW2tH6g2A"
+ ],
+ "x-ms-correlation-request-id": [
+ "c399c190-821d-4c43-880c-531144f42a0a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13797"
+ ],
+ "x-ms-request-id": [
+ "c399c190-821d-4c43-880c-531144f42a0a"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093821Z:c399c190-821d-4c43-880c-531144f42a0a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/invailddrivename?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzL2ludmFpbGRkcml2ZW5hbWU/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "664c59da-70e7-47df-928d-cdddae95dbbd"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvO0PQKQCC470u+T39sNG/DhZ/qsndxGkArAtIOVVNhxmPReLBoOIByXwRor75wyaW3cDQmwL6UIjWdvtsyyxiRsyRZ1ZzUIvKRTZvMUT6w7+tbDoF1xO5SQbYbBYGmpsvulnKwvuoag8gvKTQ7v3n"
+ ],
+ "x-ms-correlation-request-id": [
+ "fb82315d-7d99-4197-9551-6fdad2740e20"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13796"
+ ],
+ "x-ms-request-id": [
+ "fb82315d-7d99-4197-9551-6fdad2740e20"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093821Z:fb82315d-7d99-4197-9551-6fdad2740e20"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 404
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetInvaildStorageSubSystem.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetInvaildStorageSubSystem.json
new file mode 100644
index 000000000000..90e4a5781cac
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetInvaildStorageSubSystem.json
@@ -0,0 +1,197 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "191bb11b-67b5-46c1-a1bf-75f0976423e5"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:29 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQdOEBgbqK0HQ6QmMNiYVNuz/eJ6cu8WBrpAr8AIxHs5+drjJ6V+D4ep87nMEJ+1DF01cCBByG+6iq4LYCxAqHHhILKfzfbNVcQZ5lltflJDU/o/1OttekRmupmt5PE1ayqj7xc5SUIEleuy1Y0dy"
+ ],
+ "x-ms-correlation-request-id": [
+ "3c4ec4c6-53e2-4bf3-bcdf-13354e528302"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13812"
+ ],
+ "x-ms-request-id": [
+ "3c4ec4c6-53e2-4bf3-bcdf-13354e528302"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093229Z:3c4ec4c6-53e2-4bf3-bcdf-13354e528302"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c49d1c05-cbf5-4d1a-82c6-1daec735d8b0"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvh9KRSnUyXaGkv9OPJqMzJniUrttxIyWFuYWyDSPYmb09Kg4QOHiEZjCcks8oyAaRYJuTNdqO5yzMgC6ZVRA6QzJ5BhNQEs8LRVXz404QyAkWUV93RhJgYQBpkDmQejhHK7U+oYhxdcK1GcVuR5ag"
+ ],
+ "x-ms-correlation-request-id": [
+ "baa571c3-90f6-43e9-ba43-7ca1f2231025"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13811"
+ ],
+ "x-ms-request-id": [
+ "baa571c3-90f6-43e9-ba43-7ca1f2231025"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093230Z:baa571c3-90f6-43e9-ba43-7ca1f2231025"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/invaildstoragesubsystemname?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvaW52YWlsZHN0b3JhZ2VzdWJzeXN0ZW1uYW1lP2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "809b4920-785a-4058-b31e-77d069df83f1"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvYQhcPe+CpoUW6nqHG2aY0pFqJWFGULeJtLPDFxSVsh/gwp3Lo4+TvwftraqHiwyKN/9dNE/EDPeoXhFUfs6qA76O/bByn8xhwcw8QtKV3Tys/471aR5yq93ujLt3jjFnSeZgvxwGF8YWTjN6LqIV"
+ ],
+ "x-ms-correlation-request-id": [
+ "7c474d8a-38b5-40b3-ab0a-0b3f27fe117f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13810"
+ ],
+ "x-ms-request-id": [
+ "7c474d8a-38b5-40b3-ab0a-0b3f27fe117f"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093230Z:7c474d8a-38b5-40b3-ab0a-0b3f27fe117f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 404
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetInvaildVolume.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetInvaildVolume.json
new file mode 100644
index 000000000000..4b6dc6f40aee
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetInvaildVolume.json
@@ -0,0 +1,261 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c04030d1-0fae-4364-8759-ed3d7967705d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvcYzhEfY9yeZfy6IAbNtEuV05MkETg1iAKDXBFrtuJOPXZOv9biQNAF3yp5lCLhfwFElLMErYEU+4LayiLS7wvqNQ25G2ghgvtQcuY1gUciqcsijcvkKwxyUMmlhYljeK5/pPwjyUlsikLsivX5vZ"
+ ],
+ "x-ms-correlation-request-id": [
+ "7faab78d-8ed7-4d5c-8be2-41f5408b67cb"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13819"
+ ],
+ "x-ms-request-id": [
+ "7faab78d-8ed7-4d5c-8be2-41f5408b67cb"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093817Z:7faab78d-8ed7-4d5c-8be2-41f5408b67cb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9341e7bb-78d7-45e0-b64e-e2b680144e89"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvoIYCp5TGdZlBDnZNLOacDSdXIGX7ibJUL5EZ7Pg887CtwgZAH248/4b7V4oY70LtiMJt9mct/Z8hI069mhfr3+B1FeRon2kW0gNux174sPLdjZZhZCuuCqbEqI47oVRb03+Ir++nwhyZFCEB96j3"
+ ],
+ "x-ms-correlation-request-id": [
+ "1e1befe3-b5c5-48e7-a31c-88fac72d8b4a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13818"
+ ],
+ "x-ms-request-id": [
+ "1e1befe3-b5c5-48e7-a31c-88fac72d8b4a"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093817Z:1e1befe3-b5c5-48e7-a31c-88fac72d8b4a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "191c611d-14b9-47f6-9ec8-ece4ee295696"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvNv/cWc4hN684gS/tMsrHS6cIXOg/GBZqd3eIJuJlTvHa0I8iE+z2l+yhDOrWa//7GD7CGpUNe8gw9MY4x24ZtRiQLkWy/wbQ9eX75YT2+a3CWPOYla/tWdBKdzyw2hHA5Y5diOr/Xp6L4dVDoIUd"
+ ],
+ "x-ms-correlation-request-id": [
+ "24f9c783-b75a-4b88-a3b6-cc21828c8370"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13817"
+ ],
+ "x-ms-request-id": [
+ "24f9c783-b75a-4b88-a3b6-cc21828c8370"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093817Z:24f9c783-b75a-4b88-a3b6-cc21828c8370"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes/invaildvolumename?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvdm9sdW1lcy9pbnZhaWxkdm9sdW1lbmFtZT9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f8760ad6-cded-4694-a1ba-157de3e0dd11"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwgArD6M3Qyn/k9ZDcqwt2PR/Kyo4WHXSMo73H0p9N7L2eELYEXuftZXRPaNpmubOpv/Wx+9El93ZviLKqjtxE4GDNW3/wGQmkw+AwWsV6O9j2NeRWDVGzzuei3nqXYrXXtDLevTsawho6xj0eNEY"
+ ],
+ "x-ms-correlation-request-id": [
+ "c88f9605-57ff-48c7-b1c1-55c0513682d3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13816"
+ ],
+ "x-ms-request-id": [
+ "c88f9605-57ff-48c7-b1c1-55c0513682d3"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093817Z:c88f9605-57ff-48c7-b1c1-55c0513682d3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 404
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetStorageSubSystem.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetStorageSubSystem.json
new file mode 100644
index 000000000000..43904233ed4f
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetStorageSubSystem.json
@@ -0,0 +1,264 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8b69fa6d-ed51-4d53-924c-24a805d58c47"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv7+sZgLiLeSklevIanVgro7oWU88OhdCJQZC7JmbFCId+0WzfrlOAxL9SdFCxQ89Du032gwK/ZwGn0q3god/gGbaer+zOFAbUakKPDpsOPGOPKd/bo3Kgw70VS9tY3GExrf2D2gsJZxT0xAiMHpk3"
+ ],
+ "x-ms-correlation-request-id": [
+ "f184bd74-f06b-4f75-b77c-ba1459372dc8"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13809"
+ ],
+ "x-ms-request-id": [
+ "f184bd74-f06b-4f75-b77c-ba1459372dc8"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093230Z:f184bd74-f06b-4f75-b77c-ba1459372dc8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f6ff1cd2-5fc3-4550-912a-e833a942cd51"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvGtsz8WH05zKX2UXHMAXGaKirDGCO+ZKJI/TrW7CYMQGLN0EHCIlk2o4BCPJT71uXmlafJxTqkzr5SPyaYVIaLAhP4nJ8Zr0K1iGXuT+NopKrF7vjDkAMuYrSe1N5lGt71YC22XPBId2D+r1RuRDU"
+ ],
+ "x-ms-correlation-request-id": [
+ "a65ebad6-9088-4e74-abe1-d2df7cb252dc"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13808"
+ ],
+ "x-ms-request-id": [
+ "a65ebad6-9088-4e74-abe1-d2df7cb252dc"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093230Z:a65ebad6-9088-4e74-abe1-d2df7cb252dc"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "689d6f6c-0193-47a1-9a0e-2ee12ce69ce3"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvcb+qc89oxCSbdo2DWzUcfq1TeNPElS+lPApJ25t0hmHgsZP8cWw/nSGwsV72ekHBwyskkTz9x5ycLGlnNvay27V1HowX9mDoh5zHB5F6itBwTws/mmmsZkxP4qsTLnbTD3S5kdjkUHb2XCzQK93s"
+ ],
+ "x-ms-correlation-request-id": [
+ "3d320f11-c731-4540-8768-3dd51fcfaf21"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13807"
+ ],
+ "x-ms-request-id": [
+ "3d320f11-c731-4540-8768-3dd51fcfaf21"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093230Z:3d320f11-c731-4540-8768-3dd51fcfaf21"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWw/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "51ed626e-d926-4f42-a4ec-7cb073de1a28"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:31 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvOxMb3lUMDD/J0Xp3J+kJRQuM1vAOCwm7cjjlN/P+oM7BZuAqvZggXvK3qsa2z7xpm6woVjXYvdCkvg1BmD/4+iVXua/qIDXhSE9m00ZZGONf10m4Nob6jyBawQDukP8OpuV+UaAGmFthVFCMN0s/"
+ ],
+ "x-ms-correlation-request-id": [
+ "53202039-ecd3-4237-adf8-5e4c3cccb670"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13806"
+ ],
+ "x-ms-request-id": [
+ "53202039-ecd3-4237-adf8-5e4c3cccb670"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093231Z:53202039-ecd3-4237-adf8-5e4c3cccb670"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "503"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetVolume.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetVolume.json
index 14319a6e347d..c7fcdfa3707d 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetVolume.json
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestGetVolume.json
@@ -1,38 +1,28 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "c4f01cc5-57fa-4998-aa4b-4b60562cbe4c"
+ "d6615838-2ad3-4015-8271-43ad09b1d3d9"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "369"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:17 GMT"
],
"Pragma": [
"no-cache"
@@ -41,62 +31,62 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvjyzutKJMuS+gfMPAcYUugNbhBFl7nNat66IqoG2fhlCv9ZRlofWEeY/ONGki/7/XF8Ids43R2ZV8h9G12CWi5AbxMo6xzWGSyqHR9seaEDPn2fGtKNLxjEMn5Au122HH/0y6oSbjMlxCMkQkoBdT"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvew40kjkmNtDjf45HuFWAJlQ6ULmIihTqJrC0zek7cxcUNV/HOquYLg1dbcYYaqIwsaSJ/CRmE2QpLCte0+UizGd2eSN680Jbxl2ehXiUUBwFDnixvZ7IcfnEv8ejyXYnQLoyeDselO52WL8QIluZ"
],
"x-ms-correlation-request-id": [
- "5c1d8ede-fc17-4620-91aa-499f07f66074"
+ "8da68c14-0873-4c90-a80a-32a17d7d093f"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14102"
+ "13815"
],
"x-ms-request-id": [
- "5c1d8ede-fc17-4620-91aa-499f07f66074"
+ "8da68c14-0873-4c90-a80a-32a17d7d093f"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:5c1d8ede-fc17-4620-91aa-499f07f66074"
+ "LOCAL:20181031T093818Z:8da68c14-0873-4c90-a80a-32a17d7d093f"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "f74cbcfb-64ff-4fda-8618-05b6f3b55f49"
+ "6ca50594-eed3-4743-b345-2c99060911b2"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "377"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:18 GMT"
],
"Pragma": [
"no-cache"
@@ -105,62 +95,62 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv3U2aAtbQy0Rizz0c6XVbdAvJF6qcSKQoI0oHC42Od8u0D64DBpj2PUy+7LuH8Uv84L9cMcua8BxYQ1UpfNo/ew2519JMEDPCG+C3vllKbHtb0TusfzsQT5Zd7b+970sdmrM9U8mQBKehSkpX9yLL"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwgQP6HoGy7ga0ndG01h6PTkynefK0vqBg7kfsMV53U8RKGxA7VYw48BugzYzG7hOFvhGDQiDhkNBDhhTtEvo12ZqaOkdApBgyDk/+uhyGXlBM99aFRLzenuqNJX14aLvR07D5oOV50qbF6hE7mQd"
],
"x-ms-correlation-request-id": [
- "c8a36a39-7456-4acc-8e68-d042646d6216"
+ "50983244-f116-4675-a895-0bbaaa81f36f"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14101"
+ "13814"
],
"x-ms-request-id": [
- "c8a36a39-7456-4acc-8e68-d042646d6216"
+ "50983244-f116-4675-a895-0bbaaa81f36f"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:c8a36a39-7456-4acc-8e68-d042646d6216"
+ "LOCAL:20181031T093818Z:50983244-f116-4675-a895-0bbaaa81f36f"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "bec4dfe9-76bf-49a8-9ded-b863830077ea"
+ "7dd3b29a-52a0-4cd1-bd22-4a6a56a39c46"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "478"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:18 GMT"
],
"Pragma": [
"no-cache"
@@ -169,62 +159,126 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvOEJFc/28x6nLtVcgp3GWnCEvc6P+9ACENvQ+CVxbH+i/T0YLRxd2iyAbTySUtbvNcqOzVSBPE/v4YZ1Kh2XoGxvdaZAXsoqU9ToPaAlUnt2r3KNQA+F5pSey45fqLfFrUcpma16UU0holzfHJ1Kb"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvis3ImFc+VLNHNmZ6D83WDVBsPpNZ9WcAUrIhaJvtx1R4cre5tfrCHkr5qmBdRx8X5Mbp3+SbE5bbdy2dk37tJ0Blmc6TGVkrkAZ+PRx98Xb5ILvU5+W3bRaq/j5rBeN/GZ07zA0u6YM7s6OMGOPJ"
],
"x-ms-correlation-request-id": [
- "7e293db9-98d8-4a58-82a6-04777b5cbe7f"
+ "4ad97ede-81ac-4f2c-ae33-e15ed41737cf"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14100"
+ "13813"
],
"x-ms-request-id": [
- "7e293db9-98d8-4a58-82a6-04777b5cbe7f"
+ "4ad97ede-81ac-4f2c-ae33-e15ed41737cf"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:7e293db9-98d8-4a58-82a6-04777b5cbe7f"
+ "LOCAL:20181031T093818Z:4ad97ede-81ac-4f2c-ae33-e15ed41737cf"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXMvYTQyZDIxOWI/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvdm9sdW1lcz9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "c7710bb7-6ccc-49ce-826e-6f6843020bc5"
+ "ef0dbe13-8273-4b8b-a236-f13720b4b62a"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n}",
"ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:18 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvKIGCAwa/3SDAbA+5TMd7Q1FSfRVaymfjabC9+8LKl7vbaW6CRhfSa43ovJTiykLxMQCBKR0+ggbSypeDiD+YKGdUvtqG8CXxJONQWomWqBlqru5NdTMI4NvyicIA8fEdTmkTnETEIYR70fkmC+8F"
+ ],
+ "x-ms-correlation-request-id": [
+ "737f569c-1b89-4805-ba13-d305a590d2ae"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13812"
+ ],
+ "x-ms-request-id": [
+ "737f569c-1b89-4805-ba13-d305a590d2ae"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093818Z:737f569c-1b89-4805-ba13-d305a590d2ae"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
"Content-Length": [
- "466"
+ "650"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Expires": [
"-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"repairStatus\": \"\",\r\n \"description\": \"\",\r\n \"action\": \"\",\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes/5D3DB5EEC80EB94BB86AAC8F8C6AE67E?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvdm9sdW1lcy81RDNEQjVFRUM4MEVCOTRCQjg2QUFDOEY4QzZBRTY3RT9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "cb2e495a-159b-4ae9-8409-dd155f232897"
+ ],
+ "accept-language": [
+ "en-US"
],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:18 GMT"
],
"Pragma": [
"no-cache"
@@ -233,32 +287,42 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvUQYiigGL3uZkWKA4w4OZ0Dwybl+kfhTS1IUVIf4rSB3+Ixy/+jRrCqKdMD9uY7oHi6Ej6+3a24PnlOu592Il/RMkyg/8/QgWoKrwZ4Ez3dqa544d8VhS3SQ/D439PaHxemHn17E9cm0sdYu+8t/8"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvG6ISRJg3PyWYdloRZHHb8+w0y0eej1D+F6SQgSJl7nTo0Qnx+OzU6sji1hhTO1GdvAG9tEA690Alh/CpUBQYuLPFSk8BwEpz0gZFYe1cqe1WvSKSwPmnD7EyAnNWPMWR+ebj8HnJz7K5O7N/ak4Z"
],
"x-ms-correlation-request-id": [
- "0dd04724-8d83-4d74-acb5-ac981afb75d9"
+ "a3d7ac17-81b8-4b71-a7c3-ab58153e6aa4"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14099"
+ "13811"
],
"x-ms-request-id": [
- "0dd04724-8d83-4d74-acb5-ac981afb75d9"
+ "a3d7ac17-81b8-4b71-a7c3-ab58153e6aa4"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:0dd04724-8d83-4d74-acb5-ac981afb75d9"
+ "LOCAL:20181031T093818Z:a3d7ac17-81b8-4b71-a7c3-ab58153e6aa4"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "638"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"repairStatus\": \"\",\r\n \"description\": \"\",\r\n \"action\": \"\",\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288"
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
}
}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListDrives.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListDrives.json
new file mode 100644
index 000000000000..dbc9804e1b3b
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListDrives.json
@@ -0,0 +1,264 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "233dbc9b-611a-47c5-be5b-4c8e82ed8596"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:22 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvf37nciH78gQ2nNNblCWmUEkx2fULEC5Mnkpf//mZbYYCbOascy2/9dTPafAWdpapj0Qh5dCDIBohF5Of5z1RB1hAB3+9tMxPEUN7Wn6css9PmgNfQDq8Pqm77IJCr205v3JLw9T2/VBiW8QWeiFs"
+ ],
+ "x-ms-correlation-request-id": [
+ "c0492fb1-f14c-4705-b161-7565a53f6fde"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13790"
+ ],
+ "x-ms-request-id": [
+ "c0492fb1-f14c-4705-b161-7565a53f6fde"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093822Z:c0492fb1-f14c-4705-b161-7565a53f6fde"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7e5a1197-0035-40bb-93d6-9b51e5cc4042"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:22 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvnwyVPL+Q+UtQ0rAmhNS9D6+K+a3FAnNVw/GtGJ/UJKxI6h4onPOa9UbPZq6il9GRKkMN2ZYHKanFYiTUByEG+jOfRlvbFfwF+LNPnX/n4Q0J5ct60qKAVcggrJoCeuseZP4rztX27MGS3NDXq6NP"
+ ],
+ "x-ms-correlation-request-id": [
+ "197a8a8d-728e-4cf8-9adf-7571069e5c01"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13789"
+ ],
+ "x-ms-request-id": [
+ "197a8a8d-728e-4cf8-9adf-7571069e5c01"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093823Z:197a8a8d-728e-4cf8-9adf-7571069e5c01"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "053ca596-1935-492a-8a79-aeae1253cbb6"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:22 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvIWy632dkBg1VrAjZWlH8CwyywqMNzk5tGcbsOiKaVsxWuShwCENFmbYwhlzD/LQ0byHZ+A9pSl2a9gxt6o0RoxtwcHWUGttzU+Yi8kelgFn/XhfjauC28HucO+z16+OHoZtUjXNKSHVbLQ2gvAH6"
+ ],
+ "x-ms-correlation-request-id": [
+ "ee2e967c-dbaf-4464-9145-c6f24eb13ed7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13788"
+ ],
+ "x-ms-request-id": [
+ "ee2e967c-dbaf-4464-9145-c6f24eb13ed7"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093823Z:ee2e967c-dbaf-4464-9145-c6f24eb13ed7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvZHJpdmVzP2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d3f6faa3-ee99-416a-884b-e1897d80804f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:22 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvyeUEo3d7qDmlauCLRpSuWr0XAVStev2zkn0yLhHX+N2IUdWfacRZMgHl8xXmIzAPFKWe7cURWGEtulczfjXYCf0ghNSDt35VMx0ozUqYw+UofquC7m6FLlvt6Az44m9EEVVKyD1/Df52bod6tJQg"
+ ],
+ "x-ms-correlation-request-id": [
+ "83edabd2-c1c1-4b26-afb7-a3ec136ab065"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13787"
+ ],
+ "x-ms-request-id": [
+ "83edabd2-c1c1-4b26-afb7-a3ec136ab065"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093823Z:83edabd2-c1c1-4b26-afb7-a3ec136ab065"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "4973"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/17e7660d-36a7-39a4-9215-8912a6099329\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"007a1f8e05dd97022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 2 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/32e17f2a-7982-acb5-617e-15c72e6d50e6\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/32e17f2a-7982-acb5-617e-15c72e6d50e6\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"004b70e0092598022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 6 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/7655049b-26ad-177b-cd33-e27c4b5116bd\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/7655049b-26ad-177b-cd33-e27c4b5116bd\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"0005e3ae06f097022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 3 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/92abda1a-8a17-7015-ca12-a263d4156560\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/92abda1a-8a17-7015-ca12-a263d4156560\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"0069605d091d98022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 5 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/a654528c-60bb-18e1-457c-51b7cdb7e14a\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/a654528c-60bb-18e1-457c-51b7cdb7e14a\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"00eb090104c397022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 1 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/drives/f9e93461-284c-9c7e-9dce-c9f395349cb0\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/f9e93461-284c-9c7e-9dce-c9f395349cb0\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"storageNode\": \"local/WSE-H9-2\",\r\n \"serialNumber\": \"00582db6081298022100b751f4a0a38c\",\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"usage\": \"Auto-Select\",\r\n \"canPool\": false,\r\n \"cannotPoolReason\": \"In a Pool\",\r\n \"physicalLocation\": \"Integrated : Adapter 0 : Port 1 : Target 4 : LUN 0\",\r\n \"model\": \"PERC H710\",\r\n \"mediaType\": \"HDD\",\r\n \"capacityGB\": 558,\r\n \"description\": \"\",\r\n \"action\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListStorageSubSystems.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListStorageSubSystems.json
new file mode 100644
index 000000000000..fc900d2b3c9b
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListStorageSubSystems.json
@@ -0,0 +1,200 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c8c624eb-87bc-44b8-9daf-426736d7b82d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:24 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv3XCZBgm8cX30YP7oZyGl5Ndtr1d7DHRfcSXT+3V+iAim8lQV7TnNSy4BP6DWGIEHBF7oPGAQ29MZCdMQlqTJ7jxLvA2YwN5ygq88nH49cgXjTKMU5nUvk8JZBBJoYpAoVevDw0UfbFP+eVQBLCv2"
+ ],
+ "x-ms-correlation-request-id": [
+ "318ac710-f933-4708-97c6-dd07e853477c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13815"
+ ],
+ "x-ms-request-id": [
+ "318ac710-f933-4708-97c6-dd07e853477c"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093224Z:318ac710-f933-4708-97c6-dd07e853477c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4b11a1e5-1849-48a0-83ae-c6e515685a07"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:29 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5PJbxJzeJ/cc3UClTYjY8xNpPpcBfoKPN1t1g/236dRUb4jU9ljMwEMslhgbDpAFaUih/jE6V7mewT4Wf/q5394WVBB+k38UiunsayK6NvOu3pMQ6Teac0s2QcjOnvwBElOnwUquAE+HI0KpmgEd"
+ ],
+ "x-ms-correlation-request-id": [
+ "9614c655-2113-4198-b32b-7f6e6a876910"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13814"
+ ],
+ "x-ms-request-id": [
+ "9614c655-2113-4198-b32b-7f6e6a876910"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093229Z:9614c655-2113-4198-b32b-7f6e6a876910"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "08538f6c-0f47-4370-95ad-e319fa99338e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:32:29 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvUY/XDeyb0EIJeW46W7n14Wp6HzbSMw+IGX1IWxkvRbgCoEtOHFd7dIHNIyigCkJx5B7vMn7BpX2COe46S937xcHfRNq9G3pA0AmEfDcSesJz0jMV7hGTL+ZB9igGO4MHRPgHe9abphh03xoj9+ya"
+ ],
+ "x-ms-correlation-request-id": [
+ "7ac9aac7-6258-4285-a2cf-9efdde7eb52f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13813"
+ ],
+ "x-ms-request-id": [
+ "7ac9aac7-6258-4285-a2cf-9efdde7eb52f"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093229Z:7ac9aac7-6258-4285-a2cf-9efdde7eb52f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "515"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListVolumes.json b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListVolumes.json
index ad6b8d98c5f1..8074cbee6df5 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListVolumes.json
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/SessionRecords/FabricAdminClient/TestListVolumes.json
@@ -1,38 +1,28 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "900786c7-ce14-46ed-b9b0-a2f0b2969a22"
+ "4e4ac4f5-68f4-4d29-9581-cd5054fed353"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local\",\r\n \"name\": \"S-Cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 2525\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "369"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:10 GMT"
],
"Pragma": [
"no-cache"
@@ -41,62 +31,62 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQfVMpU+Nhlzfn/8GvCS9Z3ZooJgokB2BgNOrgzmZn6co/3qtFK7Ub+xgCWzqfYxAbasoFMUSa8MuMCxyZ/3Vi/wMmr95JMB7hZf+W6+q23o198CtPDkOfP63rBu0+7IWCSkbZNNQGJKgq8lf/rsV"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv92mver5RxmzbLWmtPAaN1ptzAGUEpfbtPYMLrMZWBCCTe9toO35ziOcy0wfFXWnVLe+jDlAqp/IifGYZF+Z2ts2zmNGzmSv7fPcfaKVqseD+whshkM/4F71uKQlyqzeBCHo1pptFdt1tT/BmJgHW"
],
"x-ms-correlation-request-id": [
- "c20a58b9-dfa2-4c92-8230-7299a2781fb6"
+ "50dd4aae-b6b2-405f-a31c-e09e423e67e2"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14105"
+ "13828"
],
"x-ms-request-id": [
- "c20a58b9-dfa2-4c92-8230-7299a2781fb6"
+ "50dd4aae-b6b2-405f-a31c-e09e423e67e2"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192221Z:c20a58b9-dfa2-4c92-8230-7299a2781fb6"
+ "LOCAL:20181031T093810Z:50dd4aae-b6b2-405f-a31c-e09e423e67e2"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "263"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {}\r\n }\r\n ]\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzP2FwaS12ZXJzaW9uPTIwMTYtMDUtMDE=",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "de5fcecf-f832-4e74-897e-318733f4b6c0"
+ "c3d21b1a-8977-4fa7-aabe-6534d652eadf"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool\",\r\n \"name\": \"SU1_Pool\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sizeGB\": 5614\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
- "Content-Length": [
- "377"
- ],
- "Content-Type": [
- "application/json; charset=utf-8"
- ],
- "Expires": [
- "-1"
- ],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:14 GMT"
],
"Pragma": [
"no-cache"
@@ -105,62 +95,126 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5HKoEPVfXiD+KRcQy6xk2agHpUGyPYrl7stTmNDCACKPHjWg+JqVnLeraPlLzQe4uM9/7wxCC+NERH80jCq27h+bj6RliBsrlZrMRx+paWIgYDMITJeCl2h1gNYp3srJn+JlwwxinewmcYMeBLj/"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv+a2b54HT0Nm56MgeBbUtMyH5myp7yvtJGwCpsXvDssaunFMwkHsjtntjxCpRMxYVZBfWT5aeW6PaOurixQceZYRnsqb8AbWSeGhePKB2ENxu0bLSxxXAMhhE5mRZiQEbNdxg8G059A5h1cdye9na"
],
"x-ms-correlation-request-id": [
- "a0d47e5e-edbd-4eec-8102-96a4c131b571"
+ "8cf46bec-ab09-40b3-b2e3-737db1732ceb"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14104"
+ "13827"
],
"x-ms-request-id": [
- "a0d47e5e-edbd-4eec-8102-96a4c131b571"
+ "8cf46bec-ab09-40b3-b2e3-737db1732ceb"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:a0d47e5e-edbd-4eec-8102-96a4c131b571"
+ "LOCAL:20181031T093815Z:8cf46bec-ab09-40b3-b2e3-737db1732ceb"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "620"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster\",\r\n \"name\": \"local/s-cluster\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"scaleUnitType\": \"HyperConverged\",\r\n \"logicalFaultDomain\": 0,\r\n \"nodes\": [\r\n \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnitNodes/WSE-H9-2\"\r\n ],\r\n \"state\": \"Running\",\r\n \"totalCapacity\": {\r\n \"memoryGB\": 127.956055,\r\n \"cores\": 24\r\n },\r\n \"isMultiNode\": false\r\n }\r\n }\r\n ]\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes?api-version=2016-05-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWMwZGFhMDQtMDFhZS00ZGY5LWE1ZDgtNDkxYjc1NWY1Mjg4L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc3RvcmFnZVN1YlN5c3RlbXMvUy1DbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvc3RvcmFnZVBvb2xzL1NVMV9Qb29sL3ZvbHVtZXM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "a4d5ea9c-5807-492e-ab13-a2fd25bf8745"
+ "2227387e-9f3b-4bb5-8dc6-af7f9f150a47"
],
"accept-language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.25211.01",
- "Microsoft.AzureStack.Management.Admin.Fabric.FabricAdminClient/0.1.0.0"
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1c0daa04-01ae-4df9-a5d8-491b755f5288/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/storageSubSystems/S-Cluster.azurestack.local/storagePools/SU1_Pool/volumes/a42d219b\",\r\n \"name\": \"a42d219b\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/storageSubSystems/storagePools/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"fileSystem\": \"CSVFS_ReFS\",\r\n \"remainingSizeGB\": 2201,\r\n \"sizeGB\": 2525,\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 31 Oct 2018 09:38:14 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvfrboTvnTYuH7DFHi+CLDBFnqbLollE3sq6cyESd6rU8lN91NkiFNuVBYzpvpsX315mmPbWWIIxOalO5jJWpmqVAjsu0H8QnvyfG9S2fujyDKJsH1bfyPO1CHuaUcMd+gHJJmUmp6HNVNcK31py90"
+ ],
+ "x-ms-correlation-request-id": [
+ "6e277217-864e-41b2-b036-af2ba5c79cb5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "13826"
+ ],
+ "x-ms-request-id": [
+ "6e277217-864e-41b2-b036-af2ba5c79cb5"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181031T093815Z:6e277217-864e-41b2-b036-af2ba5c79cb5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
"Content-Length": [
- "478"
+ "515"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Expires": [
"-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"rebalanceStatus\": \"\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes?api-version=2018-10-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNWExOWYyMzMtNzlhZS00YjdlLTg1NWQtMDRiZmNhYzhiZjA0L3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkZhYnJpYy5BZG1pbi9mYWJyaWNMb2NhdGlvbnMvbG9jYWwvc2NhbGVVbml0cy9zLWNsdXN0ZXIvc3RvcmFnZVN1YlN5c3RlbXMvcy1jbHVzdGVyLmF6dXJlc3RhY2subG9jYWwvdm9sdW1lcz9hcGktdmVyc2lvbj0yMDE4LTEwLTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b78f6172-3d81-496a-8191-09b408fa9345"
],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "Microsoft.AzureStack.Management.Fabric.Admin.FabricAdminClient/0.4.0.0"
+ ]
+ },
+ "ResponseHeaders": {
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 30 Aug 2017 19:22:21 GMT"
+ "Wed, 31 Oct 2018 09:38:14 GMT"
],
"Pragma": [
"no-cache"
@@ -169,32 +223,42 @@
"Microsoft-HTTPAPI/2.0"
],
"WWW-Authenticate": [
- "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6HQN/+QPapBq0x/uDlGLiCU917ir3qaSA9uFau6PjOtdYv7YcQ/ZIWpcx800u5Vg872yDN4RKO/xrgPkRdE/dv0gDqpaAZ/4c14TMy3bRWDDw0XpUcryG3akCfRuN9cNImEe0slTE4uWX1bVpagp"
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv6Pka/n/VMr1tjWwKfIsnLPeDHtiVN73+82yN/7fSjTQASplqZT1/CjlEwnmDKpMSyG3a3MdEr1LkVqWlFcpM8BbMrEqVVzTCZGNiOJ5EaQf1WaFZ6xYUGPGsQaojaCAsLdCKeY8pypMP1TBwj3C8"
],
"x-ms-correlation-request-id": [
- "58b95af5-788e-48b0-b30c-f03e892ec1e7"
+ "617f0508-b239-411c-9dd9-06a9ca3fdc94"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14103"
+ "13825"
],
"x-ms-request-id": [
- "58b95af5-788e-48b0-b30c-f03e892ec1e7"
+ "617f0508-b239-411c-9dd9-06a9ca3fdc94"
],
"x-ms-routing-request-id": [
- "LOCAL:20170830T192222Z:58b95af5-788e-48b0-b30c-f03e892ec1e7"
+ "LOCAL:20181031T093815Z:617f0508-b239-411c-9dd9-06a9ca3fdc94"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
+ ],
+ "Content-Length": [
+ "650"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
]
},
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/5a19f233-79ae-4b7e-855d-04bfcac8bf04/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/scaleUnits/s-cluster/storageSubSystems/s-cluster.azurestack.local/volumes/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"name\": \"local/s-cluster/s-cluster.azurestack.local/5D3DB5EEC80EB94BB86AAC8F8C6AE67E\",\r\n \"type\": \"Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/volumes\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"totalCapacityGB\": 3011,\r\n \"remainingCapacityGB\": 2632,\r\n \"healthStatus\": \"Healthy\",\r\n \"operationalStatus\": \"OK\",\r\n \"repairStatus\": \"\",\r\n \"description\": \"\",\r\n \"action\": \"\",\r\n \"volumeLabel\": \"SU1_Volume\"\r\n }\r\n }\r\n ]\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "1c0daa04-01ae-4df9-a5d8-491b755f5288"
+ "SubscriptionId": "5a19f233-79ae-4b7e-855d-04bfcac8bf04"
}
}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/packages.config b/src/StackAdmin/Azs.Fabric.Admin/Tests/packages.config
index 9e98059298d2..7a2d38904158 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Tests/packages.config
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/packages.config
@@ -1,4 +1,4 @@
-
+
-
+
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/src/Drive.tests.ps1 b/src/StackAdmin/Azs.Fabric.Admin/Tests/src/Drive.tests.ps1
new file mode 100644
index 000000000000..814ad46e81e8
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/src/Drive.tests.ps1
@@ -0,0 +1,208 @@
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.SYNOPSIS
+ Run AzureStack fabric admin drive tests.
+
+.DESCRIPTION
+ Run AzureStack fabric admin drive tests using either mock client or our client.
+ The mock client allows for recording and playback. This allows for offline tests.
+
+.PARAMETER RunRaw
+ Run using our client creation path.
+
+.EXAMPLE
+ PS C:\> .\Drive.Tests.ps1
+ Describing Drives
+ [+] TestListDrives 331ms
+ [+] TestGetDrive 131ms
+ [+] TestGetAllDrives 215ms
+ [+] TestGetInvaildDrive 90ms
+
+.EXAMPLE
+ PS C:\> .\src\Drive.Tests.ps1 -RunRaw $true
+ Describing Drives
+ [+] TestListDrives 2.86s
+ [+] TestGetDrive 2.95s
+ [+] TestGetAllDrives 6.98s
+ [+] TestGetInvaildDrive 2.75s
+
+.NOTES
+ Author: Yuxing Zhou
+ Copyright: Microsoft
+ Date: October 31, 2018
+#>
+param(
+ [bool]$RunRaw = $false,
+ [bool]$UseInstalled = $false
+)
+
+$Global:UseInstalled = $UseInstalled
+$global:RunRaw = $RunRaw
+$global:TestName = ""
+
+. $PSScriptRoot\CommonModules.ps1
+
+InModuleScope Azs.Fabric.Admin {
+
+ Describe "Drives" -Tags @('Drive', 'Azs.Fabric.Admin') {
+
+ . $PSScriptRoot\Common.ps1
+
+ BeforeEach {
+
+ function ValidateDrive {
+ param(
+ [Parameter(Mandatory = $true)]
+ $Volume
+ )
+
+ $Drive | Should Not Be $null
+
+ # Resource
+ $Drive.Id | Should Not Be $null
+ $Drive.Location | Should Not Be $null
+ $Drive.Name | Should Not Be $null
+ $Drive.Type | Should Not Be $null
+
+ # Drive
+ $Drive.StorageNode | Should Not Be $null
+ $Drive.SerialNumber | Should Not Be $null
+ $Drive.HealthStatus | Should Not Be $null
+ $Drive.OperationalStatus | Should Not Be $null
+ $Drive.Usage | Should Not Be $null
+ $Drive.CanPool | Should Not Be $null
+ $Drive.CannotPoolReason | Should Not Be $null
+ $Drive.PhysicalLocation | Should Not Be $null
+ $Drive.Model | Should Not Be $null
+ $Drive.MediaType | Should Not Be $null
+ $Drive.CapacityGB | Should Not Be $null
+ $Drive.Description | Should Not Be $null
+ $Drive.Action | Should Not Be $null
+ }
+
+ function AssertDrivesAreSame {
+ param(
+ [Parameter(Mandatory = $true)]
+ $Expected,
+
+ [Parameter(Mandatory = $true)]
+ $Found
+ )
+ if ($Expected -eq $null) {
+ $Found | Should Be $null
+ }
+ else {
+ $Found | Should Not Be $null
+
+ # Resource
+ $Found.Id | Should Be $Expected.Id
+ $Found.Location | Should Be $Expected.Location
+ $Found.Name | Should Be $Expected.Name
+ $Found.Type | Should Be $Expected.Type
+
+ # Drive
+ $Found.StorageNode | Should Be $Expected.StorageNode
+ $Found.SerialNumber | Should Be $Expected.SerialNumber
+ $Found.HealthStatus | Should Be $Expected.HealthStatus
+ $Found.OperationalStatus | Should Be $Expected.OperationalStatus
+ $Found.Usage | Should Be $Expected.Usage
+ $Found.CanPool | Should Be $Expected.CanPool
+ $Found.CannotPoolReason | Should Be $Expected.CannotPoolReason
+ $Found.PhysicalLocation | Should Be $Expected.PhysicalLocation
+ $Found.Model | Should Be $Expected.Model
+ $Found.MediaType | Should Be $Expected.MediaType
+ $Found.CapacityGB | Should Be $Expected.CapacityGB
+ $Found.Description | Should Be $Expected.Description
+ $Found.Action | Should Be $Expected.Action
+
+ }
+ }
+ }
+
+ AfterEach {
+ $global:Client = $null
+ }
+
+
+ it "TestListDrives" -Skip:$('TestListDrives' -in $global:SkippedTests) {
+ $global:TestName = 'TestListDrives'
+
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $storageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($storageSubSystem in $storageSubSystems) {
+ $drives = Get-AzsDrive -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name
+ $drives | Should Not Be $null
+ foreach ($drive in $drives) {
+ ValidateDrive $drive
+ }
+ }
+ }
+ }
+
+
+ it "TestGetDrive" -Skip:$('TestGetDrive' -in $global:SkippedTests) {
+ $global:TestName = 'TestGetDrive'
+
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $storageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($storageSubSystem in $storageSubSystems) {
+ $drives = Get-AzsDrive -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name
+ foreach ($drive in $drives) {
+ $retrieved = Get-AzsDrive -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name -Name $drive.Name
+ AssertDrivesAreSame -Expected $drive -Found $retrieved
+ break
+ }
+ break
+ }
+ break
+ }
+ }
+
+ it "TestGetAllDrives" -Skip:$('TestGetAllDrives' -in $global:SkippedTests) {
+ $global:TestName = 'TestGetAllDrives'
+
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $storageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($storageSubSystem in $storageSubSystems) {
+ $drives = Get-AzsDrive -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name
+ foreach ($drive in $drives) {
+ $retrieved = Get-AzsDrive -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name -Name $drive.Name
+ AssertDrivesAreSame -Expected $drive -Found $retrieved
+ }
+ }
+ }
+ }
+
+ it "TestGetInvaildDrive" -Skip:$('TestGetInvaildDrive' -in $global:SkippedTests) {
+ $global:TestName = 'TestGetInvaildDrive'
+
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $storageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($storageSubSystem in $storageSubSystems) {
+ $invaildDriveName = "invailddrivename"
+ $retrieved = Get-AzsDrive -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name -Name $invaildDriveName
+ $retrieved | Should Be $null
+ break
+ }
+ break
+ }
+ }
+ }
+}
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/src/StorageSubSystem.tests.ps1 b/src/StackAdmin/Azs.Fabric.Admin/Tests/src/StorageSubSystem.tests.ps1
new file mode 100644
index 000000000000..915a6e43faec
--- /dev/null
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/src/StorageSubSystem.tests.ps1
@@ -0,0 +1,177 @@
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.SYNOPSIS
+ Run AzureStack fabric admin storage subsystem tests.
+
+.DESCRIPTION
+ Run AzureStack fabric admin storage subsystem tests using either mock client or our client.
+ The mock client allows for recording and playback. This allows for offline tests.
+
+.PARAMETER RunRaw
+ Run using our client creation path.
+
+.EXAMPLE
+ PS C:\> .\src\StorageSubSystem.Tests.ps1
+ Describing StorageSubSystems
+ [+] TestListStorageSubSystems 187ms
+ [+] TestGetStorageSubSystem 98ms
+ [+] TestGetAllStorageSubSystems 79ms
+ [+] TestGetInvaildStorageSubSystem 78ms
+
+.EXAMPLE
+ PS C:\> .\src\StorageSubSystem.Tests.ps1 -RunRaw $true
+ Describing StorageSubSystems
+ [+] TestListStorageSubSystems 1.56s
+ [+] TestGetStorageSubSystem 1.98s
+ [+] TestGetAllStorageSubSystems 2.07s
+ [+] TestGetInvaildStorageSubSystem 1.58s
+
+.NOTES
+ Author: Yuxing Zhou
+ Copyright: Microsoft
+ Date: October 31, 2018
+#>
+param(
+ [bool]$RunRaw = $false,
+ [bool]$UseInstalled = $false
+)
+
+$Global:UseInstalled = $UseInstalled
+$global:RunRaw = $RunRaw
+$global:TestName = ""
+
+. $PSScriptRoot\CommonModules.ps1
+
+InModuleScope Azs.Fabric.Admin {
+
+ Describe "StorageSubSystems" -Tags @('StorageSubSystem', 'Azs.Fabric.Admin') {
+
+ . $PSScriptRoot\Common.ps1
+
+ BeforeEach {
+
+ function ValidateStorageSubSystem {
+ param(
+ [Parameter(Mandatory = $true)]
+ $StorageSubSystem
+ )
+
+ $StorageSubSystem | Should Not Be $null
+
+ # Resource
+ $StorageSubSystem.Id | Should Not Be $null
+ $StorageSubSystem.Location | Should Not Be $null
+ $StorageSubSystem.Name | Should Not Be $null
+ $StorageSubSystem.Type | Should Not Be $null
+
+ # Storage Subsystem
+ $StorageSubSystem.TotalCapacityGB | Should Not Be $null
+ $StorageSubSystem.RemainingCapacityGB | Should Not Be $null
+ $StorageSubSystem.HealthStatus | Should Not Be $null
+ $StorageSubSystem.OperationalStatus | Should Not Be $null
+ $StorageSubSystem.RebalanceStatus | Should Not Be $null
+ }
+
+ function AssertStorageSubSystemsAreSame {
+ param(
+ [Parameter(Mandatory = $true)]
+ $Expected,
+
+ [Parameter(Mandatory = $true)]
+ $Found
+ )
+ if ($Expected -eq $null) {
+ $Found | Should Be $null
+ }
+ else {
+ $Found | Should Not Be $null
+
+ # Resource
+ $Found.Id | Should Be $Expected.Id
+ $Found.Location | Should Be $Expected.Location
+ $Found.Name | Should Be $Expected.Name
+ $Found.Type | Should Be $Expected.Type
+
+ # Storage System
+ $Found.TotalCapacityGB | Should Be $Expected.TotalCapacityGB
+ $Found.RemainingCapacityGB | Should Be $Expected.RemainingCapacityGB
+ $Found.HealthStatus | Should Be $Expected.HealthStatus
+ $Found.OperationalStatus | Should Be $Expected.OperationalStatus
+ $Found.RebalanceStatus | Should Be $Expected.RebalanceStatus
+ }
+ }
+ }
+
+ AfterEach {
+ $global:Client = $null
+ }
+
+
+ it "TestListStorageSubSystems" -Skip:$('TestListStorageSubSystems' -in $global:SkippedTests) {
+ $global:TestName = 'TestListStorageSubSystems'
+
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $StorageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ $StorageSubSystems | Should Not Be $null
+ foreach ($StorageSubSystem in $StorageSubSystems) {
+ ValidateStorageSubSystem -StorageSubSystem $StorageSubSystem
+ }
+ }
+ }
+
+
+ it "TestGetStorageSubSystem" -Skip:$('TestGetStorageSubSystem' -in $global:SkippedTests) {
+ $global:TestName = 'TestGetStorageSubSystem'
+
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $StorageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($StorageSubSystem in $StorageSubSystems) {
+ $retrieved = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -Name $StorageSubSystem.Name
+ AssertStorageSubSystemsAreSame -Expected $StorageSubSystem -Found $retrieved
+ break
+ }
+ break
+ }
+ }
+
+ it "TestGetAllStorageSubSystems" -Skip:$('TestGetAllStorageSubSystems' -in $global:SkippedTests) {
+ $global:TestName = 'TestGetAllStorageSubSystems'
+
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $StorageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($StorageSubSystem in $StorageSubSystems) {
+ $retrieved = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -Name $StorageSubSystem.Name
+ AssertStorageSubSystemsAreSame -Expected $StorageSubSystem -Found $retrieved
+ }
+ }
+ }
+
+ it "TestGetInvaildStorageSubSystem" -Skip:$('TestGetInvaildStorageSubSystem' -in $global:SkippedTests) {
+ $global:TestName = 'TestGetInvaildStorageSubSystem'
+
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $invaildStorageSubSystemName = "invaildstoragesubsystemname"
+ $retrieved = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -Name $invaildStorageSubSystemName
+ $retrieved | Should Be $null
+ break
+ }
+ }
+ }
+}
diff --git a/src/StackAdmin/Azs.Fabric.Admin/Tests/src/Volume.tests.ps1 b/src/StackAdmin/Azs.Fabric.Admin/Tests/src/Volume.tests.ps1
index 2e5abd7978cf..dcd3fd0596e2 100644
--- a/src/StackAdmin/Azs.Fabric.Admin/Tests/src/Volume.tests.ps1
+++ b/src/StackAdmin/Azs.Fabric.Admin/Tests/src/Volume.tests.ps1
@@ -25,10 +25,19 @@
.EXAMPLE
PS C:\> .\Volume.Tests.ps1
- Describing StoragePools
- [+] TestListVolumes 237ms
- [+] TestGetVolume 128ms
- [+] TestGetAllVolumes 98ms
+ Describing Volumes
+ [+] TestListVolumes 188ms
+ [+] TestGetVolume 157ms
+ [+] TestGetAllVolumes 100ms
+ [+] TestGetInvaildVolume 72ms
+
+.EXAMPLE
+ PS C:\> .\src\Volume.Tests.ps1 -RunRaw $true
+ Describing Volumes
+ [+] TestListVolumes 10.19s
+ [+] TestGetVolume 3.03s
+ [+] TestGetAllVolumes 2.83s
+ [+] TestGetInvaildVolume 2.44s
.NOTES
Author: Jeffrey Robinson
@@ -48,7 +57,7 @@ $global:TestName = ""
InModuleScope Azs.Fabric.Admin {
- Describe "StoragePools" -Tags @('StoragePool', 'Azs.Fabric.Admin') {
+ Describe "Volumes" -Tags @('Volume', 'Azs.Fabric.Admin') {
. $PSScriptRoot\Common.ps1
@@ -68,11 +77,15 @@ InModuleScope Azs.Fabric.Admin {
$Volume.Name | Should Not Be $null
$Volume.Type | Should Not Be $null
- # Storage Pool
- $Volume.FileSystem | Should Not Be $null
- $Volume.RemainingSizeGB | Should Not Be $null
- $Volume.SizeGB | Should Not Be $null
- $Volume.VolumeLabel | Should Not Be $null
+ # Volume
+ $Volume.TotalCapacityGB | Should Not Be $null
+ $Volume.RemainingCapacityGB | Should Not Be $null
+ $Volume.HealthStatus | Should Not Be $null
+ $Volume.OperationalStatus | Should Not Be $null
+ $Volume.RepairStatus | Should Not Be $null
+ $Volume.Description | Should Not Be $null
+ $Volume.Action | Should Not Be $null
+ $Volume.VolumeLabel | Should Not Be $null
}
function AssertVolumesAreSame {
@@ -95,11 +108,15 @@ InModuleScope Azs.Fabric.Admin {
$Found.Name | Should Be $Expected.Name
$Found.Type | Should Be $Expected.Type
- # Storage Pool
- $Found.FileSystem | Should Be $Expected.FileSystem
- $Found.RemainingSizeGB | Should Be $Expected.RemainingSizeGB
- $Found.SizeGB | Should Be $Expected.SizeGB
- $Found.VolumeLabel | Should Be $Expected.VolumeLabel
+ # Volume
+ $Found.TotalCapacityGB | Should Be $Expected.TotalCapacityGB
+ $Found.RemainingCapacityGB | Should Be $Expected.RemainingCapacityGB
+ $Found.HealthStatus | Should Be $Expected.HealthStatus
+ $Found.OperationalStatus | Should Be $Expected.OperationalStatus
+ $Found.RepairStatus | Should Be $Expected.RepairStatus
+ $Found.Description | Should Be $Expected.Description
+ $Found.Action | Should Be $Expected.Action
+ $Found.VolumeLabel | Should Be $Expected.VolumeLabel
}
}
@@ -113,11 +130,11 @@ InModuleScope Azs.Fabric.Admin {
it "TestListVolumes" -Skip:$('TestListVolumes' -in $global:SkippedTests) {
$global:TestName = 'TestListVolumes'
- $storageSystems = Get-AzsStorageSystem -ResourceGroupName $global:ResourceGroupName -Location $Location
- foreach ($storageSystem in $storageSystems) {
- $StoragePools = Get-AzsStoragePool -ResourceGroupName $global:ResourceGroupName -Location $Location -StorageSystem $storageSystem.Name
- foreach ($StoragePool in $StoragePools) {
- $volumes = Get-AzsInfrastructureVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -StorageSystem $storageSystem.Name -StoragePool $StoragePool.Name
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $storageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($storageSubSystem in $storageSubSystems) {
+ $volumes = Get-AzsVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name
$volumes | Should Not Be $null
foreach ($volume in $volumes) {
ValidateVolume $volume
@@ -130,13 +147,13 @@ InModuleScope Azs.Fabric.Admin {
it "TestGetVolume" -Skip:$('TestGetVolume' -in $global:SkippedTests) {
$global:TestName = 'TestGetVolume'
- $storageSystems = Get-AzsStorageSystem -ResourceGroupName $global:ResourceGroupName -Location $Location
- foreach ($storageSystem in $storageSystems) {
- $StoragePools = Get-AzsStoragePool -ResourceGroupName $global:ResourceGroupName -Location $Location -StorageSystem $storageSystem.Name
- foreach ($StoragePool in $StoragePools) {
- $volumes = Get-AzsInfrastructureVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -StorageSystem $storageSystem.Name -StoragePool $StoragePool.Name
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $storageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($storageSubSystem in $storageSubSystems) {
+ $volumes = Get-AzsVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name
foreach ($volume in $volumes) {
- $retrieved = Get-AzsInfrastructureVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -StoragePool $StoragePool.Name -StorageSystem $storageSystem.Name -Name $volume.Name
+ $retrieved = Get-AzsVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name -Name $volume.Name
AssertVolumesAreSame -Expected $volume -Found $retrieved
break
}
@@ -149,17 +166,33 @@ InModuleScope Azs.Fabric.Admin {
it "TestGetAllVolumes" -Skip:$('TestGetAllVolumes' -in $global:SkippedTests) {
$global:TestName = 'TestGetAllVolumes'
- $storageSystems = Get-AzsStorageSystem -ResourceGroupName $global:ResourceGroupName -Location $Location
- foreach ($storageSystem in $storageSystems) {
- $StoragePools = Get-AzsStoragePool -ResourceGroupName $global:ResourceGroupName -Location $Location -StorageSystem $storageSystem.Name
- foreach ($StoragePool in $StoragePools) {
- $volumes = Get-AzsInfrastructureVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -StorageSystem $storageSystem.Name -StoragePool $StoragePool.Name
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $storageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($storageSubSystem in $storageSubSystems) {
+ $volumes = Get-AzsVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name
foreach ($volume in $volumes) {
- $retrieved = Get-AzsInfrastructureVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -StoragePool $StoragePool.Name -StorageSystem $storageSystem.Name -Name $volume.Name
+ $retrieved = Get-AzsVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name -Name $volume.Name
AssertVolumesAreSame -Expected $volume -Found $retrieved
}
}
}
}
+
+ it "TestGetInvaildVolume" -Skip:$('TestGetInvaildVolume' -in $global:SkippedTests) {
+ $global:TestName = 'TestGetInvaildVolume'
+
+ $scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $Location
+ foreach ($scaleUnit in $scaleUnits) {
+ $storageSubSystems = Get-AzsStorageSubSystem -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name
+ foreach ($storageSubSystem in $storageSubSystems) {
+ $invaildVolumeName = "invaildvolumename"
+ $retrieved = Get-AzsVolume -ResourceGroupName $global:ResourceGroupName -Location $Location -ScaleUnit $scaleUnit.Name -StorageSubSystem $storageSubSystem.Name -Name $invaildVolumeName
+ $retrieved | Should Be $null
+ break
+ }
+ break
+ }
+ }
}
}
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Azs.InfrastructureInsights.Admin.md b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Azs.InfrastructureInsights.Admin.md
index 4c4373939403..cb245fdeb297 100644
--- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Azs.InfrastructureInsights.Admin.md
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Azs.InfrastructureInsights.Admin.md
@@ -26,3 +26,6 @@ Returns a list of each resource's health under a service.
### [Get-AzsRPHealth](Get-AzsRPHealth.md)
Returns a list of each service's health.
+### [Repair-AzsAlert](Repair-AzsAlert.md)
+Repairs the given alert.
+
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Repair-AzsAlert.md b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Repair-AzsAlert.md
new file mode 100644
index 000000000000..137c37ce5499
--- /dev/null
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Repair-AzsAlert.md
@@ -0,0 +1,163 @@
+---
+external help file: Azs.InfrastructureInsights.Admin-help.xml
+Module Name: Azs.InfrastructureInsights.Admin
+online version:
+schema: 2.0.0
+---
+
+# Repair-AzsAlert
+
+## SYNOPSIS
+Repairs the given alert.
+
+## SYNTAX
+
+### Repair (Default)
+```
+Repair-AzsAlert -Name [-Location ] [-ResourceGroupName ] [-Force] [-WhatIf] [-Confirm]
+ []
+```
+
+### InputObject
+```
+Repair-AzsAlert -InputObject [-Force] [-WhatIf] [-Confirm] []
+```
+
+## DESCRIPTION
+Repairs the given alert.
+
+## EXAMPLES
+
+### -------------------------- EXAMPLE 1 --------------------------
+```
+Repair-AzsAlert -Name f2147f3d-42ac-4316-8cbc-f0f9c18888b0
+```
+
+Repairs an alert by Name.
+
+### -------------------------- EXAMPLE 2 --------------------------
+```
+Get-AzsAlert -Name f2147f3d-42ac-4316-8cbc-f0f9c18888b0 | Repair-AzsAlert
+```
+
+Repairs an alert through piping.
+
+## PARAMETERS
+
+### -Force
+Don't ask for confirmation.
+
+```yaml
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: False
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+An alert returned from Get-AzsAlert.
+
+```yaml
+Type: Alert
+Parameter Sets: InputObject
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Location
+Name of the location.
+
+```yaml
+Type: String
+Parameter Sets: Repair
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Name
+The alert identifier.
+
+```yaml
+Type: String
+Parameter Sets: Repair
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource group name which the resource resides.
+
+```yaml
+Type: String
+Parameter Sets: Repair
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases: cf
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WhatIf
+Shows what would happen if the cmdlet runs.
+The cmdlet is not run.
+
+```yaml
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases: wi
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### CommonParameters
+This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
+
+## INPUTS
+
+## OUTPUTS
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin.csproj b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin.csproj
index 823e76b5a723..42c09ac3c647 100644
--- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin.csproj
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin.csproj
@@ -40,8 +40,8 @@
false
-
- ..\..\..\packages\Microsoft.AzureStack.Management.InfrastructureInsights.Admin.0.2.0-preview\lib\net452\Microsoft.AzureStack.Management.InfrastructureInsights.Admin.dll
+
+ ..\..\..\packages\Microsoft.AzureStack.Management.InfrastructureInsights.Admin.0.3.0-preview\lib\net452\Microsoft.AzureStack.Management.InfrastructureInsights.Admin.dll
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psd1 b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psd1
index 5881cf7dbc70..e6153c193344 100644
--- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psd1
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psd1
@@ -17,7 +17,7 @@ Licensed under the MIT License. See License.txt in the project root for license
RootModule = 'Azs.InfrastructureInsights.Admin.psm1'
# Version number of this module.
- ModuleVersion = '0.2.0'
+ ModuleVersion = '0.3.0'
# Supported PSEditions
# CompatiblePSEditions = @()
@@ -76,7 +76,8 @@ Licensed under the MIT License. See License.txt in the project root for license
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = 'Close-AzsAlert', 'Get-AzsRegionHealth',
- 'Get-AzsAlert', 'Get-AzsRPHealth', 'Get-AzsRegistrationHealth'
+ 'Get-AzsAlert', 'Get-AzsRPHealth', 'Get-AzsRegistrationHealth',
+ "Repair-AzsAlert"
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/ChangeLog.md b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/ChangeLog.md
index 0d3aececfd38..5cf6ca2e77bf 100644
--- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/ChangeLog.md
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/ChangeLog.md
@@ -18,19 +18,22 @@
- Additional information about change #1
-->
## Current Release
+## Version 0.3.0
+* New admin cmdlet added
+ * Repair-AzsAlert
## Version 0.2.0
* Module dependencies updated
- * AzureRM.Profile
- * AzureRM.Resources
+ * AzureRM.Profile
+ * AzureRM.Resources
* Support handling names of nested resources
- * Get-AzsAlert
- * Close-AzsAlert
- * Get-AzsRegistrationHealth
- * Get-AzsRPHealth
+ * Get-AzsAlert
+ * Close-AzsAlert
+ * Get-AzsRegistrationHealth
+ * Get-AzsRPHealth
* Deprecations
- * Get-AzsRegistrationHealth, the parameter ResourceHealthId is now an alias for Name
- * Get-AzsRegistrationHealth, the parameter ServiceRegistrationId is now an alias for ServiceRegistrationName
- * Get-AzsRPHealth, the parameter ServiceHealth is now an alias for Name
+ * Get-AzsRegistrationHealth, the parameter ResourceHealthId is now an alias for Name
+ * Get-AzsRegistrationHealth, the parameter ServiceRegistrationId is now an alias for ServiceRegistrationName
+ * Get-AzsRPHealth, the parameter ServiceHealth is now an alias for Name
* Bug fixes
- * Handle ErrrorAction correctly now
+ * Handle ErrrorAction correctly now
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Repair-AzsAlert.ps1 b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Repair-AzsAlert.ps1
new file mode 100644
index 000000000000..55a021907720
--- /dev/null
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Repair-AzsAlert.ps1
@@ -0,0 +1,145 @@
+<#
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the MIT License. See License.txt in the project root for license information.
+#>
+
+<#
+.SYNOPSIS
+ Repairs the given alert.
+
+.DESCRIPTION
+ Repairs the given alert.
+
+.PARAMETER Name
+ The alert identifier.
+
+.PARAMETER Location
+ Name of the location.
+
+.PARAMETER ResourceGroupName
+ Resource group name which the resource resides.
+
+.PARAMETER InputObject
+ An alert returned from Get-AzsAlert.
+
+.PARAMETER Force
+ Don't ask for confirmation.
+
+.EXAMPLE
+
+ PS C:\> Repair-AzsAlert -Name f2147f3d-42ac-4316-8cbc-f0f9c18888b0
+
+ Repairs an alert by Name.
+
+.EXAMPLE
+
+ PS C:\> Get-AzsAlert -Name f2147f3d-42ac-4316-8cbc-f0f9c18888b0 | Repair-AzsAlert
+
+ Repairs an alert through piping.
+
+#>
+function Repair-AzsAlert {
+ [CmdletBinding(DefaultParameterSetName = 'Repair', SupportsShouldProcess = $true)]
+ param(
+ [Parameter(Mandatory = $true, ParameterSetName = 'Repair')]
+ [ValidateNotNullOrEmpty()]
+ [System.String]
+ $Name,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'Repair')]
+ [System.String]
+ $Location,
+
+ [Parameter(Mandatory = $false, ParameterSetName = 'Repair')]
+ [ValidateLength(1, 90)]
+ [System.String]
+ $ResourceGroupName,
+
+ [Parameter(Mandatory = $true, ValueFromPipeline = $true, ParameterSetName = 'InputObject')]
+ [ValidateNotNullOrEmpty()]
+ [Microsoft.AzureStack.Management.InfrastructureInsights.Admin.Models.Alert]
+ $InputObject,
+
+ [Parameter(Mandatory = $false)]
+ [switch]
+ $Force
+ )
+
+ Begin {
+ Initialize-PSSwaggerDependencies -Azure
+ $tracerObject = $null
+ if (('continue' -eq $DebugPreference) -or ('inquire' -eq $DebugPreference)) {
+ $oldDebugPreference = $global:DebugPreference
+ $global:DebugPreference = "continue"
+ $tracerObject = New-PSSwaggerClientTracing
+ Register-PSSwaggerClientTracing -TracerObject $tracerObject
+ }
+ }
+
+ Process {
+
+ if ('InputObject' -eq $PsCmdlet.ParameterSetName) {
+ $GetArmResourceIdParameterValue_params = @{
+ IdTemplate = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{region}/alerts/{alertName}'
+ }
+
+ $GetArmResourceIdParameterValue_params['Id'] = $InputObject.Id
+ $ArmResourceIdParameterValues = Get-ArmResourceIdParameterValue @GetArmResourceIdParameterValue_params
+
+ $ResourceGroupName = $ArmResourceIdParameterValues['resourceGroupName']
+ $Location = $ArmResourceIdParameterValues['region']
+ $Name = $ArmResourceIdParameterValues['alertName']
+ }
+
+ if ($PSCmdlet.ShouldProcess("$Name" , "Repair Alert")) {
+ if ($Force.IsPresent -or $PSCmdlet.ShouldContinue("Repair Alert?", "Performing operation repair on alert $Name")) {
+
+ $NewServiceClient_params = @{
+ FullClientTypeName = 'Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient'
+ }
+
+ $GlobalParameterHashtable = @{}
+ $NewServiceClient_params['GlobalParameterHashtable'] = $GlobalParameterHashtable
+
+ $GlobalParameterHashtable['SubscriptionId'] = $null
+ if ($PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $GlobalParameterHashtable['SubscriptionId'] = $PSBoundParameters['SubscriptionId']
+ }
+
+ $InfrastructureInsightsAdminClient = New-ServiceClient @NewServiceClient_params
+
+ if ([System.String]::IsNullOrEmpty($Location)) {
+ $Location = (Get-AzureRMLocation).Location
+ }
+
+ if ([System.String]::IsNullOrEmpty($ResourceGroupName)) {
+ $ResourceGroupName = "System.$Location"
+ }
+
+ if ('Repair' -eq $PsCmdlet.ParameterSetName -or 'InputObject' -eq $PsCmdlet.ParameterSetName) {
+ Write-Verbose -Message 'Performing operation RepairWithHttpMessagesAsync on $InfrastructureInsightsAdminClient.'
+ $TaskResult = $InfrastructureInsightsAdminClient.Alerts.RepairWithHttpMessagesAsync($ResourceGroupName, $Location, $Name)
+ } else {
+ Write-Verbose -Message 'Failed to map parameter set to operation method.'
+ throw 'Module failed to find operation to execute.'
+ }
+
+ if ($TaskResult) {
+ $GetTaskResult_params = @{
+ TaskResult = $TaskResult
+ }
+
+ Get-TaskResult @GetTaskResult_params
+ }
+ }
+ }
+ }
+
+ End {
+ if ($tracerObject) {
+ $global:DebugPreference = $oldDebugPreference
+ Unregister-PSSwaggerClientTracing -TracerObject $tracerObject
+ }
+ }
+}
+
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/packages.config b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/packages.config
index e084d73120f5..1170bd79b97a 100644
--- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/packages.config
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/packages.config
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/Azs.InfrastructureInsights.Admin.Tests.csproj b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/Azs.InfrastructureInsights.Admin.Tests.csproj
index a83fe87d55f6..39d104a95d5e 100644
--- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/Azs.InfrastructureInsights.Admin.Tests.csproj
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/Azs.InfrastructureInsights.Admin.Tests.csproj
@@ -40,8 +40,8 @@
false
-
- ..\..\..\packages\Microsoft.AzureStack.Management.InfrastructureInsights.Admin.0.2.0-preview\lib\net452\Microsoft.AzureStack.Management.InfrastructureInsights.Admin.dll
+
+ ..\..\..\packages\Microsoft.AzureStack.Management.InfrastructureInsights.Admin.0.3.0-preview\lib\net452\Microsoft.AzureStack.Management.InfrastructureInsights.Admin.dll
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/Properties/AssemblyInfo.cs b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/Properties/AssemblyInfo.cs
index 418070de392d..76dfacb98a76 100644
--- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/Properties/AssemblyInfo.cs
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("2.0.0.0")]
+[assembly: AssemblyFileVersion("2.0.0.0")]
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/SessionRecords/InfrastructureInsightsAdminClient/TestRepairAlert.json b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/SessionRecords/InfrastructureInsightsAdminClient/TestRepairAlert.json
new file mode 100644
index 000000000000..b3d68ff7ae5e
--- /dev/null
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/SessionRecords/InfrastructureInsightsAdminClient/TestRepairAlert.json
@@ -0,0 +1,1496 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocz9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "130588b1-010d-4fb3-862c-b3db09ab63e8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 20:56:58 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvOvX24tSHPQiNiAzdjTmhETcu4DJufpBOao4MjDq+FV/7U1hX9zE3rMByjYssX2FsqKNNCodiLsCHchzHHFZDkBVVpe5D58Q+wRoGVag5OxTOAvPLzWAdUumgDURnqxJCO1pTXSFaAbA1IqojY1qA"
+ ],
+ "x-ms-correlation-request-id": [
+ "c3b2decb-de81-46e3-bb67-f5b0e76e49a4"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-request-id": [
+ "c3b2decb-de81-46e3-bb67-f5b0e76e49a4"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T205658Z:c3b2decb-de81-46e3-bb67-f5b0e76e49a4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "820"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local\",\r\n \"name\": \"local\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"usageMetrics\": [\r\n {\r\n \"name\": \"Physical memory\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"GB\",\r\n \"value\": 88.431640625\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"GB\",\r\n \"value\": 167.474609375\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Physical storage\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"TB\",\r\n \"value\": 0.43429387733340263\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"TB\",\r\n \"value\": 20.503023017197847\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Public IP address pools\",\r\n \"metricsValue\": [\r\n {\r\n \"name\": \"Used\",\r\n \"unit\": \"One\",\r\n \"value\": 33.0\r\n },\r\n {\r\n \"name\": \"Available\",\r\n \"unit\": \"One\",\r\n \"value\": 222.0\r\n }\r\n ]\r\n }\r\n ],\r\n \"alertSummary\": {\r\n \"criticalAlertCount\": 0,\r\n \"warningAlertCount\": 2\r\n }\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/wrongid/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvd3JvbmdpZC9yZXBhaXI/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "150978a1-c1e1-449f-a344-62621bd6654a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 20:58:14 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/150978a1-c1e1-449f-a344-62621bd6654a?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvgzAMUON3dw2p6bimBXK+3hLxz/c38yJffK9+KuL4idcu/P1G0Tupsj7Yn2AtJEm4OHShnQLZ7V11FgJVPPEyq39kV3pUE2hkxlxtEO7Blxluu+4kpo4/r+/lKFIn2Y0v9qpE5H5v1wP/G8fBawTG"
+ ],
+ "x-ms-correlation-request-id": [
+ "27c743b7-d064-44a8-927a-676538efac7c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1191"
+ ],
+ "x-ms-request-id": [
+ "27c743b7-d064-44a8-927a-676538efac7c"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T205814Z:27c743b7-d064-44a8-927a-676538efac7c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/150978a1-c1e1-449f-a344-62621bd6654a?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy8xNTA5NzhhMS1jMWUxLTQ0OWYtYTM0NC02MjYyMWJkNjY1NGE/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Connection": [
+ "close"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 20:59:35 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv24TLYWz8kccYwvdXfP1tSuLTuFJgVvYZujZ0o/sBeEbc7CDxiF+xbRnz/OlS0+oKsZt9svwK4j4TlZXmUZ3ov/NtnJe3eZIGVqIppfFz/au3GiPRi0pjCGKeEk0PTY/wG4/a+aUldNt+n+5VFTfa"
+ ],
+ "x-ms-correlation-request-id": [
+ "7a2a8c63-eba6-4743-af15-954e5378fc38"
+ ],
+ "x-ms-failure-cause": [
+ "service"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14975"
+ ],
+ "x-ms-request-id": [
+ "7a2a8c63-eba6-4743-af15-954e5378fc38"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T205935Z:7a2a8c63-eba6-4743-af15-954e5378fc38"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "269"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n },\r\n \"error\": {\r\n \"code\": \"RemediateAlertFailed\",\r\n \"message\": \"Failed to remediate alert 'wrongid' with error message: Exception of type 'Microsoft.AzureStack.Common.Infrastructure.Http.Client.ErrorModel.NotFoundException' was thrown.\"\r\n }\r\n}",
+ "StatusCode": 500
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8cfcd704-b2d3-49c8-b6d3-91d30303c336"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 20:59:42 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv/vPZQZUqxenU/Arj+z4Tr/+aMzjWgtzCTEBFKhaqtG09kpLF7eAGRmZaxxGC7NgNLegT6yOQIGIY/tKxXxx/hPlVif8TuQA3KscxgaWZgHIh59N9w0W9wcOQIsum2fsQbCvwGRRGXhQ4YXIeNbwY"
+ ],
+ "x-ms-correlation-request-id": [
+ "c1ac7ba4-3327-4b0b-bfb4-392f67d902e3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14974"
+ ],
+ "x-ms-request-id": [
+ "c1ac7ba4-3327-4b0b-bfb4-392f67d902e3"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T205942Z:c1ac7ba4-3327-4b0b-bfb4-392f67d902e3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "22323"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/2cba8f07-4140-470f-a750-16af2f3f0aa4\",\r\n \"name\": \"local/2cba8f07-4140-470f-a750-16af2f3f0aa4\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2018-11-16T20:47:45.7979075Z\",\r\n \"createdTimestamp\": \"2018-11-16T20:41:43.1351285Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role instance AZS-CA01 is unavailable. This might impact performance and availability of Azure Stack services.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"175149d2-aabe-49ea-9dd9-c404a4b42bdc\",\r\n \"alertId\": \"2cba8f07-4140-470f-a750-16af2f3f0aa4\",\r\n \"faultTypeId\": \"FRP.Heartbeat.InfraVM\",\r\n \"lastUpdatedTimestamp\": \"2018-11-16T20:47:45.7979075Z\",\r\n \"alertProperties\": {\r\n \"heartbeatAlert\": \"true\",\r\n \"nodeName\": \"AZS-CA01\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"1. Select the 'Repair' action to try to start the Infrastructure role instance, and then wait for the action to complete. Do not attempt to repair more than one alert at a time. Do not attempt the repair action if an update is in progress.\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 2. A few minutes after the Infrastructure role instance starts, the alert will automatically close. You can view the operational status of the role instance by navigating to the following \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"ResourceId\",\r\n \"resourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraroleinstances/AZS-CA01\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"AZS-CA01\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \". \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 3. If the alert remains active for more than a few minutes after the repair action completes, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \", and then contact support.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role instance unavailable\",\r\n \"impactedResourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AZS-CA01\",\r\n \"impactedResourceDisplayName\": \"AZS-CA01\",\r\n \"closedByUserAlias\": \"?api-version=1.0.0\",\r\n \"preview\": \"False\",\r\n \"hasValidRemediationAction\": true,\r\n \"remediationHistory\": {\r\n \"2018-11-16T20:44:01.7297579Z\": \"InProgress\",\r\n \"2018-11-16T20:44:22.5103805Z\": \"Complete\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/2fb6394d-0e1c-45e2-b3ff-89f52d801410\",\r\n \"name\": \"local/2fb6394d-0e1c-45e2-b3ff-89f52d801410\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"createdTimestamp\": \"2018-11-15T11:49:32.2454212Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Automatic backups are currently disabled. Infrastructure backups have not been created in the past 24 hours. This warning will appear every 24 hours until the issue is resolved.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"alertId\": \"2fb6394d-0e1c-45e2-b3ff-89f52d801410\",\r\n \"faultTypeId\": \"AzureStack.BackupController.BackupSchedulerPausedFault\",\r\n \"lastUpdatedTimestamp\": \"2018-11-16T11:49:32.425999Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"1. Address the issues that require the automatic backups to be disabled. \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 2. After all issues preventing backups are resolved, navigate to infrastructure backup and configure the settings to enable automatic backups.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"735044dd-b65d-4ac5-96db-7184d226f555\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Active\",\r\n \"title\": \"Automatic backups are disabled\",\r\n \"impactedResourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Backup.Admin/\",\r\n \"impactedResourceDisplayName\": \"Infrastructure backup\",\r\n \"preview\": \"False\",\r\n \"hasValidRemediationAction\": false,\r\n \"remediationHistory\": {\r\n \"2018-11-16T20:45:13.6208458Z\": \"Error\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/4504bee8-e574-4f7a-8b78-617bb8407707\",\r\n \"name\": \"local/4504bee8-e574-4f7a-8b78-617bb8407707\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2018-11-16T20:25:36.4927508Z\",\r\n \"createdTimestamp\": \"2018-11-16T20:20:34.1941039Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role instance AZS-CA01 is unavailable. This might impact performance and availability of Azure Stack services.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"175149d2-aabe-49ea-9dd9-c404a4b42bdc\",\r\n \"alertId\": \"4504bee8-e574-4f7a-8b78-617bb8407707\",\r\n \"faultTypeId\": \"FRP.Heartbeat.InfraVM\",\r\n \"lastUpdatedTimestamp\": \"2018-11-16T20:25:36.4927508Z\",\r\n \"alertProperties\": {\r\n \"heartbeatAlert\": \"true\",\r\n \"nodeName\": \"AZS-CA01\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"1. Select the 'Repair' action to try to start the Infrastructure role instance, and then wait for the action to complete. Do not attempt to repair more than one alert at a time. Do not attempt the repair action if an update is in progress.\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 2. A few minutes after the Infrastructure role instance starts, the alert will automatically close. You can view the operational status of the role instance by navigating to the following \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"ResourceId\",\r\n \"resourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraroleinstances/AZS-CA01\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"AZS-CA01\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \". \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 3. If the alert remains active for more than a few minutes after the repair action completes, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \", and then contact support.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role instance unavailable\",\r\n \"impactedResourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AZS-CA01\",\r\n \"impactedResourceDisplayName\": \"AZS-CA01\",\r\n \"closedByUserAlias\": \"?api-version=1.0.0\",\r\n \"preview\": \"False\",\r\n \"hasValidRemediationAction\": true,\r\n \"remediationHistory\": {\r\n \"2018-11-16T20:22:38.8036412Z\": \"InProgress\",\r\n \"2018-11-16T20:23:03.9122224Z\": \"Complete\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/62ab6c3b-679d-4149-aafd-f6948ae65500\",\r\n \"name\": \"local/62ab6c3b-679d-4149-aafd-f6948ae65500\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2018-11-14T12:56:48.6819014Z\",\r\n \"createdTimestamp\": \"2018-11-14T12:56:48.416278Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"Azure Stack is not activated.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"AzureBridge.NotActivated\",\r\n \"alertId\": \"62ab6c3b-679d-4149-aafd-f6948ae65500\",\r\n \"faultTypeId\": \"AzureBridge.NotActivated\",\r\n \"lastUpdatedTimestamp\": \"2018-11-14T12:56:48.6819014Z\",\r\n \"alertProperties\": {},\r\n \"remediation\": [\r\n {\r\n \"text\": \"You have not activated Azure Stack. To do so, see the following help article: \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-register\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-register\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \".\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceRegistrationId\": \"72a643b2-3486-4ec5-ae13-bcb932c37a61\",\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Activation Required\",\r\n \"impactedResourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoles/AzureBridge\",\r\n \"impactedResourceDisplayName\": \"Azure bridge\",\r\n \"preview\": \"False\",\r\n \"hasValidRemediationAction\": false,\r\n \"remediationHistory\": {}\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/6d256351-87db-4eef-94e8-eca539257596\",\r\n \"name\": \"local/6d256351-87db-4eef-94e8-eca539257596\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2018-11-15T04:31:00.3897381Z\",\r\n \"createdTimestamp\": \"2018-11-15T04:13:50.8045616Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role instance AZS-WASP01 is unavailable. This might impact performance and availability of Azure Stack services.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"21a670d7-ff74-4fea-ad51-6f919aa51f2f\",\r\n \"alertId\": \"6d256351-87db-4eef-94e8-eca539257596\",\r\n \"faultTypeId\": \"FRP.Heartbeat.InfraVM\",\r\n \"lastUpdatedTimestamp\": \"2018-11-15T04:31:00.3897381Z\",\r\n \"alertProperties\": {\r\n \"heartbeatAlert\": \"true\",\r\n \"nodeName\": \"AZS-WASP01\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"1. Select the 'Repair' action to try to start the Infrastructure role instance, and then wait for the action to complete. Do not attempt to repair more than one alert at a time. Do not attempt the repair action if an update is in progress.\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 2. A few minutes after the Infrastructure role instance starts, the alert will automatically close. You can view the operational status of the role instance by navigating to the following \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"ResourceId\",\r\n \"resourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraroleinstances/AZS-WASP01\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"AZS-WASP01\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \". \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 3. If the alert remains active for more than a few minutes after the repair action completes, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \", and then contact support.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role instance unavailable\",\r\n \"impactedResourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AZS-WASP01\",\r\n \"impactedResourceDisplayName\": \"AZS-WASP01\",\r\n \"closedByUserAlias\": \"?api-version=1.0.0\",\r\n \"preview\": \"False\",\r\n \"hasValidRemediationAction\": true,\r\n \"remediationHistory\": {\r\n \"2018-11-15T04:27:30.2504976Z\": \"InProgress\",\r\n \"2018-11-15T04:28:16.2339432Z\": \"Complete\",\r\n \"2018-11-15T22:31:23.9177348Z\": \"Error\",\r\n \"2018-11-15T22:33:01.8571773Z\": \"Error\",\r\n \"2018-11-15T23:05:56.437162Z\": \"Error\",\r\n \"2018-11-15T23:07:45.6605499Z\": \"Error\",\r\n \"2018-11-15T23:15:25.0076524Z\": \"Error\",\r\n \"2018-11-15T23:25:46.2501592Z\": \"Error\",\r\n \"2018-11-16T20:14:54.7225468Z\": \"Error\",\r\n \"2018-11-16T20:25:47.9140682Z\": \"Error\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/81d1af62-e329-4234-bc91-68cc139827cc\",\r\n \"name\": \"local/81d1af62-e329-4234-bc91-68cc139827cc\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2018-11-15T23:32:02.2538496Z\",\r\n \"createdTimestamp\": \"2018-11-15T22:15:27.4622141Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role instance AZS-CA01 is unavailable. This might impact performance and availability of Azure Stack services.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"175149d2-aabe-49ea-9dd9-c404a4b42bdc\",\r\n \"alertId\": \"81d1af62-e329-4234-bc91-68cc139827cc\",\r\n \"faultTypeId\": \"FRP.Heartbeat.InfraVM\",\r\n \"lastUpdatedTimestamp\": \"2018-11-15T23:32:02.2538496Z\",\r\n \"alertProperties\": {\r\n \"heartbeatAlert\": \"true\",\r\n \"nodeName\": \"AZS-CA01\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"1. Select the 'Repair' action to try to start the Infrastructure role instance, and then wait for the action to complete. Do not attempt to repair more than one alert at a time. Do not attempt the repair action if an update is in progress.\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 2. A few minutes after the Infrastructure role instance starts, the alert will automatically close. You can view the operational status of the role instance by navigating to the following \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"ResourceId\",\r\n \"resourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraroleinstances/AZS-CA01\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"AZS-CA01\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \". \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 3. If the alert remains active for more than a few minutes after the repair action completes, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \", and then contact support.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role instance unavailable\",\r\n \"impactedResourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AZS-CA01\",\r\n \"impactedResourceDisplayName\": \"AZS-CA01\",\r\n \"closedByUserAlias\": \"?api-version=1.0.0\",\r\n \"preview\": \"False\",\r\n \"hasValidRemediationAction\": true,\r\n \"remediationHistory\": {\r\n \"2018-11-15T23:28:51.8626516Z\": \"InProgress\",\r\n \"2018-11-15T23:29:12.6431464Z\": \"Complete\",\r\n \"2018-11-16T20:28:01.6500849Z\": \"Error\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/d28e9d2a-c8a3-42a7-900d-eb64fe6b752c\",\r\n \"name\": \"local/d28e9d2a-c8a3-42a7-900d-eb64fe6b752c\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2018-11-14T16:04:55.776444Z\",\r\n \"createdTimestamp\": \"2018-11-14T16:01:54.3676954Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role instance AZS-CA01 is unavailable. This might impact performance and availability of Azure Stack services.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"175149d2-aabe-49ea-9dd9-c404a4b42bdc\",\r\n \"alertId\": \"d28e9d2a-c8a3-42a7-900d-eb64fe6b752c\",\r\n \"faultTypeId\": \"FRP.Heartbeat.InfraVM\",\r\n \"lastUpdatedTimestamp\": \"2018-11-14T16:04:55.776444Z\",\r\n \"alertProperties\": {\r\n \"heartbeatAlert\": \"true\",\r\n \"nodeName\": \"AZS-CA01\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"1. Select the 'Repair' action to try to start the Infrastructure role instance, and then wait for the action to complete. Do not attempt to repair more than one alert at a time. Do not attempt the repair action if an update is in progress.\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 2. A few minutes after the Infrastructure role instance starts, the alert will automatically close. You can view the operational status of the role instance by navigating to the following \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"ResourceId\",\r\n \"resourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraroleinstances/AZS-CA01\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"AZS-CA01\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \". \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 3. If the alert remains active for more than a few minutes after the repair action completes, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \", and then contact support.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role instance unavailable\",\r\n \"impactedResourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AZS-CA01\",\r\n \"impactedResourceDisplayName\": \"AZS-CA01\",\r\n \"closedByUserAlias\": \"?api-version=1.0.0\",\r\n \"preview\": \"False\",\r\n \"hasValidRemediationAction\": true,\r\n \"remediationHistory\": {}\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/d74f40e9-c9b1-41d0-b7d6-d7d0971c438d\",\r\n \"name\": \"local/d74f40e9-c9b1-41d0-b7d6-d7d0971c438d\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"closedTimestamp\": \"2018-11-15T23:50:09.9009472Z\",\r\n \"createdTimestamp\": \"2018-11-15T23:44:07.1923436Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role instance AZS-CA01 is unavailable. This might impact performance and availability of Azure Stack services.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"175149d2-aabe-49ea-9dd9-c404a4b42bdc\",\r\n \"alertId\": \"d74f40e9-c9b1-41d0-b7d6-d7d0971c438d\",\r\n \"faultTypeId\": \"FRP.Heartbeat.InfraVM\",\r\n \"lastUpdatedTimestamp\": \"2018-11-15T23:50:09.9009472Z\",\r\n \"alertProperties\": {\r\n \"heartbeatAlert\": \"true\",\r\n \"nodeName\": \"AZS-CA01\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"1. Select the 'Repair' action to try to start the Infrastructure role instance, and then wait for the action to complete. Do not attempt to repair more than one alert at a time. Do not attempt the repair action if an update is in progress.\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 2. A few minutes after the Infrastructure role instance starts, the alert will automatically close. You can view the operational status of the role instance by navigating to the following \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"ResourceId\",\r\n \"resourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraroleinstances/AZS-CA01\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"AZS-CA01\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \". \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 3. If the alert remains active for more than a few minutes after the repair action completes, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \", and then contact support.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Closed\",\r\n \"title\": \"Infrastructure role instance unavailable\",\r\n \"impactedResourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AZS-CA01\",\r\n \"impactedResourceDisplayName\": \"AZS-CA01\",\r\n \"closedByUserAlias\": \"?api-version=1.0.0\",\r\n \"preview\": \"False\",\r\n \"hasValidRemediationAction\": true,\r\n \"remediationHistory\": {\r\n \"2018-11-15T23:47:05.6806432Z\": \"InProgress\",\r\n \"2018-11-15T23:47:26.4454959Z\": \"Complete\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/dd33193b-b334-4675-a48c-5aa96d2c6974\",\r\n \"name\": \"local/dd33193b-b334-4675-a48c-5aa96d2c6974\",\r\n \"type\": \"Microsoft.InfrastructureInsights.Admin/regionHealths/alerts\",\r\n \"location\": \"local\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"createdTimestamp\": \"2018-11-16T20:53:48.4109847Z\",\r\n \"description\": [\r\n {\r\n \"text\": \"The infrastructure role instance AZS-CA01 is unavailable. This might impact performance and availability of Azure Stack services.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"faultId\": \"175149d2-aabe-49ea-9dd9-c404a4b42bdc\",\r\n \"alertId\": \"dd33193b-b334-4675-a48c-5aa96d2c6974\",\r\n \"faultTypeId\": \"FRP.Heartbeat.InfraVM\",\r\n \"lastUpdatedTimestamp\": \"2018-11-16T20:58:50.6326292Z\",\r\n \"alertProperties\": {\r\n \"heartbeatAlert\": \"true\",\r\n \"nodeName\": \"AZS-CA01\"\r\n },\r\n \"remediation\": [\r\n {\r\n \"text\": \"1. Select the 'Repair' action to try to start the Infrastructure role instance, and then wait for the action to complete. Do not attempt to repair more than one alert at a time. Do not attempt the repair action if an update is in progress.\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 2. A few minutes after the Infrastructure role instance starts, the alert will automatically close. You can view the operational status of the role instance by navigating to the following \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"ResourceId\",\r\n \"resourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraroleinstances/AZS-CA01\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"AZS-CA01\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \". \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"NewLine\"\r\n },\r\n {\r\n \"text\": \" 3. If the alert remains active for more than a few minutes after the repair action completes, start the log file collection process using the guidance from \",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"linkType\": \"Uri\",\r\n \"uri\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"LinkBegin\"\r\n },\r\n {\r\n \"text\": \"https://aka.ms/azurestacklogfiles\",\r\n \"type\": \"Text\"\r\n },\r\n {\r\n \"type\": \"LinkEnd\"\r\n },\r\n {\r\n \"text\": \", and then contact support.\",\r\n \"type\": \"Text\"\r\n }\r\n ],\r\n \"resourceProviderRegistrationId\": \"e56bc7b8-c8b5-4e25-b00c-4f951effb22c\",\r\n \"severity\": \"Warning\",\r\n \"state\": \"Active\",\r\n \"title\": \"Infrastructure role instance unavailable\",\r\n \"impactedResourceId\": \"/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/system.local/providers/Microsoft.Fabric.Admin/fabricLocations/local/infraRoleInstances/AZS-CA01\",\r\n \"impactedResourceDisplayName\": \"AZS-CA01\",\r\n \"preview\": \"False\",\r\n \"hasValidRemediationAction\": true,\r\n \"remediationHistory\": {}\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/2cba8f07-4140-470f-a750-16af2f3f0aa4/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvMmNiYThmMDctNDE0MC00NzBmLWE3NTAtMTZhZjJmM2YwYWE0L3JlcGFpcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "99013973-b43f-4d32-adec-185a0bdf3dec"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 20:59:47 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/99013973-b43f-4d32-adec-185a0bdf3dec?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv1wBgNik/1xazDVUVc3YYGjIddbUXRqNrT6gTdC8baoHBRo0wcMwuMAV92ZrniOUfKHYhIgAP9c4SrwRDb6yi73ZZTAP+PLYylybiHRN4edxh4nEL4/8QUGB/lnDjZfUGpAQlXDtveDiazqYsk9lI"
+ ],
+ "x-ms-correlation-request-id": [
+ "bade8882-a09c-46d2-b66c-ae0c50bf6b46"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1190"
+ ],
+ "x-ms-request-id": [
+ "bade8882-a09c-46d2-b66c-ae0c50bf6b46"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T205947Z:bade8882-a09c-46d2-b66c-ae0c50bf6b46"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/99013973-b43f-4d32-adec-185a0bdf3dec?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy85OTAxMzk3My1iNDNmLTRkMzItYWRlYy0xODVhMGJkZjNkZWM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:00:47 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv7CuszXri/2hxOU0/Mmu+ZransX2znerTD5erC05mqprUliAPE0vyD/j0T8v0FkknYeuF5ICboV/BCdGmYwRlHxp86alf8kfkgDw13jECAubZhT8z3DXZT/DTVBefK82Gagmj4lnafKRyp4JcVHpz"
+ ],
+ "x-ms-correlation-request-id": [
+ "207c1181-5b4b-41fc-a226-3f63bb40a27e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14973"
+ ],
+ "x-ms-request-id": [
+ "207c1181-5b4b-41fc-a226-3f63bb40a27e"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210047Z:207c1181-5b4b-41fc-a226-3f63bb40a27e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "329"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n },\r\n \"error\": {\r\n \"code\": \"RemediateAlertPrecheckFailed\",\r\n \"message\": \"Alert remediation for alert '2cba8f07-4140-470f-a750-16af2f3f0aa4' failed prerequisite checks. Prerequiste checks include that the alert exists, is open, has a remediation action, and remediation is not already in progress.\"\r\n }\r\n}",
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/2fb6394d-0e1c-45e2-b3ff-89f52d801410/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvMmZiNjM5NGQtMGUxYy00NWUyLWIzZmYtODlmNTJkODAxNDEwL3JlcGFpcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5339e49c-fb61-4f3e-9a6e-882f371af49a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:01:11 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/5339e49c-fb61-4f3e-9a6e-882f371af49a?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvuPyGX6VtWxQ2sEgvTz7botgSrBlcnr465+UngyCW1Tm+VZ+QmPzxUsng/7wAOxl2vsUWQVrH8Pd9ZAv+3TPaKE0n7cAtzLx6chV/tjofSakr/ttaBEAT0yUCmcmZhRnfucns7DG7m/tkmfQcUmqY"
+ ],
+ "x-ms-correlation-request-id": [
+ "4500dce8-f682-46aa-a7ee-81d02d42a6c7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1189"
+ ],
+ "x-ms-request-id": [
+ "4500dce8-f682-46aa-a7ee-81d02d42a6c7"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210111Z:4500dce8-f682-46aa-a7ee-81d02d42a6c7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/5339e49c-fb61-4f3e-9a6e-882f371af49a?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy81MzM5ZTQ5Yy1mYjYxLTRmM2UtOWE2ZS04ODJmMzcxYWY0OWE/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:02:11 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv8hXZiahCogVEfNo6AHFO/mnIsxYiAKDUAMxFU5ihSG2QAFRIU9TPcfq1wQsEbJ+QSga5sSw1+j+2Kw/1669r6SjoEnUPWevYktVahr/F1SZSOS8qqDzXw3PfvuYRQ7acFQ340R6L4AetzpE7mcj7"
+ ],
+ "x-ms-correlation-request-id": [
+ "916b28c0-ce7f-4035-9bec-4c41551bf31b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14972"
+ ],
+ "x-ms-request-id": [
+ "916b28c0-ce7f-4035-9bec-4c41551bf31b"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210211Z:916b28c0-ce7f-4035-9bec-4c41551bf31b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "329"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n },\r\n \"error\": {\r\n \"code\": \"RemediateAlertPrecheckFailed\",\r\n \"message\": \"Alert remediation for alert '2fb6394d-0e1c-45e2-b3ff-89f52d801410' failed prerequisite checks. Prerequiste checks include that the alert exists, is open, has a remediation action, and remediation is not already in progress.\"\r\n }\r\n}",
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/4504bee8-e574-4f7a-8b78-617bb8407707/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvNDUwNGJlZTgtZTU3NC00ZjdhLThiNzgtNjE3YmI4NDA3NzA3L3JlcGFpcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "2265d350-ca04-4d38-9755-d60a104af698"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:02:38 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/2265d350-ca04-4d38-9755-d60a104af698?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRva6lVHA//kNl9TVv7Pe/VTm6Ae+cJtwvAQd3CsstNr8M8BIcxUt09m0JhpfTvS8pP1Wqti21vNsRAkAmh2Bebn+mY8pWd9PsWrz8d1dowH3Cdw7Og8wnKhpKOv9GMjnETUGcDpXCU/KyaqNZoyP6t"
+ ],
+ "x-ms-correlation-request-id": [
+ "136db9e5-911d-471d-ad50-925b872acb7f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1188"
+ ],
+ "x-ms-request-id": [
+ "136db9e5-911d-471d-ad50-925b872acb7f"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210238Z:136db9e5-911d-471d-ad50-925b872acb7f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/2265d350-ca04-4d38-9755-d60a104af698?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy8yMjY1ZDM1MC1jYTA0LTRkMzgtOTc1NS1kNjBhMTA0YWY2OTg/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:03:38 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvJnlKaBDKwwGjn/GWE8+mUCWtG0kHLab1z75dOrd1sZHcVNJhN6Y+a8a+eBPw8PkV02859hZmeRg3Xtam0n1u5zVJ/H4QJ9TnxaFyoEFIbwBoq1CSlvjrn8Pd7uOJsalw5Y3ZPbGuEFk+WiYvDrGz"
+ ],
+ "x-ms-correlation-request-id": [
+ "9433877d-3ba5-4571-95bf-4d9f1f127f78"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14971"
+ ],
+ "x-ms-request-id": [
+ "9433877d-3ba5-4571-95bf-4d9f1f127f78"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210338Z:9433877d-3ba5-4571-95bf-4d9f1f127f78"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "329"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n },\r\n \"error\": {\r\n \"code\": \"RemediateAlertPrecheckFailed\",\r\n \"message\": \"Alert remediation for alert '4504bee8-e574-4f7a-8b78-617bb8407707' failed prerequisite checks. Prerequiste checks include that the alert exists, is open, has a remediation action, and remediation is not already in progress.\"\r\n }\r\n}",
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/62ab6c3b-679d-4149-aafd-f6948ae65500/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvNjJhYjZjM2ItNjc5ZC00MTQ5LWFhZmQtZjY5NDhhZTY1NTAwL3JlcGFpcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "dea78e13-816f-4671-abdf-f22e95429aa6"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:03:55 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/dea78e13-816f-4671-abdf-f22e95429aa6?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvUjIGe3x+cmCybeUeb78ujJVwPDMXrjKXfM4fNtmHQ33rDdwF07snEGTOKOc5js49p/T05OzLjRKPiUiJW9mOHZyDGckuWraSAQMGax1fGzvdwzr/zxkXNxntfvZ2zd4r77ZLgEj3Y7CNaZ42nFtw"
+ ],
+ "x-ms-correlation-request-id": [
+ "e5eb79a3-4792-4021-8731-9a753422b005"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1187"
+ ],
+ "x-ms-request-id": [
+ "e5eb79a3-4792-4021-8731-9a753422b005"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210355Z:e5eb79a3-4792-4021-8731-9a753422b005"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/dea78e13-816f-4671-abdf-f22e95429aa6?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy9kZWE3OGUxMy04MTZmLTQ2NzEtYWJkZi1mMjJlOTU0MjlhYTY/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:04:55 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvqIdATh+L6gZgYr59czD99neRinFxg3tx0uJzVQXbhSBCJAQn0ws65fvsFgpl64NeBOH4Jhp4b/OL+q9XSs2Kezu5HfGv01RxyftusMi6UngI2TTY40fMGr2Pq6wEwdFgUk2d5jKBLpgc57e7/53f"
+ ],
+ "x-ms-correlation-request-id": [
+ "dc9592ad-73fa-41d1-afa6-14d8394867c2"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14970"
+ ],
+ "x-ms-request-id": [
+ "dc9592ad-73fa-41d1-afa6-14d8394867c2"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210455Z:dc9592ad-73fa-41d1-afa6-14d8394867c2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "329"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n },\r\n \"error\": {\r\n \"code\": \"RemediateAlertPrecheckFailed\",\r\n \"message\": \"Alert remediation for alert '62ab6c3b-679d-4149-aafd-f6948ae65500' failed prerequisite checks. Prerequiste checks include that the alert exists, is open, has a remediation action, and remediation is not already in progress.\"\r\n }\r\n}",
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/6d256351-87db-4eef-94e8-eca539257596/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvNmQyNTYzNTEtODdkYi00ZWVmLTk0ZTgtZWNhNTM5MjU3NTk2L3JlcGFpcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "dece287f-d718-4a94-886b-ecc6f26d640a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:05:08 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/dece287f-d718-4a94-886b-ecc6f26d640a?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvA0ea4FXL4DnoeQBxmxbEABkypdwfUuCkiKBDiNA3DDn33xRhBNbf9x9xRHoShsTEU+rMZMK7o5rjoSJ4Gba52naTba9c8KTA8f8KpkxNXi9e8IMyQVOH1Ygh6vcHoOdUWHMNsuTBOXN0+I9UvNqt"
+ ],
+ "x-ms-correlation-request-id": [
+ "795aff20-e81d-44ab-8295-a24af612ad27"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1186"
+ ],
+ "x-ms-request-id": [
+ "795aff20-e81d-44ab-8295-a24af612ad27"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210508Z:795aff20-e81d-44ab-8295-a24af612ad27"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/dece287f-d718-4a94-886b-ecc6f26d640a?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy9kZWNlMjg3Zi1kNzE4LTRhOTQtODg2Yi1lY2M2ZjI2ZDY0MGE/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:06:08 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvLHUxPaVxQns4ZVS3TfI0O61pKik7uyKuN34QvZo66bnld7/5ceHGAjHRrz3TqmMBp17hzMuHte5ITmt8FEEGff4fYPdm0IjOkloeEVb9h9WOhl4MkHGHlOOaasbLK8R/T5DxoKR/FkwS245DZCKW"
+ ],
+ "x-ms-correlation-request-id": [
+ "29e8091c-70f5-45bf-9314-e59a0432e1e5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14969"
+ ],
+ "x-ms-request-id": [
+ "29e8091c-70f5-45bf-9314-e59a0432e1e5"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210608Z:29e8091c-70f5-45bf-9314-e59a0432e1e5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "329"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n },\r\n \"error\": {\r\n \"code\": \"RemediateAlertPrecheckFailed\",\r\n \"message\": \"Alert remediation for alert '6d256351-87db-4eef-94e8-eca539257596' failed prerequisite checks. Prerequiste checks include that the alert exists, is open, has a remediation action, and remediation is not already in progress.\"\r\n }\r\n}",
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/81d1af62-e329-4234-bc91-68cc139827cc/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvODFkMWFmNjItZTMyOS00MjM0LWJjOTEtNjhjYzEzOTgyN2NjL3JlcGFpcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3504c88f-62e1-4fd2-a1e9-19d790615b3e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:06:18 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/3504c88f-62e1-4fd2-a1e9-19d790615b3e?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvYxtzTZoe5H03iTr38qJeQ8v7uP6adpvKXccpdexfhH6spLdvxfTTJfxFBUNg7+Owi11zJYRvAVvJnvV5g8+9buneXUn4/gU8+OgMuehs/Ot4efB1n644SsrjvGJVvoKu03Tka0txIkAvs/y2/7V8"
+ ],
+ "x-ms-correlation-request-id": [
+ "eba5c414-d41c-4e1e-81c7-45935d73f51c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1185"
+ ],
+ "x-ms-request-id": [
+ "eba5c414-d41c-4e1e-81c7-45935d73f51c"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210618Z:eba5c414-d41c-4e1e-81c7-45935d73f51c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/3504c88f-62e1-4fd2-a1e9-19d790615b3e?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy8zNTA0Yzg4Zi02MmUxLTRmZDItYTFlOS0xOWQ3OTA2MTViM2U/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:07:18 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvPkoj6ZtC1uym/YTpo6WQ1/SVjjMQpu8LMRLnrVPQw7m9wyc9fgCrnz/lWK4bsBckBD4tUmoONRCMKYiDUDzxgm80POYD47v98avyiRYHEFMM02CsjNTSZhBkqnPpWDGJ4CygwhY12WRWaQOQeCXy"
+ ],
+ "x-ms-correlation-request-id": [
+ "5881c668-9e2e-4a5a-937f-06acd4f053b8"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14968"
+ ],
+ "x-ms-request-id": [
+ "5881c668-9e2e-4a5a-937f-06acd4f053b8"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210719Z:5881c668-9e2e-4a5a-937f-06acd4f053b8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "329"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n },\r\n \"error\": {\r\n \"code\": \"RemediateAlertPrecheckFailed\",\r\n \"message\": \"Alert remediation for alert '81d1af62-e329-4234-bc91-68cc139827cc' failed prerequisite checks. Prerequiste checks include that the alert exists, is open, has a remediation action, and remediation is not already in progress.\"\r\n }\r\n}",
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/d28e9d2a-c8a3-42a7-900d-eb64fe6b752c/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvZDI4ZTlkMmEtYzhhMy00MmE3LTkwMGQtZWI2NGZlNmI3NTJjL3JlcGFpcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d6f43659-aea0-48ee-ab32-a08160546ed0"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:08:49 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/d6f43659-aea0-48ee-ab32-a08160546ed0?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvVHlkciee8NnX5lNyf81DoIOtEB1IXds8ydHxocrU0WiqQPWfbNMKjmnbisJ/clwzeLL5HH+NwH5kz24Teb3DmAPdJ3/A7GIqJu5bvj98OXm/D26Rw34IONQ5GgaR/b+1U0igYe9yKcs3KQuV/bFz"
+ ],
+ "x-ms-correlation-request-id": [
+ "e6d8408a-f893-4320-a630-419b12471360"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1184"
+ ],
+ "x-ms-request-id": [
+ "e6d8408a-f893-4320-a630-419b12471360"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210850Z:e6d8408a-f893-4320-a630-419b12471360"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/d6f43659-aea0-48ee-ab32-a08160546ed0?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy9kNmY0MzY1OS1hZWEwLTQ4ZWUtYWIzMi1hMDgxNjA1NDZlZDA/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:09:50 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvEsdKz3tD7ZXrwaV0wD7MDAwQt3gntZsgaQVLcGJbj4FG5RGYRk1wU18JP6acro25xvBRxUa5cg5I+oxbN7HXcEHKA0K7WjGcS+ovFKRnldO2SUthLMsvlLD9uM0EiKh3ZP1JL4/CKhXA6P1ubbnt"
+ ],
+ "x-ms-correlation-request-id": [
+ "5077bd54-54cc-46c8-a5e6-5123917ae2f4"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14967"
+ ],
+ "x-ms-request-id": [
+ "5077bd54-54cc-46c8-a5e6-5123917ae2f4"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T210950Z:5077bd54-54cc-46c8-a5e6-5123917ae2f4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "329"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n },\r\n \"error\": {\r\n \"code\": \"RemediateAlertPrecheckFailed\",\r\n \"message\": \"Alert remediation for alert 'd28e9d2a-c8a3-42a7-900d-eb64fe6b752c' failed prerequisite checks. Prerequiste checks include that the alert exists, is open, has a remediation action, and remediation is not already in progress.\"\r\n }\r\n}",
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/d74f40e9-c9b1-41d0-b7d6-d7d0971c438d/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvZDc0ZjQwZTktYzliMS00MWQwLWI3ZDYtZDdkMDk3MWM0MzhkL3JlcGFpcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "509d40d8-00e5-4d30-a310-25923cfb3f43"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:10:53 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/509d40d8-00e5-4d30-a310-25923cfb3f43?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvsouWo/XG2voTgfO4ieBQGClD2/rJ19mFFNVVjM2ph7L12wl2aMqprNyoJIhktYbiKSUY8XoLiU7yi7aI2yksrBvRuWGQSQEwMi2eDbLhXo+K+QkbYVBbSDI39g2JMpkd5PIeq0DWEJmusokzA/y1"
+ ],
+ "x-ms-correlation-request-id": [
+ "cb920a1b-f0c7-4b0f-af53-76af7356be71"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1183"
+ ],
+ "x-ms-request-id": [
+ "cb920a1b-f0c7-4b0f-af53-76af7356be71"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T211053Z:cb920a1b-f0c7-4b0f-af53-76af7356be71"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/509d40d8-00e5-4d30-a310-25923cfb3f43?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy81MDlkNDBkOC0wMGU1LTRkMzAtYTMxMC0yNTkyM2NmYjNmNDM/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:11:53 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvEsYa21nJrgkRjGayTiE4W4QvJa9sQqVddYVwWO6Jwabt1cPKBtPFew2F8++5/i2zfvwHFhFSgpTSHKzJ3IzBBG0Np1kQ0hXVNUzH38v8oASQigl5FYb2/NL6jucaTxUQy/fXE+PWnXLI2YMO2wAA"
+ ],
+ "x-ms-correlation-request-id": [
+ "3b045beb-b665-45b8-bc53-da2b09531eeb"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14966"
+ ],
+ "x-ms-request-id": [
+ "3b045beb-b665-45b8-bc53-da2b09531eeb"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T211153Z:3b045beb-b665-45b8-bc53-da2b09531eeb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "329"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\"\r\n },\r\n \"error\": {\r\n \"code\": \"RemediateAlertPrecheckFailed\",\r\n \"message\": \"Alert remediation for alert 'd74f40e9-c9b1-41d0-b7d6-d7d0971c438d' failed prerequisite checks. Prerequiste checks include that the alert exists, is open, has a remediation action, and remediation is not already in progress.\"\r\n }\r\n}",
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/alerts/dd33193b-b334-4675-a48c-5aa96d2c6974/repair?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9hbGVydHMvZGQzMzE5M2ItYjMzNC00Njc1LWE0OGMtNWFhOTZkMmM2OTc0L3JlcGFpcj9hcGktdmVyc2lvbj0yMDE2LTA1LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0a5c6f93-fee9-4725-b015-0d7be4bf206f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:12:09 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://adminmanagement.local.azurestack.external/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/0a5c6f93-fee9-4725-b015-0d7be4bf206f?api-version=2016-05-01"
+ ],
+ "Retry-After": [
+ "60"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvTUxS96S1+RQhr8exxVDkR/OAcEERTBeEviGOJJf7kuGVfBVy/W4fGGKIF8h2l3PK71g136Xv7cUOtCoIZDJarwf2JRKgCI7piekM8G3K+maux4hBMqOvytEEah5FuSvFHuze2UL0LnC/L7WFxmHZ"
+ ],
+ "x-ms-correlation-request-id": [
+ "2249c070-1afa-42bf-bb92-be5e48c48696"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1182"
+ ],
+ "x-ms-request-id": [
+ "2249c070-1afa-42bf-bb92-be5e48c48696"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T211209Z:2249c070-1afa-42bf-bb92-be5e48c48696"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/0a5c6f93-fee9-4725-b015-0d7be4bf206f?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy8wYTVjNmY5My1mZWU5LTQ3MjUtYjAxNS0wZDdiZTRiZjIwNmY/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:13:09 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvS0LOPvz5fTSajPUN/hXpLRna+YEk5c+3C9fNRypVFODqdfz5pk2Sb2w884i2h/XdkFFCrA6A/9abulUp6vbsZJBoBnor6T4YeVySd7v6qxh5+HmpnKN3KLtudbcvyRy5sGIu2c6LjV4bEGY/hF8U"
+ ],
+ "x-ms-correlation-request-id": [
+ "6dce8cdf-c83d-409d-9a7d-609ec183f7ee"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14965"
+ ],
+ "x-ms-request-id": [
+ "6dce8cdf-c83d-409d-9a7d-609ec183f7ee"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T211309Z:6dce8cdf-c83d-409d-9a7d-609ec183f7ee"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "48"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/22fc5687-5914-49c3-8280-34f8a089827e/resourceGroups/System.local/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/local/healthServiceOperationResults/0a5c6f93-fee9-4725-b015-0d7be4bf206f?api-version=2016-05-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjJmYzU2ODctNTkxNC00OWMzLTgyODAtMzRmOGEwODk4MjdlL3Jlc291cmNlR3JvdXBzL1N5c3RlbS5sb2NhbC9wcm92aWRlcnMvTWljcm9zb2Z0LkluZnJhc3RydWN0dXJlSW5zaWdodHMuQWRtaW4vcmVnaW9uSGVhbHRocy9sb2NhbC9oZWFsdGhTZXJ2aWNlT3BlcmF0aW9uUmVzdWx0cy8wYTVjNmY5My1mZWU5LTQ3MjUtYjAxNS0wZDdiZTRiZjIwNmY/YXBpLXZlcnNpb249MjAxNi0wNS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17134.",
+ "Microsoft.AzureStack.Management.InfrastructureInsights.Admin.InfrastructureInsightsAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 16 Nov 2018 21:13:09 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv51we+H3IkKNErFKyFWD6RqV/sKoh7Bj/g5OtKmZuVzvLZFhMa5ROD5/YCXFvzW0aExf6EuAzN/eXs7mT6uUofpM4YjvxPtmEHW+xQBV8I5zxGbnoK3VakfO8ucKLHX/mpkEQdE8+fFF26fEFZlOB"
+ ],
+ "x-ms-correlation-request-id": [
+ "b7e4831a-306e-4731-a7bb-141c79483ed7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14964"
+ ],
+ "x-ms-request-id": [
+ "b7e4831a-306e-4731-a7bb-141c79483ed7"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20181116T211309Z:b7e4831a-306e-4731-a7bb-141c79483ed7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "48"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "22fc5687-5914-49c3-8280-34f8a089827e"
+ }
+}
\ No newline at end of file
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/packages.config b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/packages.config
index 884380c449c4..c86ac7d5bce3 100644
--- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/packages.config
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/packages.config
@@ -1,4 +1,4 @@
-
+
diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/src/Alert.Tests.ps1 b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/src/Alert.Tests.ps1
index f1d4d8d95e92..3229d4cfcceb 100644
--- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/src/Alert.Tests.ps1
+++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Tests/src/Alert.Tests.ps1
@@ -18,22 +18,23 @@
.DESCRIPTION
Run AzureStack fabric admin edge gateway pool tests using either mock client or our client.
- The mock client allows for recording and playback. This allows for offline tests.
+ The mock client allows for recording and playback. This allows for offline tests.
.PARAMETER RunRaw
Run using our client creation path.
.EXAMPLE
PS C:\> .\src\Alert.Tests.ps1
- Describing Alerts
- [+] TestListAlerts 349ms
- [+] TestGetAlert 175ms
- [+] TestGetAllAlerts 866ms
- [+] TestCloseAlert 171ms
+ Describing Alerts
+ [+] TestListAlerts 349ms
+ [+] TestGetAlert 175ms
+ [+] TestGetAllAlerts 866ms
+ [+] TestCloseAlert 171ms
+ [+] TestRepairAlert 390ms
.NOTES
Author: Jeffrey Robinson
- Copyright: Microsoft
+ Copyright: Microsoft
Date: August 24, 2017
#>
param(
@@ -225,5 +226,51 @@ InModuleScope Azs.InfrastructureInsights.Admin {
}
}
}
+
+ it "TestRepairAlert" -Skip:$('TestRepairAlert' -in $global:SkippedTests) {
+ $global:TestName = 'TestRepairAlert'
+
+ $ErrorActionPreference = "SilentlyContinue"
+
+ # Test repair for a non-existing alert
+ Write-Verbose "Repairing alert with an invalid name"
+ Repair-AzsAlert -Name "wrongid" -Location "local" -Force -ErrorVariable invalidAlertErr
+ if(($invalidAlertErr -ne $null) -and ($invalidAlertErr -like '*RemediateAlertFailed*') -and ($invalidAlertErr -like '*NotFoundException*'))
+ {
+ Write-Verbose "As expected the repair operation failed"
+ }
+ else
+ {
+ throw $invalidAlertErr
+ }
+
+ $Alerts = Get-AzsAlert -ResourceGroupName $global:ResourceGroupName -Location $global:location
+ $Alerts | Should Not Be $null
+ foreach ($Alert in $Alerts)
+ {
+ $Alert | Should not be $null
+ $Alert.State | Should not be $null
+ Write-Verbose "Repairing alert $($Alert.Name)"
+ $Alert | Repair-AzsAlert -Force -ErrorVariable validAlertErr
+ if($validAlertErr -ne $null){
+ if ($Alert.State -eq "Active" -and $Alert.hasValidRemediationAction -eq $true)
+ {
+ throw "Repair operation failed with $validAlertErr"
+ }
+ else
+ {
+ if($validAlertErr -like '*RemediateAlertPrecheckFailed*')
+ {
+ Write-Verbose "As expected the repair operation failed"
+ }
+ else
+ {
+ throw "Repair operation failed with $validAlertErr"
+ }
+ }
+ }
+ }
+ return
+ }
}
}
diff --git a/src/StackAdmin/AzureStack/AzureStack.psd1 b/src/StackAdmin/AzureStack/AzureStack.psd1
index 008d60500c6b..9faacf7abcc8 100644
--- a/src/StackAdmin/AzureStack/AzureStack.psd1
+++ b/src/StackAdmin/AzureStack/AzureStack.psd1
@@ -57,9 +57,9 @@
@{ModuleName = 'Azs.Backup.Admin'; RequiredVersion = '0.2.0'; },
@{ModuleName = 'Azs.Commerce.Admin'; RequiredVersion = '0.2.0'; },
@{ModuleName = 'Azs.Compute.Admin'; RequiredVersion = '0.2.0'; },
- @{ModuleName = 'Azs.Fabric.Admin'; RequiredVersion = '0.2.1'; },
+ @{ModuleName = 'Azs.Fabric.Admin'; RequiredVersion = '0.3.0'; },
@{ModuleName = 'Azs.Gallery.Admin'; RequiredVersion = '0.2.0'; },
- @{ModuleName = 'Azs.InfrastructureInsights.Admin'; RequiredVersion = '0.2.0'; },
+ @{ModuleName = 'Azs.InfrastructureInsights.Admin'; RequiredVersion = '0.3.0'; },
@{ModuleName = 'Azs.KeyVault.Admin'; RequiredVersion = '0.2.0'; },
@{ModuleName = 'Azs.Network.Admin'; RequiredVersion = '0.2.0'; },
@{ModuleName = 'Azs.Storage.Admin'; RequiredVersion = '0.2.0'; },
diff --git a/src/StackAdmin/Compute/Commands.Compute/Extension/NetcoreExtension.cs b/src/StackAdmin/Compute/Commands.Compute/Extension/NetcoreExtension.cs
index 6362ca673b73..baf215076696 100644
--- a/src/StackAdmin/Compute/Commands.Compute/Extension/NetcoreExtension.cs
+++ b/src/StackAdmin/Compute/Commands.Compute/Extension/NetcoreExtension.cs
@@ -11,46 +11,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------
-#if !NETSTANDARD
-using Microsoft.Azure.Management.Storage.Models;
-
-namespace Microsoft.Azure.Commands.Compute
-{
- public static class StorageExtensions
- {
- public static SkuName? Sku(this StorageAccount account)
- {
- return account.Sku.Name;
- }
-
- public static bool IsPremiumLrs(this StorageAccount account)
- {
- return account.Sku.Name== SkuName.PremiumLRS;
- }
-
- public static void SetAsStandardGRS(this StorageAccountCreateParameters createParams)
- {
- createParams.Sku.Name = SkuName.StandardGRS;
- }
-
- public static string GetFirstAvailableKey(this StorageAccountListKeysResult listKeyResult)
- {
- return !string.IsNullOrEmpty(listKeyResult.Keys[0].Value) ? listKeyResult.Keys[0].Value : listKeyResult.Keys[1].Value;
- }
-
- public static string GetKey1(this StorageAccountListKeysResult listKeyResult)
- {
- return listKeyResult.Keys[0].Value;
- }
-
- public static string GetKey2(this StorageAccountListKeysResult listKeyResult)
- {
- return listKeyResult.Keys[1].Value;
- }
- }
-}
-#else
+// TODO: Remove IfDef
+#if NETSTANDARD
using Microsoft.Azure.Commands.Common.Authentication;
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
using Microsoft.Azure.Management.Network;
@@ -783,4 +746,42 @@ public bool ShouldSerializeIpConfigurations()
}
#endregion
+#else
+using Microsoft.Azure.Management.Storage.Models;
+
+namespace Microsoft.Azure.Commands.Compute
+{
+ public static class StorageExtensions
+ {
+ public static SkuName? Sku(this StorageAccount account)
+ {
+ return account.Sku.Name;
+ }
+
+ public static bool IsPremiumLrs(this StorageAccount account)
+ {
+ return account.Sku.Name== SkuName.PremiumLRS;
+ }
+
+ public static void SetAsStandardGRS(this StorageAccountCreateParameters createParams)
+ {
+ createParams.Sku.Name = SkuName.StandardGRS;
+ }
+
+ public static string GetFirstAvailableKey(this StorageAccountListKeysResult listKeyResult)
+ {
+ return !string.IsNullOrEmpty(listKeyResult.Keys[0].Value) ? listKeyResult.Keys[0].Value : listKeyResult.Keys[1].Value;
+ }
+
+ public static string GetKey1(this StorageAccountListKeysResult listKeyResult)
+ {
+ return listKeyResult.Keys[0].Value;
+ }
+
+ public static string GetKey2(this StorageAccountListKeysResult listKeyResult)
+ {
+ return listKeyResult.Keys[1].Value;
+ }
+ }
+}
#endif
\ No newline at end of file
diff --git a/src/StackAdmin/Resources/Commands.ResourceManager/Cmdlets/Components/ApiVersionHelper.cs b/src/StackAdmin/Resources/Commands.ResourceManager/Cmdlets/Components/ApiVersionHelper.cs
index d2f3382799e7..781ea1ff2b7c 100644
--- a/src/StackAdmin/Resources/Commands.ResourceManager/Cmdlets/Components/ApiVersionHelper.cs
+++ b/src/StackAdmin/Resources/Commands.ResourceManager/Cmdlets/Components/ApiVersionHelper.cs
@@ -26,10 +26,11 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
-#if !NETSTANDARD
- using System.Runtime.Caching;
-#else
+// TODO: Remove IfDef
+#if NETSTANDARD
using Microsoft.Extensions.Caching.Memory;
+#else
+ using System.Runtime.Caching;
#endif
///
@@ -145,10 +146,11 @@ private class ApiVersionCache
static ApiVersionCache()
{
-#if !NETSTANDARD
- _cache = MemoryCache.Default;
-#else
+// TODO: Remove IfDef
+#if NETSTANDARD
_cache = new MemoryCache(new MemoryCacheOptions());
+#else
+ _cache = MemoryCache.Default;
#endif
}
///
diff --git a/src/StackAdmin/Resources/Commands.ResourceManager/Cmdlets/Json/CamelCasePropertyNamesWithOverridesContractResolver.cs b/src/StackAdmin/Resources/Commands.ResourceManager/Cmdlets/Json/CamelCasePropertyNamesWithOverridesContractResolver.cs
index 84c814d1bb27..aa87192fb6fe 100644
--- a/src/StackAdmin/Resources/Commands.ResourceManager/Cmdlets/Json/CamelCasePropertyNamesWithOverridesContractResolver.cs
+++ b/src/StackAdmin/Resources/Commands.ResourceManager/Cmdlets/Json/CamelCasePropertyNamesWithOverridesContractResolver.cs
@@ -55,13 +55,14 @@ protected override JsonDictionaryContract CreateDictionaryContract(Type objectTy
{
var contract = base.CreateDictionaryContract(objectType);
+// TODO: Remove IfDef code
+#if !NETSTANDARD
var attributes = objectType.GetCustomAttributes(attributeType: typeof(JsonPreserveCaseDictionaryAttribute), inherit: true);
if (attributes.Any())
{
-#if !NETSTANDARD
contract.PropertyNameResolver = propertyName => propertyName;
-#endif
}
+#endif
return contract;
}
diff --git a/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs b/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs
index 3b1abca56567..a266b8e9c3e4 100644
--- a/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs
+++ b/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs
@@ -53,7 +53,7 @@ public partial class ResourcesClient
public IResourceManagementClient ResourceManagementClient { get; set; }
public IAuthorizationManagementClient AuthorizationManagementClient { get; set; }
-
+// TODO: Remove IfDef code
#if !NETSTANDARD
public GalleryTemplatesClient GalleryTemplatesClient { get; set; }
#endif
@@ -71,6 +71,7 @@ public partial class ResourcesClient
public ResourcesClient(IAzureContext context)
: this(
AzureSession.Instance.ClientFactory.CreateArmClient(context, AzureEnvironment.Endpoint.ResourceManager),
+// TODO: Remove IfDef code
#if !NETSTANDARD
new GalleryTemplatesClient(context),
#endif
@@ -87,11 +88,13 @@ public ResourcesClient(IAzureContext context)
/// The management client instance
public ResourcesClient(
IResourceManagementClient resourceManagementClient,
+// TODO: Remove IfDef code
#if !NETSTANDARD
GalleryTemplatesClient galleryTemplatesClient,
#endif
IAuthorizationManagementClient authorizationManagementClient)
{
+// TODO: Remove IfDef code
#if !NETSTANDARD
GalleryTemplatesClient = galleryTemplatesClient;
#endif
diff --git a/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourcesBaseCmdlet.cs b/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourcesBaseCmdlet.cs
index 7fbfeaae4ad3..eec98cfb6706 100644
--- a/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourcesBaseCmdlet.cs
+++ b/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourcesBaseCmdlet.cs
@@ -27,7 +27,7 @@ public abstract class ResourcesBaseCmdlet : AzureRMCmdlet
/// Field that holds the resource client instance
///
private ResourcesClient resourcesClient;
-
+// TODO: Remove IfDef code
#if !NETSTANDARD
///
/// Field that holds the gallery templates client instance
@@ -66,7 +66,7 @@ public ResourcesClient ResourcesClient
set { this.resourcesClient = value; }
}
-
+// TODO: Remove IfDef code
#if !NETSTANDARD
///
/// Gets or sets the gallery templates client
diff --git a/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourcesExtensions.cs b/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourcesExtensions.cs
index 41d8365856fa..48501b896178 100644
--- a/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourcesExtensions.cs
+++ b/src/StackAdmin/Resources/Commands.Resources/Models.ResourceGroups/ResourcesExtensions.cs
@@ -27,6 +27,7 @@
using Microsoft.WindowsAzure.Commands.Common;
using Microsoft.Azure.Management.ResourceManager.Models;
using Microsoft.Azure.Commands.Resources.Models;
+// TODO: Remove IfDef code
#if !NETSTANDARD
using Microsoft.Azure.Commands.Resources.Models.Gallery;
#endif
@@ -35,6 +36,7 @@ namespace Microsoft.Azure.Commands.Resources.Models
{
public static class ResourcesExtensions
{
+// TODO: Remove IfDef code
#if !NETSTANDARD
public static PSGalleryItem ToPSGalleryItem(this GalleryItem gallery)
{