def METHOD_NAME():
    env_template = {
        "WEBSITE_RESOURCE_GROUP": "resource_group",
        "WEBSITE_SITE_NAME": "site_name",
        "WEBSITE_INSTANCE_ID": "instance_id",
    }
    for owner_name in (
        "f5940f10-2e30-3e4d-a259-63451ba6dae4+elastic-apm-AustraliaEastwebspace",
        "f5940f10-2e30-3e4d-a259-63451ba6dae4+appsvc_linux_australiaeast-AustraliaEastwebspace-Linux",
    ):
        env = env_template.copy()
        env["WEBSITE_OWNER_NAME"] = owner_name
        with mock.patch.dict(os.environ, env):
            metadata = elasticapm.utils.cloud.azure_app_service_metadata()
            assert metadata == {
                "account": {"id": "f5940f10-2e30-3e4d-a259-63451ba6dae4"},
                "instance": {"id": "instance_id", "name": "site_name"},
                "project": {"name": "resource_group"},
                "provider": "azure",
                "region": "AustraliaEast",
            }