diff --git a/libbeat/processors/add_cloud_metadata/provider_azure_vm_test.go b/libbeat/processors/add_cloud_metadata/provider_azure_vm_test.go index b52a4267b06f..86c9b926d040 100644 --- a/libbeat/processors/add_cloud_metadata/provider_azure_vm_test.go +++ b/libbeat/processors/add_cloud_metadata/provider_azure_vm_test.go @@ -186,6 +186,11 @@ func TestRetrieveAzureMetadata(t *testing.T) { } expected := mapstr.M{ + "azure": mapstr.M{ + "resourcegroup": mapstr.M{ + "name": "MC_myname_group_myname_eastus", + }, + }, "cloud": mapstr.M{ "provider": "azure", "instance": mapstr.M{ @@ -201,9 +206,6 @@ func TestRetrieveAzureMetadata(t *testing.T) { "service": mapstr.M{ "name": "Virtual Machines", }, - "resource_group": mapstr.M{ - "name": "MC_myname_group_myname_eastus", - }, "region": "eastus", }, "orchestrator": mapstr.M{