class_docstr: AzureEnvironment is a helper for accessing Azure resources.
class_docstr_tok: ["AzureEnvironment","is","a","helper","for","accessing","Azure","resources","."]
docstr: Get Azure credentials.
docstr_tok: ["Get","Azure","credentials","."]
code: def get_credentials(cls) -> DefaultAzureCredential:
      """Get Azure credentials."""
      try:
          return DefaultAzureCredential()
      except Exception as e:
          raise LaunchError(
              f"Could not get Azure credentials. Please make sure you have "
              f"configured your Azure CLI correctly.\n{e}"
          ) from e
  
file_path: wandb/wandb/sdk/launch/environment/azure_environment.py
imports: from typing import Tuple
  from azure.core.exceptions import HttpResponseError
  from azure.identity import DefaultAzureCredential
  from azure.storage.blob import BlobClient, BlobServiceClient
  from ..errors import LaunchError
  from ..utils import AZURE_BLOB_REGEX
  from .abstract import AbstractEnvironment
label_desc: Use image node_id 3 for calling the AzureEnvironment obj's underlying member method code with example usage: obj.get_credentials(cls) and returns: DefaultAzureCredential