File tree 1 file changed +4
-3
lines changed
sdk/identity/azure-identity/azure/identity/_internal
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,9 @@ def validate_subscription(subscription: str) -> None:
81
81
"""
82
82
if not subscription or any (c not in VALID_SUBSCRIPTION_CHARACTERS for c in subscription ):
83
83
raise ValueError (
84
- "Invalid subscription provided. You can locate your subscription by following the "
85
- "instructions listed here: https://learn.microsoft.com/azure/azure-portal/get-subscription-tenant-id"
84
+ f"Subscription '{ subscription } ' contains invalid characters. If this is the name of a subscription, use "
85
+ "its ID instead. You can locate your subscription by following the instructions listed here: "
86
+ "https://learn.microsoft.com/azure/azure-portal/get-subscription-tenant-id"
86
87
)
87
88
88
89
@@ -91,7 +92,7 @@ def resolve_tenant(
91
92
tenant_id : Optional [str ] = None ,
92
93
* ,
93
94
additionally_allowed_tenants : Optional [List [str ]] = None ,
94
- ** _
95
+ ** _ ,
95
96
) -> str :
96
97
"""Returns the correct tenant for a token request given a credential's configuration.
97
98
You can’t perform that action at this time.
0 commit comments