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 d139e6b + 0726e81 commit 367570eCopy full SHA for 367570e
cmd/move-blobs/main.go
@@ -366,10 +366,10 @@ func validate(opts *configOpts) error {
366
if len(opts.clientSecret) == 0 && len(opts.federatedTokenFile) == 0 && len(opts.accountKey) == 0 {
367
return fmt.Errorf("One of AZURE_CLIENT_SECRET or AZURE_FEDERATED_TOKEN_FILE or AZURE_ACCOUNTKEY is required for authentication")
368
}
369
- if len(opts.clientID) == 0 {
+ if len(opts.clientID) == 0 && len(opts.accountKey) == 0 {
370
return fmt.Errorf("AZURE_CLIENT_ID is required for authentication")
371
372
- if len(opts.tenantID) == 0 {
+ if len(opts.tenantID) == 0 && len(opts.accountKey) == 0 {
373
return fmt.Errorf("AZURE_TENANT_ID is required for authentication")
374
375
if len(opts.storageAccountName) == 0 {
0 commit comments