Replies: 3 comments
-
Thanks @philtapp for reporting this. I'll investigate and circle back. |
Beta Was this translation helpful? Give feedback.
-
Okay I've found the issue and apologize for the inconvenience. When issuing a request like the following: Update-MgBetaSolutionBusinessScenario -BusinessScenarioId c1d937464dae46ac89b4454cb2632619 -Headers @{"If-Match" = 'IjAzMDBlMzFhLTAwMDAtMDIwMC0wMDAwLTY3MTk3MTUzMDAwMCIz='} -DisplayName "update-testcase" I would receive Update-MgBetaSolutionBusinessScenario_UpdateExpanded: The format of value 'IjAzMDBlMzFhLTAwMDAtMDIwMC0wMDAwLTY3MTk3MTUzMDAwMCIz=' is invalid. However, the request would succeed if I wrapped the etag in double quotes. Update-MgBetaSolutionBusinessScenario -BusinessScenarioId c1d937464dae46ac89b4454cb2632619 -Headers @{"If-Match" = '"IjAzMDBlMzFhLTAwMDAtMDIwMC0wMDAwLTY3MTk3MTUzMDAwMCI="'} -DisplayName "update-testcase" I realize this is a very silly issue and apologize it's taken over a month for you to receive a response. I'll create a bug to investigate this, and I hope this workaround is sufficient. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response and the workaround. I have now been able to successfully make an update by passing the etag through the headers parameter in the suggested modified format rather than leaving it blank or using the -IfMatch parameter. Not sure if the issue with the IfMatch parameter is all related to the same underlying issue but it wouldn't accept the eTag as the Base64 string format returned in the odata, it would accept it if decoded (ie as a GUID string) but then the same issue occurred it didn't think the supplied etag matched the object's etag. |
Beta Was this translation helpful? Give feedback.
-
Has anyone been able to use the Remove-MgBetaSolutionBusinessScenario and Update-MgBetaSolutionBusinessScenario commands?
I can create a new scenario with New-MgBetaSolutionBusinessScenario and retrieve that scenario with Get-MgBetaSolutionBusinessScenario.
With the Update and Remove cmdlets I get a 412 error for ETagsDontMatch everytime.
I tried passing the ETAG value from Get-MgBetaSolutionBusinessScenario using -IfMatch (although I had to manually convert from the base64 string for it to be an accepted format) but still get the same error, running the get multiple times the etag value stays the same.
Thanks in advance for any assistance anyone can offer here.
Beta Was this translation helpful? Give feedback.
All reactions