From 5e4c8b02308c92169f897f816b64a2faff863e6d Mon Sep 17 00:00:00 2001 From: Toshi Aoyama Date: Tue, 31 Jan 2023 23:34:05 +0900 Subject: [azure] Update curl command for Azure Metadata - add `--noproxy` option - update api-version to `2021-01-01` - add query parameter `format=json` Signed-off-by: Toshi Aoyama --- sos/report/plugins/azure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sos/report/plugins/azure.py b/sos/report/plugins/azure.py index 90999b3f..253b9e7f 100644 --- a/sos/report/plugins/azure.py +++ b/sos/report/plugins/azure.py @@ -41,9 +41,9 @@ class Azure(Plugin, UbuntuPlugin): self.add_copy_spec(self.path_join(path, name), sizelimit=limit) self.add_cmd_output(( - 'curl -s -H Metadata:true ' + 'curl -s -H Metadata:true --noproxy "*" ' '"http://169.254.169.254/metadata/instance/compute?' - 'api-version=2019-11-01"' + 'api-version=2021-01-01&format=json"' ), suggest_filename='instance_metadata.json') -- cgit