Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 865 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 865 Bytes

az-scan

Experimenting with Azure APIs to retrieve resources information

Objective is to port back the code to Boavizta cloud-scanner when it is ready.

Usage

List VM's

az login 

cargo run

Notes

SSL

To compile in WSL2, I had to disable native SSL (disable default features and enable rustls) with default-features = false, features = ["enable_reqwest_rustls"].

[dependencies]
azure_core = { version = "0.20", default-features = false, features = ["enable_reqwest_rustls"] }
azure_identity = { version = "0.20", default-features = false, features = ["enable_reqwest_rustls"] }
azure_mgmt_compute = { version = "0.20", default-features = false, features = ["default_tag", "enable_reqwest_rustls"] }

Authentication

Using Azure cli

az login 

Env vars