  def testGetCredentials(self, mock_azure_credentials):
    """Test that everything works when environment variables are provided."""
    mock_azure_credentials.return_value = None
    # If all environment variables are defined, things should work correctly
    os.environ['AZURE_SUBSCRIPTION_ID'] = 'fake-subscription-id'
    os.environ["AZURE_CLIENT_ID"] = 'fake-client-id'
    os.environ["AZURE_CLIENT_SECRET"] = 'fake-client-secret'
    os.environ["AZURE_TENANT_ID"] = 'fake-tenant-id'

    subscription_id, _ = common.GetCredentials()
    self.assertEqual('fake-subscription-id', subscription_id)
    mock_azure_credentials.assert_called()
Test that everything works when environment variables are provided.
tests/providers/azure/internal/test_common.py