Skip to content

Commit bdd052d

Browse files
committed
update azure api
1 parent 043327e commit bdd052d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

core/api/azure/resourcemanagement/api/Get-MonkeyRMObject.ps1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,14 @@ Function Get-MonkeyRMObject{
107107
break
108108
}
109109
#Get Authorization Header
110-
<#
111110
$methods = $Authentication | Get-Member | Where-Object {$_.MemberType -eq 'Method'} | Select-Object -ExpandProperty Name
112-
if($null -ne $methods -and $methods.Contains('CreateAuthorizationHeader')){
111+
#Get Authorization Header
112+
If($null -ne $methods -and $methods.Contains('CreateAuthorizationHeader')){
113113
$AuthHeader = $Authentication.CreateAuthorizationHeader()
114114
}
115-
else{
115+
Else{
116116
$AuthHeader = ("Bearer {0}" -f $Authentication.AccessToken)
117117
}
118-
#>
119-
$AuthHeader = ("Bearer {0}" -f $Authentication.AccessToken)
120118
#set rm uri
121119
if($null -ne $Authentication.Psobject.Properties.Item('subscriptionId')){
122120
$base_uri = ("subscriptions/{0}" -f $Authentication.subscriptionId)

0 commit comments

Comments
 (0)