File tree Expand file tree Collapse file tree
core/api/azure/resourcemanagement/api Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments