-
Notifications
You must be signed in to change notification settings - Fork 5k
Better support for deploying to non-home tenant #1964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
3b19a5b
5ad3bd0
bf0dcf7
6f78a19
e4bb655
f34b9ae
aab78e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,11 +381,12 @@ async def main(strategy: Strategy, setup_index: bool = True): | |
use_int_vectorization = args.useintvectorization and args.useintvectorization.lower() == "true" | ||
|
||
# Use the current user identity to connect to Azure services unless a key is explicitly set for any of them | ||
azd_credential = ( | ||
AzureDeveloperCliCredential() | ||
if args.tenantid is None | ||
else AzureDeveloperCliCredential(tenant_id=args.tenantid, process_timeout=60) | ||
) | ||
if args.tenantid: | ||
logger.info("Connecting to Azure services using the azd credential for tenant %s", args.tenantid) | ||
azd_credential = AzureDeveloperCliCredential(tenant_id=args.tenantid, process_timeout=60) | ||
else: | ||
logger.info("Connecting to Azure services using the azd credential for home tenant") | ||
azd_credential = AzureDeveloperCliCredential() | ||
|
||
|
||
if args.removeall: | ||
document_action = DocumentAction.RemoveAll | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for AZ CLI regression-
Azure/azure-cli#29828