Metadata for an Azure VM
1 2 3 4 5 6 7 8 9 10 11
events are environments.
events environments contain the instance metadata, attested metadata, and scheduled events respectively for a VM running in Azure.
attested are automatically populated when you load the AzureVMmetadata package, or you can manually populate them yourself with the
events is not populated at package startup, because calling the scheduled event service can require up to several minutes if it is not running already. You can manually populate it with the
If AzureVMmetadata is loaded in an R session that is not running in an Azure VM, all the metadata environments will be empty.
The updating functions return the contents of their respective environments as lists, invisibly.
To obtain OAuth tokens from the metadata service, see AzureAuth::get_managed_token
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
## these will only be meaningful when run in an Azure VM # all compute metadata AzureVMmetadata::instance$compute # VM name and ID AzureVMmetadata::instance$compute$name AzureVMmetadata::instance$compute$vmId # VM resource details: subscription, resource group, resource ID AzureVMmetadata::instance$compute$subscriptionId AzureVMmetadata::instance$compute$resourceGroupName AzureVMmetadata::instance$compute$resourceId # all network metadata AzureVMmetadata::instance$network # IPv4 address details (1st network interface) AzureVMmetadata::instance$network$interface[]$ipv4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.