A convenience wrapper around api_log_analytics_client that creates a configured client for the Azure Log Analytics query REST API, bound to a specific subscription and resource group.
Usage
azr_logs_client(
subscription_id,
resource_id,
endpoint = default_log_analytics_endpoint(),
api_version = "v1",
scope = default_azure_scope("azure_log_analytics"),
provider = NULL,
chain = default_credential_chain(),
tenant_id = default_azure_tenant_id(),
...
)Arguments
- subscription_id
A character string specifying the Azure subscription ID (GUID) to bind the client to.
- resource_id
A character string specifying the Azure resource group name to bind the client to.
- endpoint
A character string specifying the Log Analytics query endpoint host. Defaults to
default_log_analytics_endpoint().- api_version
A character string specifying the API version segment. Defaults to
"v1".- scope
A character string specifying the OAuth2 scope. Defaults to
default_azure_scope("azure_log_analytics").- provider
An optional credential provider object that inherits from
CredentialorDefaultCredential. If provided,chainis ignored.- chain
A credential_chain instance for authentication. Defaults to
default_credential_chain().- tenant_id
A character string specifying the Azure tenant ID. Defaults to
default_azure_tenant_id().- ...
Additional arguments passed to the api_log_analytics_client constructor.
Value
An api_log_analytics_client object.
