Reputation: 1035
I'm trying to list all the resources in a subscription using AzureRMR
package.
Unfortunately, it fails with the following error.
library(AzureRMR)
az <- get_azure_login()
#> Loading Azure Resource Manager login for default tenant
az$
get_subscription('00000000-0000-0000-0000-000000000000')$
list_resources()
#> Error in validate_object_names(names(parms), required_names, optional_names): Invalid object names
Created on 2020-05-08 by the reprex package (v0.3.0)
I tried it for another subscription and it works fine.
Upvotes: 0
Views: 44
Reputation: 57696
For reference, this is because some resource types (VMs and disks in particular, but possibly also others) have fields that aren't in the base definition found in the Resource Manager documentation. The latest version of AzureRMR (2.3.3 as of June 2020) fixes this issue.
Upvotes: 2