diff --git a/centreon-plugins/cloud/azure/custom/api.pm b/centreon-plugins/cloud/azure/custom/api.pm index 516ec9a72..2b16b6581 100644 --- a/centreon-plugins/cloud/azure/custom/api.pm +++ b/centreon-plugins/cloud/azure/custom/api.pm @@ -632,6 +632,7 @@ sub azure_get_log_analytics_set_url { my $encoded_timespan = $uri->encode($options{timespan}); my $url = $self->{management_endpoint} . '/v1/workspaces/' . $options{workspace_id} . '/query?query=' . $encoded_query; $url .= '×pan=' . $encoded_timespan if (defined($encoded_timespan)); + $url .= '?api-version=' . $self->{api_version}; return $url; }