Bingfeng Li
Bingfeng Li
[Ubuntu][New-PSSession] WS-Management service cannot process the request because the XML is invalid.
I found the root cause. ConnectionUri, used UriBuilder to build the query parameters. It turns out to be sth like: HTTPS://outlook.office365.com:443/PowerShell-LiveId?BasicAuthToOAuthConversion=true&[email protected];PSVersion=6.1.0 The URI format, works fine on Windows because '&'...
We hit the same issue. Here are the request and response on Linux. After receiving 302, no further request was sent out. Request: HTTPS://ps.compliance.protection.outlook.com:443/PowerShell-LiveId?BasicAuthToOAuthConversion=true;PSVersion=6.1.0… Response: http://schemas.xmlsoap.org/ws/2004/09/transfer/DeleteResponseuuid:13AC019D-CD80-4C3F-9563-89A18946C2C1F8FBAC6E-B1B0-0010-8986-6C70A64DD401http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousuuid:230BC4FC-763D-0005-0000-000000BF0000 http://schemas.xmlsoap.org/ws/2004/09/transfer/DeleteResponseuuid:13AC019D-CD80-4C3F-9563-89A18946C2C1F8FBAC6E-B1B0-0010-8986-6C70A64DD401http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousuuid:230BC4FC-763D-0005-0000-000000BF0000 [Session: 4 Date:...
Use the API directly for classic storage account key: $token = (Get-AzAccessToken).Token $keys = Invoke-RestMethod -Method POST -Uri https://management.azure.com/subscriptions/{your subscription}/resourceGroups/{your resourcegroup}/providers/Microsoft.**ClassicStorage**/storageAccounts/{your account}/listKeys?api-version=2016-11-01 -Headers @{"Authorization"="Bearer $token"} $keys.primaryKey $keys.secondaryKey
@josh-sonrai Workaround is to grant the permission in portal UI. We will discuss within cloudshell team for this request.
Thanks. @fengzhou-msft The quoting usage is help in the sense to make az command pass, it doesn't help keeping those double quotes in container's env vars. I changed to use...
@zsolt-bognar When you see this error "400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token", can you try "az login --identity" and paste the response here? Please also share the time...