{"action":"closed","issue":{"url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/90","repository_url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView","labels_url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/90/comments","events_url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/issues/90/events","html_url":"https://github.com/HewlettPackard/POSH-HPOneView/issues/90","id":147255885,"number":90,"title":"New-HPOVServerProfileTemplate generating The requested HTTP method is not valid/supported","user":{"login":"tknightblc","id":16502662,"avatar_url":"https://avatars.githubusercontent.com/u/16502662?v=3","gravatar_id":"","url":"https://api.github.com/users/tknightblc","html_url":"https://github.com/tknightblc","followers_url":"https://api.github.com/users/tknightblc/followers","following_url":"https://api.github.com/users/tknightblc/following{/other_user}","gists_url":"https://api.github.com/users/tknightblc/gists{/gist_id}","starred_url":"https://api.github.com/users/tknightblc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tknightblc/subscriptions","organizations_url":"https://api.github.com/users/tknightblc/orgs","repos_url":"https://api.github.com/users/tknightblc/repos","events_url":"https://api.github.com/users/tknightblc/events{/privacy}","received_events_url":"https://api.github.com/users/tknightblc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/labels/Server%20Profile%20Templates","name":"Server Profile Templates","color":"bfe5bf"},{"url":"https://api.github.com/repos/HewlettPackard/POSH-HPOneView/labels/Server%20Profiles","name":"Server Profiles","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"ChrisLynchHPE","id":6956305,"avatar_url":"https://avatars.githubusercontent.com/u/6956305?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisLynchHPE","html_url":"https://github.com/ChrisLynchHPE","followers_url":"https://api.github.com/users/ChrisLynchHPE/followers","following_url":"https://api.github.com/users/ChrisLynchHPE/following{/other_user}","gists_url":"https://api.github.com/users/ChrisLynchHPE/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisLynchHPE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisLynchHPE/subscriptions","organizations_url":"https://api.github.com/users/ChrisLynchHPE/orgs","repos_url":"https://api.github.com/users/ChrisLynchHPE/repos","events_url":"https://api.github.com/users/ChrisLynchHPE/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisLynchHPE/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-10T19:34:01Z","updated_at":"2016-04-12T04:53:59Z","closed_at":"2016-04-12T04:53:59Z","body":"Using new library all of my HPOVServerProfileTemplate are generating The requested HTTP method is not valid/supported, worked with last library\r\n\r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> Get-HPOVVersion\r\n$PSVersionTable\r\n\r\n\r\n\r\nPowerShell Library Version : 2.0.310.0\r\nLibrary Path               : C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\r\n\r\n\r\n\r\n\r\n\r\nName  : PSVersion\r\nValue : 4.0\r\n\r\nName  : WSManStackVersion\r\nValue : 3.0\r\n\r\nName  : SerializationVersion\r\nValue : 1.1.0.1\r\n\r\nName  : CLRVersion\r\nValue : 4.0.30319.42000\r\n\r\nName  : BuildVersion\r\nValue : 6.3.9600.16406\r\n\r\nName  : PSCompatibleVersions\r\nValue : {1.0, 2.0, 3.0, 4.0}\r\n\r\nName  : PSRemotingProtocolVersion\r\nValue : 2.2\r\n\r\n\r\n\r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> \r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> $bl460SHT\r\n\r\nName          Model                Form Factor Adapters                                        \r\n----          -----                ----------- --------                                        \r\nBL460c Gen9 1 ProLiant BL460c Gen9 HalfHeight  Flb 1 - HP FlexFabric 10Gb 2-port 536FLB Adapter\r\n\r\n\r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> $eg\r\n\r\nName          Logical Interconnect Group Used By\r\n----          -------------------------- -------\r\nESX-Enclosure ESX-LIG                    Encl1  \r\n\r\n\r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> $conListA\r\n\r\n\r\nid                  : 1\r\nfunctionType        : Ethernet\r\nname                : \r\nportId              : Auto\r\nnetworkUri          : /rest/ethernet-networks/341d18c4-fb07-43ac-a46d-cfd0ff7fe1af\r\nrequestedMbps       : 1000\r\nboot                : @{priority=NotBootable; targets=System.Collections.ArrayList}\r\nmacType             : Virtual\r\nmac                 : \r\nwwpnType            : Virtual\r\nwwnn                : \r\nwwpn                : \r\nApplianceConnection : @{Name=tk1-ov200-dcsdemo.advizex.net; ConnectionId=1}\r\n\r\nid                  : 2\r\nfunctionType        : Ethernet\r\nname                : \r\nportId              : Auto\r\nnetworkUri          : /rest/ethernet-networks/229adda7-cedc-4c74-ab5d-03152be01a40\r\nrequestedMbps       : 1000\r\nboot                : @{priority=NotBootable; targets=System.Collections.ArrayList}\r\nmacType             : Virtual\r\nmac                 : \r\nwwpnType            : Virtual\r\nwwnn                : \r\nwwpn                : \r\nApplianceConnection : @{Name=tk1-ov200-dcsdemo.advizex.net; ConnectionId=1}\r\n\r\nid                  : 3\r\nfunctionType        : FibreChannel\r\nname                : \r\nportId              : Auto\r\nnetworkUri          : /rest/fc-networks/12e0d358-e587-4d5a-ab81-da5cec33a950\r\nrequestedMbps       : 4000\r\nboot                : @{priority=NotBootable; targets=System.Collections.ArrayList}\r\nmacType             : Virtual\r\nmac                 : \r\nwwpnType            : Virtual\r\nwwnn                : \r\nwwpn                : \r\nApplianceConnection : @{Name=tk1-ov200-dcsdemo.advizex.net; ConnectionId=1}\r\n\r\nid                  : 4\r\nfunctionType        : FibreChannel\r\nname                : \r\nportId              : Auto\r\nnetworkUri          : /rest/fc-networks/133e89d2-4a37-4144-b55d-cfa054227c53\r\nrequestedMbps       : 4000\r\nboot                : @{priority=NotBootable; targets=System.Collections.ArrayList}\r\nmacType             : Virtual\r\nmac                 : \r\nwwpnType            : Virtual\r\nwwnn                : \r\nwwpn                : \r\nApplianceConnection : @{Name=tk1-ov200-dcsdemo.advizex.net; ConnectionId=1}\r\n\r\nid                  : 5\r\nfunctionType        : Ethernet\r\nname                : \r\nportId              : Auto\r\nnetworkUri          : /rest/network-sets/3318e854-804f-4d2a-bd6b-c94a43885f3c\r\nrequestedMbps       : 3000\r\nboot                : @{priority=NotBootable; targets=System.Collections.ArrayList}\r\nmacType             : Virtual\r\nmac                 : \r\nwwpnType            : Virtual\r\nwwnn                : \r\nwwpn                : \r\nApplianceConnection : @{Name=tk1-ov200-dcsdemo.advizex.net; ConnectionId=1}\r\n\r\nid                  : 6\r\nfunctionType        : Ethernet\r\nname                : \r\nportId              : Auto\r\nnetworkUri          : /rest/network-sets/b6d7c640-6e88-4968-a975-2a6dd3572974\r\nrequestedMbps       : 3000\r\nboot                : @{priority=NotBootable; targets=System.Collections.ArrayList}\r\nmacType             : Virtual\r\nmac                 : \r\nwwpnType            : Virtual\r\nwwnn                : \r\nwwpn                : \r\nApplianceConnection : @{Name=tk1-ov200-dcsdemo.advizex.net; ConnectionId=1}\r\n\r\nid                  : 7\r\nfunctionType        : Ethernet\r\nname                : \r\nportId              : Auto\r\nnetworkUri          : /rest/ethernet-networks/719a645c-6331-4c9f-9240-ada5f0007b44\r\nrequestedMbps       : 2000\r\nboot                : @{priority=NotBootable; targets=System.Collections.ArrayList}\r\nmacType             : Virtual\r\nmac                 : \r\nwwpnType            : Virtual\r\nwwnn                : \r\nwwpn                : \r\nApplianceConnection : @{Name=tk1-ov200-dcsdemo.advizex.net; ConnectionId=1}\r\n\r\nid                  : 8\r\nfunctionType        : Ethernet\r\nname                : \r\nportId              : Auto\r\nnetworkUri          : /rest/ethernet-networks/43234b10-4ade-439a-bad4-91aa60c8b5f3\r\nrequestedMbps       : 2000\r\nboot                : @{priority=NotBootable; targets=System.Collections.ArrayList}\r\nmacType             : Virtual\r\nmac                 : \r\nwwpnType            : Virtual\r\nwwnn                : \r\nwwpn                : \r\nApplianceConnection : @{Name=tk1-ov200-dcsdemo.advizex.net; ConnectionId=1}\r\n\r\n\r\n\r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> $Gen9BiosSettings\r\n\r\n\r\nName  : id\r\nValue : PowerProfile\r\n\r\nName  : value\r\nValue : MaxPerf\r\n\r\nName  : id\r\nValue : AdminName\r\n\r\nName  : value\r\nValue : Thomas Knight\r\n\r\nName  : id\r\nValue : AdminPhone\r\n\r\nName  : value\r\nValue : 585-451-6254\r\n\r\n\r\n\r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> New-HPOVServerProfileTemplate -name \"test11\" -description \"Template for ESX host-BL460 Gen9 with no SAN storage definitions\" -firmware -baseline \"HP Service Pack for ProLiant\" -serverHardwareType $bl460SHT -enclosureGroup $eg -connections $conListA  –manageBoot -pxeBootPolicy Auto -bios -biossettings $Gen9BiosSettings -ApplianceConnection $Connection1 | Wait-HPOVTaskComplete\r\n\r\nNew-HPOVServerProfileTemplate : [Send-HPOVRequest]: The requested HTTP method is not valid/supported.  The request method POST is not supported or not applicable for the requested resource. URI: \r\n/rest/server-profiles/available-networks?serverHardwareTypeUri=/rest/server-hardware-types/FB3061E8-5DC3-4C32-9961-8C6EEC56786C&enclosureGroupUri=/rest/enclosure-groups/78dec4f7-c6c2-4def-a612-2c7891ed6a45\r\nAt line:1 char:1\r\n+ New-HPOVServerProfileTemplate -name \"test11\" -description \"Template for ESX host ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (POST:/rest/serv...12-2c7891ed6a45:String) [New-HPOVServerProfileTemplate], InvalidOperationException\r\n    + FullyQualifiedErrorId : HTTP_METHOD_NOT_ALLOWED,New-HPOVServerProfileTemplate\r\n \r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> \r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> $error | % { Format-List -InputObject $_ * } \r\n\r\n\r\nPSMessageDetails      : \r\nException             : System.InvalidOperationException: [Send-HPOVRequest]: The requested HTTP method is not valid/supported.  The request method POST is not supported or not applicable for the requested \r\n                        resource. URI: /rest/server-profiles/available-networks?serverHardwareTypeUri=/rest/server-hardware-types/FB3061E8-5DC3-4C32-9961-8C6EEC56786C&enclosureGroupUri=/rest/enclosure-groups/78dec\r\n                        4f7-c6c2-4def-a612-2c7891ed6a45\r\n                           at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)\r\nTargetObject          : POST:/rest/server-profiles/available-networks?serverHardwareTypeUri=/rest/server-hardware-types/FB3061E8-5DC3-4C32-9961-8C6EEC56786C&enclosureGroupUri=/rest/enclosure-groups/78dec4f7-c6c2-4\r\n                        def-a612-2c7891ed6a45\r\nCategoryInfo          : InvalidOperation: (POST:/rest/serv...12-2c7891ed6a45:String) [], InvalidOperationException\r\nFullyQualifiedErrorId : HTTP_METHOD_NOT_ALLOWED\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5564\r\n                        at New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\n                        at <ScriptBlock>, <No file>: line 1\r\nPipelineIterationInfo : {}\r\n\r\n\r\n\r\n\r\n\r\nPSMessageDetails      : \r\nException             : System.Management.Automation.MethodInvocationException: Exception calling \"GetResponse\" with \"0\" argument(s): \"The remote server returned an error: (405) Method Not Allowed.\" ---> \r\n                        System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.\r\n                           at System.Net.HttpWebRequest.GetResponse()\r\n                           at CallSite.Target(Closure , CallSite , HttpWebRequest )\r\n                           --- End of inner exception stack trace ---\r\n                           at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)\r\n                           at lambda_method(Closure , Object[] , StrongBox`1[] , InterpretedFrame )\r\nTargetObject          : \r\nCategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\nFullyQualifiedErrorId : WebException\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5085\r\n                        at New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\n                        at <ScriptBlock>, <No file>: line 1\r\nPipelineIterationInfo : {}\r\n\r\n\r\n\r\n\r\n\r\nPSMessageDetails      : \r\nException             : System.InvalidOperationException: [Send-HPOVRequest]: The requested HTTP method is not valid/supported.  The request method POST is not supported or not applicable for the requested \r\n                        resource. URI: /rest/server-profiles/available-networks?serverHardwareTypeUri=/rest/server-hardware-types/FB3061E8-5DC3-4C32-9961-8C6EEC56786C&enclosureGroupUri=/rest/enclosure-groups/78dec\r\n                        4f7-c6c2-4def-a612-2c7891ed6a45\r\n                           at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)\r\nTargetObject          : POST:/rest/server-profiles/available-networks?serverHardwareTypeUri=/rest/server-hardware-types/FB3061E8-5DC3-4C32-9961-8C6EEC56786C&enclosureGroupUri=/rest/enclosure-groups/78dec4f7-c6c2-4\r\n                        def-a612-2c7891ed6a45\r\nCategoryInfo          : InvalidOperation: (POST:/rest/serv...12-2c7891ed6a45:String) [], InvalidOperationException\r\nFullyQualifiedErrorId : HTTP_METHOD_NOT_ALLOWED\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5564\r\n                        at New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\n                        at <ScriptBlock>, <No file>: line 1\r\nPipelineIterationInfo : {}\r\n\r\n\r\n\r\n\r\n\r\nPSMessageDetails      : \r\nException             : System.Management.Automation.MethodInvocationException: Exception calling \"GetResponse\" with \"0\" argument(s): \"The remote server returned an error: (405) Method Not Allowed.\" ---> \r\n                        System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.\r\n                           at System.Net.HttpWebRequest.GetResponse()\r\n                           at CallSite.Target(Closure , CallSite , HttpWebRequest )\r\n                           --- End of inner exception stack trace ---\r\n                           at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)\r\n                           at lambda_method(Closure , Object[] , StrongBox`1[] , InterpretedFrame )\r\nTargetObject          : \r\nCategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\nFullyQualifiedErrorId : WebException\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5085\r\n                        at New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\n                        at <ScriptBlock>, <No file>: line 1\r\nPipelineIterationInfo : {}\r\n\r\n\r\n\r\n\r\n\r\nPSMessageDetails      : \r\nException             : System.InvalidOperationException: [Send-HPOVRequest]: The requested HTTP method is not valid/supported.  The request method POST is not supported or not applicable for the requested \r\n                        resource. URI: /rest/server-profiles/available-networks?serverHardwareTypeUri=/rest/server-hardware-types/FB3061E8-5DC3-4C32-9961-8C6EEC56786C&enclosureGroupUri=/rest/enclosure-groups/78dec\r\n                        4f7-c6c2-4def-a612-2c7891ed6a45\r\n                           at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)\r\nTargetObject          : POST:/rest/server-profiles/available-networks?serverHardwareTypeUri=/rest/server-hardware-types/FB3061E8-5DC3-4C32-9961-8C6EEC56786C&enclosureGroupUri=/rest/enclosure-groups/78dec4f7-c6c2-4\r\n                        def-a612-2c7891ed6a45\r\nCategoryInfo          : InvalidOperation: (POST:/rest/serv...12-2c7891ed6a45:String) [], InvalidOperationException\r\nFullyQualifiedErrorId : HTTP_METHOD_NOT_ALLOWED\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5564\r\n                        at New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\n                        at <ScriptBlock>, <No file>: line 1\r\nPipelineIterationInfo : {}\r\n\r\n\r\n\r\n\r\n\r\nPSMessageDetails      : \r\nException             : System.Management.Automation.MethodInvocationException: Exception calling \"GetResponse\" with \"0\" argument(s): \"The remote server returned an error: (405) Method Not Allowed.\" ---> \r\n                        System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.\r\n                           at System.Net.HttpWebRequest.GetResponse()\r\n                           at CallSite.Target(Closure , CallSite , HttpWebRequest )\r\n                           --- End of inner exception stack trace ---\r\n                           at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)\r\n                           at lambda_method(Closure , Object[] , StrongBox`1[] , InterpretedFrame )\r\nTargetObject          : \r\nCategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\nFullyQualifiedErrorId : WebException\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5085\r\n                        at New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\n                        at <ScriptBlock>, <No file>: line 1\r\nPipelineIterationInfo : {}\r\n\r\n\r\n\r\n\r\n\r\nPSMessageDetails      : \r\nException             : System.InvalidOperationException: [Send-HPOVRequest]: The requested HTTP method is not valid/supported.  The request method POST is not supported or not applicable for the requested \r\n                        resource. URI: /rest/server-profiles/available-networks?serverHardwareTypeUri=/rest/server-hardware-types/FB3061E8-5DC3-4C32-9961-8C6EEC56786C&enclosureGroupUri=/rest/enclosure-groups/78dec\r\n                        4f7-c6c2-4def-a612-2c7891ed6a45\r\n                           at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)\r\nTargetObject          : POST:/rest/server-profiles/available-networks?serverHardwareTypeUri=/rest/server-hardware-types/FB3061E8-5DC3-4C32-9961-8C6EEC56786C&enclosureGroupUri=/rest/enclosure-groups/78dec4f7-c6c2-4\r\n                        def-a612-2c7891ed6a45\r\nCategoryInfo          : InvalidOperation: (POST:/rest/serv...12-2c7891ed6a45:String) [], InvalidOperationException\r\nFullyQualifiedErrorId : HTTP_METHOD_NOT_ALLOWED\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5564\r\n                        at New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\n                        at <ScriptBlock>, <No file>: line 1\r\nPipelineIterationInfo : {}\r\n\r\n\r\n\r\n\r\n\r\nPSMessageDetails      : \r\nException             : System.Management.Automation.MethodInvocationException: Exception calling \"GetResponse\" with \"0\" argument(s): \"The remote server returned an error: (405) Method Not Allowed.\" ---> \r\n                        System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.\r\n                           at System.Net.HttpWebRequest.GetResponse()\r\n                           at CallSite.Target(Closure , CallSite , HttpWebRequest )\r\n                           --- End of inner exception stack trace ---\r\n                           at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)\r\n                           at lambda_method(Closure , Object[] , StrongBox`1[] , InterpretedFrame )\r\nTargetObject          : \r\nCategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\nFullyQualifiedErrorId : WebException\r\nErrorDetails          : \r\nInvocationInfo        : System.Management.Automation.InvocationInfo\r\nScriptStackTrace      : at Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5085\r\n                        at New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\n                        at <ScriptBlock>, <No file>: line 1\r\nPipelineIterationInfo : {}\r\n\r\n\r\n\r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> $error | % { $_.ScriptStackTrace } \r\nat Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5564\r\nat New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\nat <ScriptBlock>, <No file>: line 1\r\nat Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5085\r\nat New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\nat <ScriptBlock>, <No file>: line 1\r\nat Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5564\r\nat New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\nat <ScriptBlock>, <No file>: line 1\r\nat Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5085\r\nat New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\nat <ScriptBlock>, <No file>: line 1\r\nat Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5564\r\nat New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\nat <ScriptBlock>, <No file>: line 1\r\nat Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5085\r\nat New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\nat <ScriptBlock>, <No file>: line 1\r\nat Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5564\r\nat New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\nat <ScriptBlock>, <No file>: line 1\r\nat Send-HPOVRequest<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 5085\r\nat New-HPOVServerProfileTemplate<Process>, C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\HPOneView.200\\HPOneView.200.psm1: line 41477\r\nat <ScriptBlock>, <No file>: line 1\r\n\r\nPS C:\\Users\\tknight\\Desktop\\OneView\\HP OV 2.0 DCS\\Toms PS scripts - 2.0 working copy> "}}