@@ -272,34 +272,34 @@ export-modulemember -function Get-AzSLogicalNetwork
272272 . SYNOPSIS
273273 List Region Update Summary
274274#>
275- Function Get-AzSUpdateSummary {
276- [CmdletBinding (DefaultParameterSetName = ' GetUpdateSummary ' )]
275+ Function Get-AzSUpdateLocation {
276+ [CmdletBinding (DefaultParameterSetName = ' GetUpdateLocation ' )]
277277 Param (
278278
279- [Parameter (Mandatory = $true , ParameterSetName = ' GetUpdateSummary ' )]
279+ [Parameter (Mandatory = $true , ParameterSetName = ' GetUpdateLocation ' )]
280280 [ValidateNotNullorEmpty ()]
281281 [String ] $TenantId ,
282282
283- [Parameter (Mandatory = $true , ParameterSetName = ' GetUpdateSummary ' )]
283+ [Parameter (Mandatory = $true , ParameterSetName = ' GetUpdateLocation ' )]
284284 [ValidateNotNullorEmpty ()]
285285 [System.Management.Automation.PSCredential ] $azureStackCredentials ,
286286
287- [Parameter (Mandatory = $true , HelpMessage = " The Azure Stack Administrator Environment Name" , ParameterSetName = ' GetUpdateSummary ' )]
287+ [Parameter (Mandatory = $true , HelpMessage = " The Azure Stack Administrator Environment Name" , ParameterSetName = ' GetUpdateLocation ' )]
288288 [string ] $EnvironmentName ,
289289
290- [Parameter (ParameterSetName = ' GetUpdateSummary ' )]
290+ [Parameter (ParameterSetName = ' GetUpdateLocation ' )]
291291 [string ] $region = ' local'
292292 )
293293 $ARMEndpoint = GetARMEndpoint - EnvironmentName $EnvironmentName - ErrorAction Stop
294294
295295 $subscription , $headers = (Get-AzureStackAdminSubTokenHeader - TenantId $tenantId - AzureStackCredentials $azureStackCredentials - EnvironmentName $EnvironmentName )
296- $URI = " ${ArmEndpoint} /subscriptions/${subscription} /resourceGroups/system.$region /providers/Microsoft.Update.Admin/updatelocations/ $region /regionUpdateStatus ?api-version=2016-05-01"
297- $USummary = Invoke-RestMethod - Method GET - Uri $uri - ContentType ' application/json' - Headers $Headers
298- $USummaryprop = $USummary .value
299- $USummaryprop .properties | select locationName , currentversion , lastUpdated , lastChecked , state
296+ $URI = " ${ArmEndpoint} /subscriptions/${subscription} /resourceGroups/system.$region /providers/Microsoft.Update.Admin/updatelocations?api-version=2016-05-01"
297+ $ULocation = Invoke-RestMethod - Method GET - Uri $uri - ContentType ' application/json' - Headers $Headers
298+ $ULocationprop = $ULocation .value
299+ $ULocationprop
300300
301301}
302- export-modulemember - function Get-AzSUpdateSummary
302+ export-modulemember - function Get-AzSUpdateLocation
303303
304304<#
305305 . SYNOPSIS
0 commit comments