It turns out you can't filter on both resource type and tags at the same time, which means checking type needs to happen in code. Additionally, you can't request provisioning state because populating $expand also does bad things when using tags in filters.
23 lines
980 B
Go
23 lines
980 B
Go
package plugin
|
|
|
|
const (
|
|
constBaseUrl = "base_url"
|
|
constFilter = "filter"
|
|
constSubscriptionId = "subscription_id"
|
|
constClientId = "client_id"
|
|
constSecretValue = "secret_value"
|
|
constCredsLastRotatedTime = "creds_last_rotated_time"
|
|
constSecretId = "secret_id"
|
|
constTenantId = "tenant_id"
|
|
constDefaultFilter = "resourceType eq 'Microsoft.Compute/virtualMachines'"
|
|
constMsComputeService = "Microsoft.Compute"
|
|
constVirtualMachinesResource = "virtualMachines"
|
|
constMsNetworkService = "Microsoft.Network"
|
|
constNetworkInterfacesResource = "networkInterfaces"
|
|
constPublicIpAddressesResource = "publicIPAddresses"
|
|
constSubscriptions = "subscriptions"
|
|
constResourceGroups = "resourceGroups"
|
|
constProviders = "providers"
|
|
constDisableCredentialRotation = "disable_credential_rotation"
|
|
)
|