We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d87f0c7 + 6dcff1f commit bc66580Copy full SHA for bc66580
cmd/move-blobs/main.go
@@ -367,10 +367,10 @@ func validate(opts *configOpts) error {
367
if len(opts.clientSecret) == 0 && len(opts.federatedTokenFile) == 0 && len(opts.accountKey) == 0 {
368
return fmt.Errorf("One of AZURE_CLIENT_SECRET or AZURE_FEDERATED_TOKEN_FILE or AZURE_ACCOUNTKEY is required for authentication")
369
}
370
- if len(opts.clientID) == 0 {
+ if len(opts.clientID) == 0 && len(opts.accountKey) == 0 {
371
return fmt.Errorf("AZURE_CLIENT_ID is required for authentication")
372
373
- if len(opts.tenantID) == 0 {
+ if len(opts.tenantID) == 0 && len(opts.accountKey) == 0 {
374
return fmt.Errorf("AZURE_TENANT_ID is required for authentication")
375
376
if len(opts.storageAccountName) == 0 {
0 commit comments