azure-resourcemanager-exporter icon indicating copy to clipboard operation
azure-resourcemanager-exporter copied to clipboard

How to install it?

Open oalimerko opened this issue 3 years ago • 3 comments

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.

oalimerko avatar Oct 27 '21 19:10 oalimerko

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.

mblaschke avatar Oct 27 '21 19:10 mblaschke

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 "

oalimerko avatar Dec 05 '21 21:12 oalimerko

you have to set these values as environment variables eg: docker run -e AZURE_TENANT_ID=$AZURE_TENANT_ID ...

mblaschke avatar Dec 12 '21 16:12 mblaschke