Comments (9)
Hello,
it seems to be working now.
I'll keep you posted.
Regards,
Red.
from azqr.
Either you have the following env variables set to a non empty value:
- AZURE_CLIENT_ID
- AZURE_CLIENT_SECRET
- AZURE_TENANT_ID
Or you are running azqr
from a Virtual Machine with a Managed Identity.
Since version 0.50.0 you can force azqr
to use de Azure CLI credentials by using the -f
flag.
Hope it helps.
from azqr.
Hello,
I'm trying with powershell from my Desktop after using AZ login but I'm not able to have ir working any way.
The -f parameter does not give any different result.
Do I really need to set some system wide variables ? From documentation it seems to fully support Azure CLI
Regards,
Red.
P.S. I'm running it from a standard powershell without admin privileges (PowerShell-7.4.1-win-x64)
from azqr.
azqr
uses DefaultAzureCredential
and the way it works is outlined here: https://learn.microsoft.com/en-us/azure/developer/go/azure-sdk-authentication?tabs=bash#2-authenticate-with-azure
Basically it attempts the following credentials in order:
- Option 1: Define environment variables
- Option 2: Use workload identity
- Option 3: Use a managed identity
- Option 4: Sign in with Azure CLI
Can you share the result of executing: azqr -v
With the -f
flag azqr
no longer uses DefaultAzureCredential
and forces the use of AzureCLICredential
so I would expect a different error message if any.
Line 110 in 5614b07
from azqr.
Hello,
this is what I see
Regards,
Red.
from azqr.
the f
flag is for the scan command.
Please run: azqr scan -f
from azqr.
./azqr scan --mask=false -f -s xxxxxx-xxxxxx-xxxxxx-xxxxxxx
2024-02-16T12:58:36+01:00 FTL Failed to list Resource Groups error="DefaultAzureCredential: failed to acquire a token.\nAttempted credentials:\n\tEnvironmentCredential: missing environment variable AZURE_TENANT_ID\n\tWorkloadIdentityCredential: no client ID specified. Check pod configuration or set ClientID in the options\n\tManagedIdentityCredential: ManagedIdentityCredential: failed to retreive secret key from the identity endpoint: could not read file (C:\ProgramData\AzureConnectedMachineAgent\Tokens\
from azqr.
Sorry about that! Just found a bug when reading the value of the -f
flag I'll release a new version shortly.
from azqr.
Please download version 0.52.0 from here: https://github.com/Azure/azqr/releases/tag/v.0.52.0 and run azqr scan
with the -f
flag.
from azqr.
Related Issues (20)
- Create Azure Virtual Network Gateway scanner
- SQL rule: sqldb-001 should be removed since there is no way to configure diagnostic settings
- Ignore master database in sql database scan
- Managed Identities rules form both app service and functions is reporting false positives
- AKS rule: aks-009 url is wrong
- appcs-003 rule should use tolower or the SDK constant to check the SKU and avoid false positives
- Update to latest Azure SDKs HOT 1
- Update documentation for (new) contributors HOT 1
- Add Azure Analysis Service Scanner
- Update Cognitive Services Scanner HOT 1
- Remove VM Diagnostic Setting rule since it will always return compliant == false
- SynapseWorkspaceScanner - public workspaces without private vnet fail.
- Update SQLScanner
- Use an hugo shortcut to inject recommendation docs with each build
- Create Managed Grafana Scanner
- Support Installation for Ubuntu 20.04 HOT 1
- Virtual Machine should have availability zones enabled showing as not compliant. HOT 1
- Exclude recommendations on scan HOT 4
- Subscription Name in report HOT 2
- Error:body download policy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azqr.