Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install it? #6

Open
oalimerko opened this issue Oct 27, 2021 · 3 comments
Open

How to install it? #6

oalimerko opened this issue Oct 27, 2021 · 3 comments

Comments

@oalimerko
Copy link

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.

@mblaschke
Copy link
Member

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.

@oalimerko
Copy link
Author

oalimerko commented Dec 5, 2021

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 "

@mblaschke
Copy link
Member

mblaschke commented Dec 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants