{"id":14067303,"url":"https://github.com/cloudyr/AzureVMmetadata","last_synced_at":"2025-07-30T00:33:16.279Z","repository":{"id":70475469,"uuid":"200346964","full_name":"cloudyr/AzureVMmetadata","owner":"cloudyr","description":"R interface to VM instance metadata. Submit issues and PRs at https://github.com/Azure/AzureVMmetadata.","archived":false,"fork":false,"pushed_at":"2021-01-12T18:54:13.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-18T00:39:54.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudyr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-03T07:37:18.000Z","updated_at":"2021-10-19T20:21:41.000Z","dependencies_parsed_at":"2023-03-01T00:30:49.319Z","dependency_job_id":null,"html_url":"https://github.com/cloudyr/AzureVMmetadata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudyr/AzureVMmetadata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2FAzureVMmetadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2FAzureVMmetadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2FAzureVMmetadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2FAzureVMmetadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudyr","download_url":"https://codeload.github.com/cloudyr/AzureVMmetadata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudyr%2FAzureVMmetadata/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267785800,"owners_count":24144122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:05:31.765Z","updated_at":"2025-07-30T00:33:15.994Z","avatar_url":"https://github.com/cloudyr.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# AzureVMmetadata \u003cimg src=\"man/figures/logo.png\" align=\"right\" width=150 /\u003e\n\n[![CRAN](https://www.r-pkg.org/badges/version/AzureVMmetadata)](https://cran.r-project.org/package=AzureVMmetadata)\n![Downloads](https://cranlogs.r-pkg.org/badges/AzureVMmetadata)\n![R-CMD-check](https://github.com/Azure/AzureVMmetadata/workflows/R-CMD-check/badge.svg)\n\nA simple package to access the [instance metadata service](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service) in an Azure virtual machine.\n\nThe primary repo for this package is at https://github.com/Azure/AzureVMmetadata; please submit issues and PRs there. It is also mirrored at the Cloudyr org at https://github.com/cloudyr/AzureVMmetadata. You can install the development version of the package from GitHub:\n\n```r\ndevtools::install_github(\"Azure/AzureVMmetadata\")\n```\n\n## Accessing metadata\n\nAzureVMmetadata exposes three environments that contain the metadata for the VM:\n\n- `instance`: The instance metadata, containing 2 components: `compute` and `network`\n- `attested`: The attested metadata, containing the base64-encoded PKCS-7 certificate for the VM\n- `events`: The scheduled events for the VM\n\nThe first two are automatically populated when the package is loaded; you can also manually update them with the `update_instance_metadata()` and `update_attested_metadata()` functions. `events` is not populated at package startup (it causes the event scheduler service to be started on the VM, which can take up to several minutes), but you can update it manually with `update_scheduled_events()`.\n\n```r\n## these will only be meaningful when run in an Azure VM\n\n# all compute metadata\nAzureVMmetadata::instance$compute\n\n# VM name and ID\nAzureVMmetadata::instance$compute$name\nAzureVMmetadata::instance$compute$vmId\n\n# VM resource details: subscription, resource group, ID\nAzureVMmetadata::instance$compute$subscriptionId\nAzureVMmetadata::instance$compute$resourceGroupName\nAzureVMmetadata::instance$compute$resourceId\n\n# all network metadata\nAzureVMmetadata::instance$network\n\n# IPv4 address details (1st network interface)\nAzureVMmetadata::instance$network$interface[[1]]$ipv4\n\n# raw PKCS-7 certificate for the VM\nAzureVMmetadata::attested$signature\n\n# certificate as an openssl::cert object\nAzureVMmetadata::get_vm_cert()\n```\n\n----\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/Azure/AzureR\"\u003e\u003cimg src=\"https://github.com/Azure/AzureR/raw/master/images/logo2.png\" width=800 /\u003e\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudyr%2FAzureVMmetadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudyr%2FAzureVMmetadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudyr%2FAzureVMmetadata/lists"}