When using azure/login@v3 with OIDC (federated credentials) and an explicit subscription-id input, the action intermittently fails with:
Error: No subscriptions found for ***.
Error: Login failed with Error: The process 'C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.
Current behavior
The failure is non deterministic, the same workflow, same SP, same subscription succeeds in parallel jobs within the same run but fails on some.
Expected
When subscription-id is explicitly provided, the action should not fail due to empty subscription enumeration. The subscription ID is already known, there's no need to require successful enumeration before calling az account set.
Potential workaround
Make use of allow-no-subscriptions: true, se explanation of it #592 (comment)
When using azure/login@v3 with OIDC (federated credentials) and an explicit
subscription-idinput, the action intermittently fails with:Current behavior
The failure is non deterministic, the same workflow, same SP, same subscription succeeds in parallel jobs within the same run but fails on some.
Expected
When
subscription-idis explicitly provided, the action should not fail due to empty subscription enumeration. The subscription ID is already known, there's no need to require successful enumeration before callingaz account set.Potential workaround
Make use of
allow-no-subscriptions: true, se explanation of it #592 (comment)