通过Azure Windows VM托管身份访问存储账户时上传下载报错求助
问题排查:Azure Windows虚拟机托管身份访问存储账户上传/下载报错
我尝试通过Azure Windows虚拟机访问Azure存储账户,已遵循微软官方文档完成几乎所有步骤,成功生成JWT访问令牌,但执行文件上传/下载命令时出现错误,错误信息:InvalidAuthenticationInfoAuthentication information is not given in the correct format。
生成JWT令牌所用命令:
$response = Invoke-WebRequest -Uri 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://adlsrg.blob.core.windows.net/' -Method GET -Headers @{Metadata="true"} $content = $response.Content | ConvertFrom-Json $AccessToken = $content.access_token
请帮我排查通过虚拟机托管身份进行文件上传/下载的命令是否存在错误。
内容的提问来源于stack exchange,提问作者Venkatesh
相关产品推荐
相关产品推荐

