azure-resourcemanager-exporter
azure-resourcemanager-exporter copied to clipboard
How to install it?
Hi,
thnx for this project.Is there any description how to install it?I just run go get -u github.com/webdevops/azure-resourcemanager-exporte
and the exporter was downloaded and installed but i did not found any binary data for running it.
i suggest to use docker/containers to run it as this provides a proper sandbox and increases your security.
as alternative the dockerfile is providing a way to build it (it provides a complete build pipeline) and you could copy the binary at the end from the container image. it is a static linked binary.
is it possible to start the container image without using MSI?For authentication to Azure i have only option to use service principal.But using SPN leads to error:
failed to get oauth token from MSI: MSI not available"
For starting the container i set the variables :
AZURE_CLIENT_ID
AZURE_CLIENT_SECRET
AZURE_TENANT_ID
AZURE_SUBSCRIPTION_ID
then started the container with parameter "--azure-tenant=$AZURE_TENANT_ID "
you have to set these values as environment variables eg:
docker run -e AZURE_TENANT_ID=$AZURE_TENANT_ID ...